|
|
@@ -12,10 +12,11 @@
|
|
|
<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="remarks" column="remarks" jdbcType="VARCHAR"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="TaskScoreAllSql">
|
|
|
- id, tid, professionalism, communication_skills, responsiveness, public_image, service_attitude, monthly_report, create_time
|
|
|
+ id, tid, professionalism, communication_skills, responsiveness, public_image, service_attitude, monthly_report, create_time, remarks
|
|
|
</sql>
|
|
|
|
|
|
<!--查询单个-->
|
|
|
@@ -60,6 +61,9 @@
|
|
|
<if test="createTime != null">
|
|
|
and create_time = #{createTime}
|
|
|
</if>
|
|
|
+ <if test="remarks != null and remarks != ''">
|
|
|
+ and remarks = #{remarks}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
<if test="page_sql != null">
|
|
|
${page_sql}
|
|
|
@@ -98,35 +102,39 @@
|
|
|
<if test="createTime != null">
|
|
|
and create_time = #{createTime}
|
|
|
</if>
|
|
|
+ <if test="remarks != null and remarks != ''">
|
|
|
+ and remarks = #{remarks}
|
|
|
+ </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 )
|
|
|
+ service_attitude, monthly_report, create_time, remarks)
|
|
|
values (#{tid}, #{professionalism}, #{communicationSkills}, #{responsiveness}, #{publicImage},
|
|
|
- #{serviceAttitude}, #{monthlyReport})
|
|
|
+ #{serviceAttitude}, #{monthlyReport}, #{createTime}, #{remarks})
|
|
|
</insert>
|
|
|
|
|
|
<insert id="insertBatch">
|
|
|
insert into task_score(tid, professionalism, communication_skills, responsiveness, public_image,
|
|
|
- service_attitude, monthly_report, create_time)
|
|
|
+ service_attitude, monthly_report, create_time, remarks)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
(#{entity.tid}, #{entity.professionalism}, #{entity.communicationSkills}, #{entity.responsiveness},
|
|
|
- #{entity.publicImage}, #{entity.serviceAttitude}, #{entity.monthlyReport}, #{entity.createTime})
|
|
|
+ #{entity.publicImage}, #{entity.serviceAttitude}, #{entity.monthlyReport}, #{entity.createTime},
|
|
|
+ #{entity.remarks})
|
|
|
</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)
|
|
|
+ service_attitude, monthly_report, create_time, remarks)
|
|
|
values
|
|
|
<foreach collection="entities" item="entity" separator=",">
|
|
|
(#{entity.tid}, #{entity.professionalism}, #{entity.communicationSkills}, #{entity.responsiveness},
|
|
|
- #{entity.publicImage}, #{entity.serviceAttitude}, #{entity.monthlyReport}, #{entity.createTime})
|
|
|
+ #{entity.publicImage}, #{entity.serviceAttitude}, #{entity.monthlyReport}, #{entity.createTime},
|
|
|
+ #{entity.remarks})
|
|
|
</foreach>
|
|
|
on duplicate key update
|
|
|
tid = values(tid),
|
|
|
@@ -136,7 +144,8 @@
|
|
|
public_image = values(public_image),
|
|
|
service_attitude = values(service_attitude),
|
|
|
monthly_report = values(monthly_report),
|
|
|
- create_time = values(create_time)
|
|
|
+ create_time = values(create_time),
|
|
|
+ remarks = values(remarks)
|
|
|
</insert>
|
|
|
|
|
|
<!--通过主键修改数据-->
|
|
|
@@ -167,6 +176,9 @@
|
|
|
<if test="createTime != null">
|
|
|
create_time = #{createTime},
|
|
|
</if>
|
|
|
+ <if test="remarks != null and remarks != ''">
|
|
|
+ remarks = #{remarks},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id = #{id}
|
|
|
</update>
|