|
@@ -100,27 +100,6 @@
|
|
|
</if>
|
|
|
) deductScore
|
|
|
from enforce_organize eo
|
|
|
- left join (
|
|
|
- SELECT
|
|
|
- COUNT( 1 )
|
|
|
- FROM
|
|
|
- enforce_job ej
|
|
|
- LEFT JOIN enforce_video ev ON ej.id = ev.enfore_job_id
|
|
|
- AND ev.is_deleted = 0
|
|
|
- WHERE
|
|
|
- ej.enforce_org_id = eo.enforce_org_id
|
|
|
- and ej.job_status = 'ARCHIVED'
|
|
|
- AND ej.is_deleted = '0'
|
|
|
- AND ev.enfore_job_id IS NULL;
|
|
|
- <if test="pm.startDate != null and pm.startDate !=''">
|
|
|
- AND ej.finish_time <![CDATA[ >= ]]> #{pm.startDate}
|
|
|
- </if>
|
|
|
- <if test="pm.endDate != null and pm.endDate !=''">
|
|
|
- AND ej.finish_time <![CDATA[ <= ]]> #{pm.endDate}
|
|
|
- </if>
|
|
|
- )t1 on t1
|
|
|
-
|
|
|
-
|
|
|
where eo.enforce_org_id not in ('55c99876ec0f425aac6925a92cceeb17','256069491270746112')
|
|
|
<if test="pm.enforceOrgId != null and pm.enforceOrgId != ''">
|
|
|
and eo.enforce_org_id = #{pm.enforceOrgId}
|