|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.ruoyi.kaohe.mapper.KhVoteEmpMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="KhVoteEmp" id="KhVoteEmpResult">
|
|
|
|
|
@ -13,6 +13,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="content" column="content" />
|
|
|
|
|
<result property="voteNum" column="vote_num" />
|
|
|
|
|
<result property="voteScore" column="vote_score" />
|
|
|
|
|
<result property="percentage" column="percentage" />
|
|
|
|
|
<result property="endScore" column="end_score" />
|
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
|
<result property="createTime" column="create_time" />
|
|
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
|
|
@ -21,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectKhVoteEmpVo">
|
|
|
|
|
select id, vote_id, vote_title, emp_id, emp_name, content, vote_num, vote_score, create_by, create_time, update_by, update_time, remark from kh_vote_emp
|
|
|
|
|
select id, vote_id, vote_title, emp_id, emp_name, content, vote_num, vote_score, percentage, end_score, create_by, create_time, update_by, update_time, remark from kh_vote_emp
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectKhVoteEmpList" parameterType="KhVoteEmp" resultMap="KhVoteEmpResult">
|
|
|
|
|
@ -34,6 +36,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="content != null and content != ''"> and content = #{content}</if>
|
|
|
|
|
<if test="voteNum != null "> and vote_num = #{voteNum}</if>
|
|
|
|
|
<if test="voteScore != null "> and vote_score = #{voteScore}</if>
|
|
|
|
|
<if test="percentage != null "> and percentage = #{percentage}</if>
|
|
|
|
|
<if test="endScore != null "> and end_score = #{endScore}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
@ -52,6 +56,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="content != null">content,</if>
|
|
|
|
|
<if test="voteNum != null">vote_num,</if>
|
|
|
|
|
<if test="voteScore != null">vote_score,</if>
|
|
|
|
|
<if test="percentage != null">percentage,</if>
|
|
|
|
|
<if test="endScore != null">end_score,</if>
|
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
@ -66,6 +72,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="content != null">#{content},</if>
|
|
|
|
|
<if test="voteNum != null">#{voteNum},</if>
|
|
|
|
|
<if test="voteScore != null">#{voteScore},</if>
|
|
|
|
|
<if test="percentage != null">#{percentage},</if>
|
|
|
|
|
<if test="endScore != null">#{endScore},</if>
|
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
@ -84,6 +92,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="content != null">content = #{content},</if>
|
|
|
|
|
<if test="voteNum != null">vote_num = #{voteNum},</if>
|
|
|
|
|
<if test="voteScore != null">vote_score = #{voteScore},</if>
|
|
|
|
|
<if test="percentage != null">percentage = #{percentage},</if>
|
|
|
|
|
<if test="endScore != null">end_score = #{endScore},</if>
|
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
|