From 7c1bbfb67b710ab6f2f9a931415b98f303ff384b Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期一, 30 六月 2025 15:50:40 +0800 Subject: [PATCH] 保洁巡检本周代码 --- ruoyi-system/src/main/resources/mapper/system/TTaskMapper.xml | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/TTaskMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TTaskMapper.xml index ff84847..fc4a53e 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TTaskMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TTaskMapper.xml @@ -170,5 +170,29 @@ group by t1.user_id,t1.template_id </select> + <select id="taskProgressExport" resultType="com.ruoyi.system.vo.system.ProgressListVO"> + select t1.*,t2.nick_name as nickName,t2.phonenumber,t3.template_name as templateName,count(*) as num2, + SUM(CASE WHEN t1.status = 5 or t1.status=6 THEN 1 ELSE 0 END) AS num3 + + from t_task t1 + left join sys_user t2 on t1.user_id = t2.user_id + left join t_template t3 on t1.template_id = t3.id + where 1=1 + and t1.`disabled` = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} + <if test="query.templateIds != null and query.templateIds.size()>0"> + AND t1.template_id IN + <foreach collection="query.templateIds" separator="," item="id" open="(" close=")"> + #{id} + </foreach> + </if> + <if test="query.patrolInspectorIds != null and query.patrolInspectorIds.size()>0"> + AND t1.user_id IN + <foreach collection="query.patrolInspectorIds" separator="," item="id" open="(" close=")"> + #{id} + </foreach> + </if> + + group by t1.user_id,t1.template_id + </select> </mapper> -- Gitblit v1.7.1