陈昶聿
7 小时以前 38955eba4ef0e86bac6b1993b6b03abbbec2a929
ruoyi-task/src/main/resources/mapper/task/ServiceSubtaskMapper.xml
@@ -1024,7 +1024,9 @@
        ), '%y%m%d' ) )
        THEN 1 ELSE 0 END ) finished,1 AS tasknumber FROM service_subtask
        WHERE del_flag=0
        <if test="starttime == null and endtime==null">
        <!-- 只有未指定任何时间范围时才默认只统计已到期任务;
             只按出院时间查询时不能再排除未来 visit_time,否则及时率分母与主表不一致。 -->
        <if test="starttime == null and endtime == null and startOutHospTime == null and endOutHospTime == null">
            AND visit_time &lt; NOW()
        </if>
        <if test="starttime != null and endtime!=null">
@@ -1116,7 +1118,9 @@
        WHERE ss.del_flag = 0
        AND ss.visit_time IS NOT NULL
        AND ss.sendstate != 4
        <if test="starttime == null and endtime==null">
        <!-- 只有未指定任何时间范围时才默认只统计已到期任务;
             只按出院时间查询时不能再排除未来 visit_time,否则及时率分母与主表不一致。 -->
        <if test="starttime == null and endtime == null and startOutHospTime == null and endOutHospTime == null">
            AND DATE(ss.visit_time) &lt; DATE(NOW())
        </if>
        <if test="starttime != null and endtime!=null">