|
@@ -40,6 +40,7 @@
|
|
tbc.lead_id AS regionManagerId,
|
|
tbc.lead_id AS regionManagerId,
|
|
tbc.region_coordinator_id AS coordinatorId,
|
|
tbc.region_coordinator_id AS coordinatorId,
|
|
tbs.update_time AS serviceUpdateTime,
|
|
tbs.update_time AS serviceUpdateTime,
|
|
|
|
+ tbs.status AS serviceStatus,
|
|
tbc.update_time AS crmUpdateTime,
|
|
tbc.update_time AS crmUpdateTime,
|
|
tbd.sign_in_exception_count + tbd.sign_out_exception_count AS dingExceptionCount
|
|
tbd.sign_in_exception_count + tbd.sign_out_exception_count AS dingExceptionCount
|
|
FROM
|
|
FROM
|
|
@@ -91,6 +92,7 @@
|
|
LEFT JOIN t_f_flow_approve tffa ON tffa.flow_id = tfcfe.flow_id
|
|
LEFT JOIN t_f_flow_approve tffa ON tffa.flow_id = tfcfe.flow_id
|
|
) main
|
|
) main
|
|
<where>
|
|
<where>
|
|
|
|
+ AND main.serviceStatus = 'PUBLISH'
|
|
<if test="serviceUnitId != null">
|
|
<if test="serviceUnitId != null">
|
|
AND main.serviceUnitId = #{serviceUnitId}
|
|
AND main.serviceUnitId = #{serviceUnitId}
|
|
</if>
|
|
</if>
|
|
@@ -190,6 +192,7 @@
|
|
tbc.lead_id AS regionManagerId,
|
|
tbc.lead_id AS regionManagerId,
|
|
tbc.region_coordinator_id AS coordinatorId,
|
|
tbc.region_coordinator_id AS coordinatorId,
|
|
tbs.update_time AS serviceUpdateTime,
|
|
tbs.update_time AS serviceUpdateTime,
|
|
|
|
+ tbs.status AS serviceStatus,
|
|
tbc.update_time AS crmUpdateTime,
|
|
tbc.update_time AS crmUpdateTime,
|
|
tbd.sign_in_exception_count + tbd.sign_out_exception_count AS dingExceptionCount
|
|
tbd.sign_in_exception_count + tbd.sign_out_exception_count AS dingExceptionCount
|
|
FROM
|
|
FROM
|
|
@@ -241,6 +244,7 @@
|
|
LEFT JOIN t_f_flow_approve tffa ON tffa.flow_id = tfcfe.flow_id
|
|
LEFT JOIN t_f_flow_approve tffa ON tffa.flow_id = tfcfe.flow_id
|
|
) main
|
|
) main
|
|
<where>
|
|
<where>
|
|
|
|
+ AND main.serviceStatus = 'PUBLISH'
|
|
<if test="serviceUnitId != null">
|
|
<if test="serviceUnitId != null">
|
|
AND main.serviceUnitId = #{serviceUnitId}
|
|
AND main.serviceUnitId = #{serviceUnitId}
|
|
</if>
|
|
</if>
|