问题修改

This commit is contained in:
hayu 2025-06-19 10:18:47 +08:00
parent a3836fdb8d
commit 5326f9a137
1 changed files with 3 additions and 9 deletions

View File

@ -224,11 +224,11 @@
left join sys_user su2 on su2.user_id = rd.repairer left join sys_user su2 on su2.user_id = rd.repairer
where where
rd.is_ds=1 rd.is_ds=1
<if test="status !=null and status!=''"> <if test="appTaskStatus !=null">
<if test="status=='0'"> <if test="appTaskStatus==0">
and tt.task_status = 0 and tt.task_status = 0
</if> </if>
<if test="status=='1'"> <if test="appTaskStatus==1">
and (tt.task_status = 1 or tt.task_status = 2 or tt.task_status = 4) and (tt.task_status = 1 or tt.task_status = 2 or tt.task_status = 4)
</if> </if>
</if> </if>
@ -250,12 +250,6 @@
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> <if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
AND tt.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59') AND tt.create_time BETWEEN CONCAT(#{startTime}, ' 00:00:00') AND CONCAT(#{endTime}, ' 23:59:59')
</if> </if>
<if test="appTaskStatus != null and appTaskStatus == 0">
and tt.task_status = #{appTaskStatus}
</if>
<if test="appTaskStatus != null and appTaskStatus == 1">
and (tt.task_status = 1 or tt.task_status = 2)
</if>
GROUP BY rd.task_id,bui.unit_name,bpi.pro_name,bai.code,su.nick_name GROUP BY rd.task_id,bui.unit_name,bpi.pro_name,bai.code,su.nick_name
order by tt.create_time desc order by tt.create_time desc
</select> </select>