|
|
|
@ -17,6 +17,7 @@
|
|
|
|
<result property="maxNum" column="max_num" />
|
|
|
|
<result property="maxNum" column="max_num" />
|
|
|
|
<result property="percentage" column="percentage" />
|
|
|
|
<result property="percentage" column="percentage" />
|
|
|
|
<result property="state" column="state" />
|
|
|
|
<result property="state" column="state" />
|
|
|
|
|
|
|
|
<result property="typeId" column="type_id" />
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
@ -29,7 +30,7 @@
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectKhVoteList" parameterType="KhVote" resultMap="KhVoteResult">
|
|
|
|
<select id="selectKhVoteList" parameterType="KhVote" resultMap="KhVoteResult">
|
|
|
|
<include refid="selectKhVoteVo"/>
|
|
|
|
select v.*,it.type_id from kh_vote v left join kh_items it on v.khitem_id =it.id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="pingceId != null "> and pingce_id = #{pingceId}</if>
|
|
|
|
<if test="pingceId != null "> and pingce_id = #{pingceId}</if>
|
|
|
|
<if test="pingceName != null and pingceName != ''"> and pingce_name like concat('%', #{pingceName}, '%')</if>
|
|
|
|
<if test="pingceName != null and pingceName != ''"> and pingce_name like concat('%', #{pingceName}, '%')</if>
|
|
|
|
@ -46,8 +47,8 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectKhVoteById" parameterType="Long" resultMap="KhVoteResult">
|
|
|
|
<select id="selectKhVoteById" parameterType="Long" resultMap="KhVoteResult">
|
|
|
|
<include refid="selectKhVoteVo"/>
|
|
|
|
select v.*,it.type_id from kh_vote v left join kh_items it on v.khitem_id =it.id
|
|
|
|
where id = #{id}
|
|
|
|
where v.id = #{id}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertKhVote" parameterType="KhVote" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
<insert id="insertKhVote" parameterType="KhVote" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|