|
|
|
@ -19,6 +19,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="samePercent" column="same_percent" />
|
|
|
|
<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" />
|
|
|
|
@ -27,7 +28,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, 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, 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">
|
|
|
|
@ -46,6 +47,7 @@
|
|
|
|
<if test="maxNum != null "> and max_num = #{maxNum}</if>
|
|
|
|
<if test="maxNum != null "> and max_num = #{maxNum}</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>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
@ -89,6 +91,7 @@
|
|
|
|
<if test="maxNum != null">max_num,</if>
|
|
|
|
<if test="maxNum != null">max_num,</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="createBy != null">create_by,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
@ -109,6 +112,7 @@
|
|
|
|
<if test="maxNum != null">#{maxNum},</if>
|
|
|
|
<if test="maxNum != null">#{maxNum},</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="createBy != null">#{createBy},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
@ -133,6 +137,7 @@
|
|
|
|
<if test="maxNum != null">max_num = #{maxNum},</if>
|
|
|
|
<if test="maxNum != null">max_num = #{maxNum},</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="createBy != null">create_by = #{createBy},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|