|
|
@@ -1159,7 +1159,7 @@ and
|
|
|
-- LEFT JOIN core_drill_plan b ON a.plan_id = b.id
|
|
|
LEFT JOIN sys_org c ON a.org_id = c.id
|
|
|
WHERE c.type=3
|
|
|
- AND a.`status`=2
|
|
|
+ AND a.`status`in (2,3)
|
|
|
and a.org_path like concat(concat('%',#{orgPath}),'%')
|
|
|
AND a.drill_start_time BETWEEN #{startTime} and #{endTime}
|
|
|
</select>
|
|
|
@@ -1181,7 +1181,7 @@ and
|
|
|
core_drill_task a
|
|
|
LEFT JOIN core_drill_plan b ON a.plan_id = b.id
|
|
|
WHERE b.exec_org_type=4
|
|
|
- and a.`status`=2
|
|
|
+ and a.`status` in (2,3)
|
|
|
and a.org_path like concat(concat('%',#{orgPath}),'%')
|
|
|
AND a.drill_start_time BETWEEN #{startTime} and #{endTime}
|
|
|
</select>
|
|
|
@@ -1194,6 +1194,7 @@ and
|
|
|
LEFT JOIN core_drill_task_to_user c ON c.drill_task_id = a.id
|
|
|
WHERE
|
|
|
b.exec_org_type = 4
|
|
|
+ and a.`status` in (2,3)
|
|
|
and a.org_path like concat(concat('%',#{orgPath}),'%')
|
|
|
AND a.drill_start_time BETWEEN #{startTime} and #{endTime}
|
|
|
</select>
|