|
|
@@ -11,12 +11,13 @@
|
|
|
<result property="publicImage" column="public_image" jdbcType="INTEGER"/>
|
|
|
<result property="serviceAttitude" column="service_attitude" jdbcType="INTEGER"/>
|
|
|
<result property="monthlyReport" column="monthly_report" jdbcType="INTEGER"/>
|
|
|
- <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
+ <result property="yearReport" column="year_report" jdbcType="INTEGER"/>
|
|
|
<result property="remarks" column="remarks" jdbcType="VARCHAR"/>
|
|
|
+ <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="TaskScoreAllSql">
|
|
|
- id, tid, professionalism, communication_skills, responsiveness, public_image, service_attitude, monthly_report, create_time, remarks
|
|
|
+ id, tid, professionalism, communication_skills, responsiveness, public_image, service_attitude, monthly_report, year_report, remarks, create_time
|
|
|
</sql>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
@@ -58,12 +59,15 @@
|
|
|
<if test="monthlyReport != null">
|
|
|
and monthly_report = #{monthlyReport}
|
|
|
</if>
|
|
|
- <if test="createTime != null">
|
|
|
- and create_time = #{createTime}
|
|
|
+ <if test="yearReport != null">
|
|
|
+ and year_report = #{yearReport}
|
|
|
</if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
and remarks = #{remarks}
|
|
|
</if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ and create_time = #{createTime}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
<if test="page_sql != null">
|
|
|
${page_sql}
|
|
|
@@ -99,42 +103,45 @@
|
|
|
<if test="monthlyReport != null">
|
|
|
and monthly_report = #{monthlyReport}
|
|
|
</if>
|
|
|
- <if test="createTime != null">
|
|
|
- and create_time = #{createTime}
|
|
|
+ <if test="yearReport != null">
|
|
|
+ and year_report = #{yearReport}
|
|
|
</if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
and remarks = #{remarks}
|
|
|
</if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ and create_time = #{createTime}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
<!--新增所有列-->
|
|
|
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
|
|
|
insert into task_score(tid, professionalism, communication_skills, responsiveness, public_image,
|
|
|
- service_attitude, monthly_report, create_time, remarks)
|
|
|
+ service_attitude, monthly_report, year_report, remarks, create_time)
|
|
|
values (#{tid}, #{professionalism}, #{communicationSkills}, #{responsiveness}, #{publicImage},
|
|
|
- #{serviceAttitude}, #{monthlyReport}, #{createTime}, #{remarks})
|
|
|
+ #{serviceAttitude}, #{monthlyReport}, #{yearReport}, #{remarks}, #{createTime})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch">
|
|
|
insert into task_score(tid, professionalism, communication_skills, responsiveness, public_image,
|
|
|
- service_attitude, monthly_report, create_time, remarks)
|
|
|
+ service_attitude, monthly_report, year_report, remarks, create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
(#{entity.tid}, #{entity.professionalism}, #{entity.communicationSkills}, #{entity.responsiveness},
|
|
|
- #{entity.publicImage}, #{entity.serviceAttitude}, #{entity.monthlyReport}, #{entity.createTime},
|
|
|
- #{entity.remarks})
|
|
|
+ #{entity.publicImage}, #{entity.serviceAttitude}, #{entity.monthlyReport}, #{entity.yearReport},
|
|
|
+ #{entity.remarks}, #{entity.createTime})
|
|
|
</foreach>
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
|
|
|
insert into task_score(tid, professionalism, communication_skills, responsiveness, public_image,
|
|
|
- service_attitude, monthly_report, create_time, remarks)
|
|
|
+ service_attitude, monthly_report, year_report, remarks, create_time)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
(#{entity.tid}, #{entity.professionalism}, #{entity.communicationSkills}, #{entity.responsiveness},
|
|
|
- #{entity.publicImage}, #{entity.serviceAttitude}, #{entity.monthlyReport}, #{entity.createTime},
|
|
|
- #{entity.remarks})
|
|
|
+ #{entity.publicImage}, #{entity.serviceAttitude}, #{entity.monthlyReport}, #{entity.yearReport},
|
|
|
+ #{entity.remarks}, #{entity.createTime})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
tid = values(tid),
|
|
|
@@ -144,8 +151,9 @@
|
|
|
public_image = values(public_image),
|
|
|
service_attitude = values(service_attitude),
|
|
|
monthly_report = values(monthly_report),
|
|
|
- create_time = values(create_time),
|
|
|
- remarks = values(remarks)
|
|
|
+ year_report = values(year_report),
|
|
|
+ remarks = values(remarks),
|
|
|
+ create_time = values(create_time)
|
|
|
</insert>
|
|
|
|
|
|
<!--通过主键修改数据-->
|
|
|
@@ -173,12 +181,15 @@
|
|
|
<if test="monthlyReport != null">
|
|
|
monthly_report = #{monthlyReport},
|
|
|
</if>
|
|
|
- <if test="createTime != null">
|
|
|
- create_time = #{createTime},
|
|
|
+ <if test="yearReport != null">
|
|
|
+ year_report = #{yearReport},
|
|
|
</if>
|
|
|
<if test="remarks != null and remarks != ''">
|
|
|
remarks = #{remarks},
|
|
|
</if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time = #{createTime},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id}
|
|
|
</update>
|