|
|
@ -2,6 +2,15 @@ |
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
|
|
<mapper namespace="com.ccsens.form.persist.dao.FormBasicDao"> |
|
|
|
|
|
|
|
<resultMap id="statisticsForm" type="com.ccsens.form.bean.vo.FormVo$StatisticsModule"> |
|
|
|
<id column="id" property="id"/> |
|
|
|
<result column="title" property="title"/> |
|
|
|
<collection property="statisticsList" ofType="com.ccsens.form.bean.vo.FormVo$StatisticsVo"> |
|
|
|
<id column="optionKey" property="optionKey"/> |
|
|
|
<result column="nums" property="nums"/> |
|
|
|
</collection> |
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<select id="getFormList" resultType="com.ccsens.form.bean.vo.FormVo$FormList"> |
|
|
|
SELECT |
|
|
|
id as formUserId, |
|
|
@ -14,7 +23,7 @@ |
|
|
|
and submit_status = 1 |
|
|
|
and rec_status = 0 |
|
|
|
</select> |
|
|
|
<select id="getStatisticsForm" resultType="com.ccsens.form.bean.vo.FormVo$StatisticsModule"> |
|
|
|
<select id="getStatisticsForm" resultMap="statisticsForm"> |
|
|
|
SELECT |
|
|
|
t.fmId as id, |
|
|
|
t.config_value as title, |
|
|
|