|
|
|
@ -13,6 +13,10 @@
|
|
|
|
<result property="bkhdxName" column="bkhdx_name" />
|
|
|
|
<result property="bkhdxName" column="bkhdx_name" />
|
|
|
|
<result property="content" column="content" />
|
|
|
|
<result property="content" column="content" />
|
|
|
|
<result property="voteNum" column="vote_num" />
|
|
|
|
<result property="voteNum" column="vote_num" />
|
|
|
|
|
|
|
|
<result property="optionA" column="option_a" />
|
|
|
|
|
|
|
|
<result property="optionB" column="option_b" />
|
|
|
|
|
|
|
|
<result property="optionC" column="option_c" />
|
|
|
|
|
|
|
|
<result property="optionD" column="option_d" />
|
|
|
|
<result property="voteScore" column="vote_score" />
|
|
|
|
<result property="voteScore" column="vote_score" />
|
|
|
|
<result property="avgScore" column="avg_score" />
|
|
|
|
<result property="avgScore" column="avg_score" />
|
|
|
|
<result property="percentage" column="percentage" />
|
|
|
|
<result property="percentage" column="percentage" />
|
|
|
|
@ -25,7 +29,7 @@
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectKhVoteEmpVo">
|
|
|
|
<sql id="selectKhVoteEmpVo">
|
|
|
|
select id, khitem_typeId, vote_id, vote_title, bkhdx_id, bkhdx_name, content, vote_num, vote_score, avg_score, percentage, end_score, create_by, create_time, update_by, update_time, remark from kh_vote_emp
|
|
|
|
select id, khitem_typeId, vote_id, vote_title, bkhdx_id, bkhdx_name, content, vote_num,option_a, option_b, option_c, option_d, vote_score, avg_score, percentage, end_score, create_by, create_time, update_by, update_time, remark from kh_vote_emp
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectKhVoteEmpList" parameterType="KhVoteEmp" resultMap="KhVoteEmpResult">
|
|
|
|
<select id="selectKhVoteEmpList" parameterType="KhVoteEmp" resultMap="KhVoteEmpResult">
|
|
|
|
@ -38,6 +42,10 @@
|
|
|
|
<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="optionB != null "> and option_b = #{optionB}</if>
|
|
|
|
|
|
|
|
<if test="optionC != null "> and option_c = #{optionC}</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>
|
|
|
|
@ -60,6 +68,10 @@
|
|
|
|
<if test="bkhdxName != null">bkhdx_name,</if>
|
|
|
|
<if test="bkhdxName != null">bkhdx_name,</if>
|
|
|
|
<if test="content != null">content,</if>
|
|
|
|
<if test="content != null">content,</if>
|
|
|
|
<if test="voteNum != null">vote_num,</if>
|
|
|
|
<if test="voteNum != null">vote_num,</if>
|
|
|
|
|
|
|
|
<if test="optionA != null">option_a,</if>
|
|
|
|
|
|
|
|
<if test="optionB != null">option_b,</if>
|
|
|
|
|
|
|
|
<if test="optionC != null">option_c,</if>
|
|
|
|
|
|
|
|
<if test="optionD != null">option_d,</if>
|
|
|
|
<if test="voteScore != null">vote_score,</if>
|
|
|
|
<if test="voteScore != null">vote_score,</if>
|
|
|
|
<if test="avgScore != null">avg_score,</if>
|
|
|
|
<if test="avgScore != null">avg_score,</if>
|
|
|
|
<if test="percentage != null">percentage,</if>
|
|
|
|
<if test="percentage != null">percentage,</if>
|
|
|
|
@ -78,6 +90,10 @@
|
|
|
|
<if test="bkhdxName != null">#{bkhdxName},</if>
|
|
|
|
<if test="bkhdxName != null">#{bkhdxName},</if>
|
|
|
|
<if test="content != null">#{content},</if>
|
|
|
|
<if test="content != null">#{content},</if>
|
|
|
|
<if test="voteNum != null">#{voteNum},</if>
|
|
|
|
<if test="voteNum != null">#{voteNum},</if>
|
|
|
|
|
|
|
|
<if test="optionA != null">#{optionA},</if>
|
|
|
|
|
|
|
|
<if test="optionB != null">#{optionB},</if>
|
|
|
|
|
|
|
|
<if test="optionC != null">#{optionC},</if>
|
|
|
|
|
|
|
|
<if test="optionD != null">#{optionD},</if>
|
|
|
|
<if test="voteScore != null">#{voteScore},</if>
|
|
|
|
<if test="voteScore != null">#{voteScore},</if>
|
|
|
|
<if test="avgScore != null">#{avgScore},</if>
|
|
|
|
<if test="avgScore != null">#{avgScore},</if>
|
|
|
|
<if test="percentage != null">#{percentage},</if>
|
|
|
|
<if test="percentage != null">#{percentage},</if>
|
|
|
|
@ -100,6 +116,10 @@
|
|
|
|
<if test="bkhdxName != null">bkhdx_name = #{bkhdxName},</if>
|
|
|
|
<if test="bkhdxName != null">bkhdx_name = #{bkhdxName},</if>
|
|
|
|
<if test="content != null">content = #{content},</if>
|
|
|
|
<if test="content != null">content = #{content},</if>
|
|
|
|
<if test="voteNum != null">vote_num = #{voteNum},</if>
|
|
|
|
<if test="voteNum != null">vote_num = #{voteNum},</if>
|
|
|
|
|
|
|
|
<if test="optionA != null">option_a = #{optionA},</if>
|
|
|
|
|
|
|
|
<if test="optionB != null">option_b = #{optionB},</if>
|
|
|
|
|
|
|
|
<if test="optionC != null">option_c = #{optionC},</if>
|
|
|
|
|
|
|
|
<if test="optionD != null">option_d = #{optionD},</if>
|
|
|
|
<if test="voteScore != null">vote_score = #{voteScore},</if>
|
|
|
|
<if test="voteScore != null">vote_score = #{voteScore},</if>
|
|
|
|
<if test="avgScore != null">avg_score = #{avgScore},</if>
|
|
|
|
<if test="avgScore != null">avg_score = #{avgScore},</if>
|
|
|
|
<if test="percentage != null">percentage = #{percentage},</if>
|
|
|
|
<if test="percentage != null">percentage = #{percentage},</if>
|
|
|
|
|