|
|
|
@ -9,6 +9,7 @@
|
|
|
|
<result property="khitemTypeid" column="khitem_typeId"/>
|
|
|
|
<result property="khitemTypeid" column="khitem_typeId"/>
|
|
|
|
<result property="voteId" column="vote_id"/>
|
|
|
|
<result property="voteId" column="vote_id"/>
|
|
|
|
<result property="voteTitle" column="vote_title"/>
|
|
|
|
<result property="voteTitle" column="vote_title"/>
|
|
|
|
|
|
|
|
<result property="pcName" column="pingce_name" />
|
|
|
|
<result property="bkhdxId" column="bkhdx_id"/>
|
|
|
|
<result property="bkhdxId" column="bkhdx_id"/>
|
|
|
|
<result property="bkhdxName" column="bkhdx_name"/>
|
|
|
|
<result property="bkhdxName" column="bkhdx_name"/>
|
|
|
|
<result property="content" column="content"/>
|
|
|
|
<result property="content" column="content"/>
|
|
|
|
@ -56,19 +57,20 @@
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectKhVoteEmpList" parameterType="KhVoteEmp" resultMap="KhVoteEmpResult">
|
|
|
|
<select id="selectKhVoteEmpList" parameterType="KhVoteEmp" resultMap="KhVoteEmpResult">
|
|
|
|
<include refid="selectKhVoteEmpVo"/>
|
|
|
|
select ve.* ,ve.pingce_name from kh_vote_emp join kh_vote v on ve.voteId=v.id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="khitemTypeid != null ">and khitem_typeId = #{khitemTypeid}</if>
|
|
|
|
<if test="khitemTypeid != null ">and khitem_typeId = #{khitemTypeid}</if>
|
|
|
|
<if test="voteId != null ">and vote_id = #{voteId}</if>
|
|
|
|
<if test="voteId != null ">and vote_id = #{voteId}</if>
|
|
|
|
<if test="voteTitle != null and voteTitle != ''">and vote_title = #{voteTitle}</if>
|
|
|
|
<if test="voteTitle != null and voteTitle != ''">and vote_title = #{voteTitle}</if>
|
|
|
|
|
|
|
|
<if test="pcName != null and pcName != '' "> and ve.pingce_name like concat('%', #{pcName}, '%')</if>
|
|
|
|
<if test="bkhdxId != null ">and bkhdx_id = #{bkhdxId}</if>
|
|
|
|
<if test="bkhdxId != null ">and bkhdx_id = #{bkhdxId}</if>
|
|
|
|
<if test="bkhdxName != null and bkhdxName != ''">and bkhdx_name like concat('%', #{bkhdxName}, '%')</if>
|
|
|
|
<if test="bkhdxName != null and bkhdxName != ''">and bkhdx_name like concat('%', #{bkhdxName}, '%')</if>
|
|
|
|
<if test="content != null and content != ''">and content = #{content}</if>
|
|
|
|
<if test="content != null and content != ''">and content = #{content}</if>
|
|
|
|
<if test="voteNum != null ">and vote_num = #{voteNum}</if>
|
|
|
|
<if test="voteNum != null ">and vote_num = #{voteNum}</if>
|
|
|
|
<if test="optionA != null ">and option_a = #{optionA}</if>
|
|
|
|
<!--<if test="optionA != null ">and option_a = #{optionA}</if>
|
|
|
|
<if test="optionB != null ">and option_b = #{optionB}</if>
|
|
|
|
<if test="optionB != null ">and option_b = #{optionB}</if>
|
|
|
|
<if test="optionC != null ">and option_c = #{optionC}</if>
|
|
|
|
<if test="optionC != null ">and option_c = #{optionC}</if>
|
|
|
|
<if test="optionD != null ">and option_d = #{optionD}</if>
|
|
|
|
<if test="optionD != null ">and option_d = #{optionD}</if>-->
|
|
|
|
<if test="voteScore != null ">and vote_score = #{voteScore}</if>
|
|
|
|
<if test="voteScore != null ">and vote_score = #{voteScore}</if>
|
|
|
|
<if test="avgScore != null ">and avg_score = #{avgScore}</if>
|
|
|
|
<if test="avgScore != null ">and avg_score = #{avgScore}</if>
|
|
|
|
<if test="percentage != null ">and percentage = #{percentage}</if>
|
|
|
|
<if test="percentage != null ">and percentage = #{percentage}</if>
|
|
|
|
@ -162,13 +164,13 @@
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
|
|
|
<if test="version != null">version = #{version},</if>
|
|
|
|
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<!-- 其他需要更新的字段 /* version = version + 1 AND version = #{version}*/-->
|
|
|
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
WHERE id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 批量——统计数据 -->
|
|
|
|
<!-- 批量——统计计算平均值、最终值数据 -->
|
|
|
|
<update id="updateKhVoteEmp1" parameterType="java.util.List">
|
|
|
|
<update id="updateKhVoteEmp1" parameterType="java.util.List">
|
|
|
|
<foreach collection="list" item="item" separator=";">
|
|
|
|
<foreach collection="list" item="item" separator=";">
|
|
|
|
UPDATE kh_vote_emp
|
|
|
|
UPDATE kh_vote_emp
|
|
|
|
@ -180,7 +182,7 @@
|
|
|
|
id = #{item.id}
|
|
|
|
id = #{item.id}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<!-- 批量处理提交评分 -->
|
|
|
|
<update id="batchUpdateVoteScore" parameterType="java.util.List">
|
|
|
|
<update id="batchUpdateVoteScore" parameterType="java.util.List">
|
|
|
|
<foreach collection="list" item="item" separator=";">
|
|
|
|
<foreach collection="list" item="item" separator=";">
|
|
|
|
UPDATE kh_vote_emp
|
|
|
|
UPDATE kh_vote_emp
|
|
|
|
|