|
|
|
@ -17,6 +17,7 @@
|
|
|
|
<result property="sTime" column="s_time" />
|
|
|
|
<result property="sTime" column="s_time" />
|
|
|
|
<result property="eTime" column="e_time" />
|
|
|
|
<result property="eTime" column="e_time" />
|
|
|
|
<result property="maxNum" column="max_num" />
|
|
|
|
<result property="maxNum" column="max_num" />
|
|
|
|
|
|
|
|
<result property="umax" column="umax" />
|
|
|
|
<result property="percentage" column="percentage" />
|
|
|
|
<result property="percentage" column="percentage" />
|
|
|
|
<result property="state" column="state" />
|
|
|
|
<result property="state" column="state" />
|
|
|
|
<result property="samePercent" column="same_percent" />
|
|
|
|
<result property="samePercent" column="same_percent" />
|
|
|
|
@ -28,7 +29,7 @@
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectKhVoteVo">
|
|
|
|
<sql id="selectKhVoteVo">
|
|
|
|
select id, pingce_id, pingce_name, khitem_id, khitem_name, khitem_typeId, vote_items, vote_title, v_description, s_time, e_time, max_num, percentage, `state`,same_percent, create_by, create_time, update_by, update_time, remark from kh_vote
|
|
|
|
select id, pingce_id, pingce_name, khitem_id, khitem_name, khitem_typeId, vote_items, vote_title, v_description, s_time, e_time, max_num, umax, percentage, `state`,same_percent, create_by, create_time, update_by, update_time, remark from kh_vote
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectKhVoteList" parameterType="KhVote" resultMap="KhVoteResult">
|
|
|
|
<select id="selectKhVoteList" parameterType="KhVote" resultMap="KhVoteResult">
|
|
|
|
@ -45,6 +46,7 @@
|
|
|
|
<if test="sTime != null "> and s_time = #{sTime}</if>
|
|
|
|
<if test="sTime != null "> and s_time = #{sTime}</if>
|
|
|
|
<if test="eTime != null "> and e_time = #{eTime}</if>
|
|
|
|
<if test="eTime != null "> and e_time = #{eTime}</if>
|
|
|
|
<if test="maxNum != null "> and max_num = #{maxNum}</if>
|
|
|
|
<if test="maxNum != null "> and max_num = #{maxNum}</if>
|
|
|
|
|
|
|
|
<if test="umax != null "> and umax = #{umax}</if>
|
|
|
|
<if test="percentage != null "> and percentage = #{percentage}</if>
|
|
|
|
<if test="percentage != null "> and percentage = #{percentage}</if>
|
|
|
|
<if test="state != null and state != ''"> and state = #{state}</if>
|
|
|
|
<if test="state != null and state != ''"> and state = #{state}</if>
|
|
|
|
<if test="samePercent != null and samePercent != ''"> and same_percent = #{samePercent}</if>
|
|
|
|
<if test="samePercent != null and samePercent != ''"> and same_percent = #{samePercent}</if>
|
|
|
|
@ -90,6 +92,7 @@
|
|
|
|
<if test="sTime != null">s_time,</if>
|
|
|
|
<if test="sTime != null">s_time,</if>
|
|
|
|
<if test="eTime != null">e_time,</if>
|
|
|
|
<if test="eTime != null">e_time,</if>
|
|
|
|
<if test="maxNum != null">max_num,</if>
|
|
|
|
<if test="maxNum != null">max_num,</if>
|
|
|
|
|
|
|
|
<if test="umax != null">umax,</if>
|
|
|
|
<if test="percentage != null">percentage,</if>
|
|
|
|
<if test="percentage != null">percentage,</if>
|
|
|
|
<if test="state != null">state,</if>
|
|
|
|
<if test="state != null">state,</if>
|
|
|
|
<if test="samePercent != null">same_percent,</if>
|
|
|
|
<if test="samePercent != null">same_percent,</if>
|
|
|
|
@ -111,6 +114,7 @@
|
|
|
|
<if test="sTime != null">#{sTime},</if>
|
|
|
|
<if test="sTime != null">#{sTime},</if>
|
|
|
|
<if test="eTime != null">#{eTime},</if>
|
|
|
|
<if test="eTime != null">#{eTime},</if>
|
|
|
|
<if test="maxNum != null">#{maxNum},</if>
|
|
|
|
<if test="maxNum != null">#{maxNum},</if>
|
|
|
|
|
|
|
|
<if test="umax != null">#{umax},</if>
|
|
|
|
<if test="percentage != null">#{percentage},</if>
|
|
|
|
<if test="percentage != null">#{percentage},</if>
|
|
|
|
<if test="state != null">#{state},</if>
|
|
|
|
<if test="state != null">#{state},</if>
|
|
|
|
<if test="samePercent != null">#{samePercent},</if>
|
|
|
|
<if test="samePercent != null">#{samePercent},</if>
|
|
|
|
@ -136,6 +140,7 @@
|
|
|
|
<if test="sTime != null">s_time = #{sTime},</if>
|
|
|
|
<if test="sTime != null">s_time = #{sTime},</if>
|
|
|
|
<if test="eTime != null">e_time = #{eTime},</if>
|
|
|
|
<if test="eTime != null">e_time = #{eTime},</if>
|
|
|
|
<if test="maxNum != null">max_num = #{maxNum},</if>
|
|
|
|
<if test="maxNum != null">max_num = #{maxNum},</if>
|
|
|
|
|
|
|
|
<if test="umax != null">umax = #{umax},</if>
|
|
|
|
<if test="percentage != null">percentage = #{percentage},</if>
|
|
|
|
<if test="percentage != null">percentage = #{percentage},</if>
|
|
|
|
<if test="state != null">state = #{state},</if>
|
|
|
|
<if test="state != null">state = #{state},</if>
|
|
|
|
<if test="samePercent != null">same_percent = #{samePercent},</if>
|
|
|
|
<if test="samePercent != null">same_percent = #{samePercent},</if>
|
|
|
|
|