|
@@ -180,78 +180,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="findAdminTaskScoreList" resultType="com.goafanti.order.bo.TaskScore.OutTaskScore">
|
|
<select id="findAdminTaskScoreList" resultType="com.goafanti.order.bo.TaskScore.OutTaskScore">
|
|
|
- select a.id,a.name ,a.department_id depId,c.name depName,a.superior_id superId,a2.name superName,a.status ,a.last_login_time lastLoginTime
|
|
|
|
|
- b.htSatCount htSatCount
|
|
|
|
|
|
|
+ select a.id,a.name ,a.department_id depId,c.name depName,a.superior_id superId,a2.name superName,a.status ,a.last_login_time lastLoginTime,
|
|
|
|
|
+ b.ht_sat_count htSatCount,b.ht_sat_score_count htSatScoreCount,b.ht_sat_score_average htSatScoreAverage,
|
|
|
|
|
+ b.member_count memberCount,b.member_score_count memberScoreCount,b.member_score_average memberScoreAverage
|
|
|
from admin a left join admin_project_statistics b on a.id =b.aid
|
|
from admin a left join admin_project_statistics b on a.id =b.aid
|
|
|
left join department c on a.department_id =c.id
|
|
left join department c on a.department_id =c.id
|
|
|
left join admin a2 on a.superior_id =a2.id
|
|
left join admin a2 on a.superior_id =a2.id
|
|
|
- <where>
|
|
|
|
|
- <if test="id != null">
|
|
|
|
|
- and id = #{id}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tid != null">
|
|
|
|
|
- and tid = #{tid}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="professionalism != null">
|
|
|
|
|
- and professionalism = #{professionalism}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="communicationSkills != null">
|
|
|
|
|
- and communication_skills = #{communicationSkills}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="responsiveness != null">
|
|
|
|
|
- and responsiveness = #{responsiveness}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="publicImage != null">
|
|
|
|
|
- and public_image = #{publicImage}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="serviceAttitude != null">
|
|
|
|
|
- and service_attitude = #{serviceAttitude}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="monthlyReport != null">
|
|
|
|
|
- and monthly_report = #{monthlyReport}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- and create_time = #{createTime}
|
|
|
|
|
- </if>
|
|
|
|
|
- </where>
|
|
|
|
|
|
|
+ <if test="roleId !=null">
|
|
|
|
|
+ left join user_role ur on a.id=ur.uid left join role r on ur.rid=r.id
|
|
|
|
|
+ </if>
|
|
|
<if test="page_sql != null">
|
|
<if test="page_sql != null">
|
|
|
${page_sql}
|
|
${page_sql}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
-
|
|
|
|
|
- <!--统计总行数-->
|
|
|
|
|
- <select id="findTaskScoreCount" resultType="java.lang.Integer">
|
|
|
|
|
- select count(1)
|
|
|
|
|
- from task_score
|
|
|
|
|
|
|
+ <sql id="findAdminTaskScoreSql">
|
|
|
<where>
|
|
<where>
|
|
|
- <if test="id != null">
|
|
|
|
|
- and id = #{id}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="tid != null">
|
|
|
|
|
- and tid = #{tid}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="professionalism != null">
|
|
|
|
|
- and professionalism = #{professionalism}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="communicationSkills != null">
|
|
|
|
|
- and communication_skills = #{communicationSkills}
|
|
|
|
|
|
|
+ <if test="name != null">
|
|
|
|
|
+ and a.name like concat('%',#{name},'%')
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="responsiveness != null">
|
|
|
|
|
- and responsiveness = #{responsiveness}
|
|
|
|
|
|
|
+ <if test="depId != null">
|
|
|
|
|
+ and a.department_id =#{depId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="publicImage != null">
|
|
|
|
|
- and public_image = #{publicImage}
|
|
|
|
|
|
|
+ <if test="roleId != null">
|
|
|
|
|
+ and r.id =#{roleId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="serviceAttitude != null">
|
|
|
|
|
- and service_attitude = #{serviceAttitude}
|
|
|
|
|
|
|
+ <if test="positionId != null">
|
|
|
|
|
+ and a.position_id =#{positionId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="monthlyReport != null">
|
|
|
|
|
- and monthly_report = #{monthlyReport}
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- and create_time = #{createTime}
|
|
|
|
|
|
|
+ <if test="status != null">
|
|
|
|
|
+ and a.status =#{status}
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
|
|
+ </sql>
|
|
|
|
|
+
|
|
|
|
|
+ <!--统计总行数-->
|
|
|
|
|
+ <select id="findAdminTaskScoreCount" resultType="java.lang.Integer">
|
|
|
|
|
+ select count(*)
|
|
|
|
|
+ from admin a
|
|
|
|
|
+ <if test="roleId !=null">
|
|
|
|
|
+ left join user_role ur on a.id=ur.uid left join role r on ur.rid=r.id
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="queryByTid" resultMap="TaskScoreMap">
|
|
<select id="queryByTid" resultMap="TaskScoreMap">
|