|
@@ -33,7 +33,7 @@
|
|
sta.work_hours AS workHours,
|
|
sta.work_hours AS workHours,
|
|
sta.ding_exception_count AS dingExceptionCount,
|
|
sta.ding_exception_count AS dingExceptionCount,
|
|
sta.remain_count AS remainCount,
|
|
sta.remain_count AS remainCount,
|
|
- IFNULL(ec.cnt,0) AS exceptionCount,
|
|
|
|
|
|
+ sta.exception_count AS exceptionCount,
|
|
IFNULL(tbds.submit_status, 'WILL_SUBMIT') AS submitStatus,
|
|
IFNULL(tbds.submit_status, 'WILL_SUBMIT') AS submitStatus,
|
|
tbds.id AS submitId,
|
|
tbds.id AS submitId,
|
|
tbds.submit_user_id AS submitUserId,
|
|
tbds.submit_user_id AS submitUserId,
|
|
@@ -50,13 +50,6 @@
|
|
AND sta.user_archives_id = tbds.user_archives_id
|
|
AND sta.user_archives_id = tbds.user_archives_id
|
|
LEFT JOIN
|
|
LEFT JOIN
|
|
sys_user su ON tbds.submit_user_id = su.id
|
|
sys_user su ON tbds.submit_user_id = su.id
|
|
- LEFT JOIN (
|
|
|
|
- SELECT COUNT(*) AS cnt, sop_no, create_id
|
|
|
|
- FROM
|
|
|
|
- t_b_ding_apply
|
|
|
|
- WHERE approve IS NULL
|
|
|
|
- GROUP BY sop_no , create_id) ec ON ec.sop_no = sta.sop_no
|
|
|
|
- AND ec.create_id = sta.user_id
|
|
|
|
<where>
|
|
<where>
|
|
AND tbs.status = 'PUBLISH'
|
|
AND tbs.status = 'PUBLISH'
|
|
<if test="serviceUnitId != null">
|
|
<if test="serviceUnitId != null">
|
|
@@ -141,7 +134,7 @@
|
|
sta.work_hours AS workHours,
|
|
sta.work_hours AS workHours,
|
|
sta.ding_exception_count AS dingExceptionCount,
|
|
sta.ding_exception_count AS dingExceptionCount,
|
|
sta.remain_count AS remainCount,
|
|
sta.remain_count AS remainCount,
|
|
- IFNULL(ec.cnt,0) AS exceptionCount,
|
|
|
|
|
|
+ sta.exception_count AS exceptionCount,
|
|
IFNULL(tbds.submit_status, 'WILL_SUBMIT') AS submitStatus,
|
|
IFNULL(tbds.submit_status, 'WILL_SUBMIT') AS submitStatus,
|
|
tbds.id AS submitId,
|
|
tbds.id AS submitId,
|
|
tbds.submit_user_id AS submitUserId,
|
|
tbds.submit_user_id AS submitUserId,
|
|
@@ -158,13 +151,6 @@
|
|
AND sta.user_archives_id = tbds.user_archives_id
|
|
AND sta.user_archives_id = tbds.user_archives_id
|
|
LEFT JOIN
|
|
LEFT JOIN
|
|
sys_user su ON tbds.submit_user_id = su.id
|
|
sys_user su ON tbds.submit_user_id = su.id
|
|
- LEFT JOIN (
|
|
|
|
- SELECT COUNT(*) AS cnt, sop_no, create_id
|
|
|
|
- FROM
|
|
|
|
- t_b_ding_apply
|
|
|
|
- WHERE approve IS NULL
|
|
|
|
- GROUP BY sop_no , create_id) ec ON ec.sop_no = sta.sop_no
|
|
|
|
- AND ec.create_id = sta.user_id
|
|
|
|
<where>
|
|
<where>
|
|
AND tbs.status = 'PUBLISH'
|
|
AND tbs.status = 'PUBLISH'
|
|
<if test="serviceUnitId != null">
|
|
<if test="serviceUnitId != null">
|