|
@@ -831,7 +831,7 @@ END) as projectScale*/
|
|
|
<choose>
|
|
|
<when test="emergencyProject != null and emergencyProject != '' and emergencyProject == 1">
|
|
|
/*B类紧急*/
|
|
|
- and a.emergency_project = 1 and (timestampdiff(day,prd.audit_pass_date,now()) <#{endingCount} or prd.audit_pass_date is null)
|
|
|
+ /*and a.emergency_project = 1*/ and (timestampdiff(day,prd.audit_pass_date,now()) <#{endingCount} or prd.audit_pass_date is null)
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
and prdt.status = 5 and prdt.audit_pass_date is not null and (timestampdiff(day,prdt.audit_pass_date,now())<#{endingCount} or prdt.audit_pass_date is null)
|
|
@@ -867,7 +867,7 @@ END) as projectScale*/
|
|
|
<choose>
|
|
|
<when test="emergencyProject != null and emergencyProject != '' and emergencyProject == 1">
|
|
|
/*B类紧急*/
|
|
|
- and a.emergency_project = 1 and timestampdiff(day,prd.audit_pass_date,prr.record_date) < #{endingCount}
|
|
|
+ /*and a.emergency_project = 1*/ and timestampdiff(day,prd.audit_pass_date,prr.record_date) < #{endingCount}
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
and prdt.status = 5 and prdt.audit_pass_date is not null and timestampdiff(day,prdt.audit_pass_date,prr.record_date) < #{endingCount}
|
|
@@ -901,7 +901,7 @@ END) as projectScale*/
|
|
|
<choose>
|
|
|
<when test="emergencyProject != null and emergencyProject != '' and emergencyProject == 1">
|
|
|
/*B类紧急*/
|
|
|
- and a.emergency_project = 1 and timestampdiff(day,prd.audit_pass_date,now())>=#{endingCount}
|
|
|
+ /*and a.emergency_project = 1*/ and timestampdiff(day,prd.audit_pass_date,now())>=#{endingCount}
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
and prdt.status = 5 and prdt.audit_pass_date is not null and timestampdiff(day,prdt.audit_pass_date,now())>=#{endingCount}
|
|
@@ -942,7 +942,7 @@ END) as projectScale*/
|
|
|
<choose>
|
|
|
<when test="emergencyProject != null and emergencyProject != '' and emergencyProject == 1">
|
|
|
/*B类紧急*/
|
|
|
- and a.emergency_project = 1 and timestampdiff(day,prd.audit_pass_date,prr.record_date)>=#{endingCount}
|
|
|
+ /*and a.emergency_project = 1*/ and timestampdiff(day,prd.audit_pass_date,prr.record_date)>=#{endingCount}
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
and prdt.status = 5 and prdt.audit_pass_date is not null and timestampdiff(day,prdt.audit_pass_date,prr.record_date)>=#{endingCount}
|
|
@@ -998,7 +998,7 @@ END) as projectScale*/
|
|
|
<choose>
|
|
|
<when test="emergencyProject != null and emergencyProject != '' and emergencyProject == 1">
|
|
|
/*B类紧急*/
|
|
|
- and a.emergency_project = 1 and (timestampdiff(day,prd.audit_pass_date,now()) <#{endingCount} or prd.audit_pass_date is null)
|
|
|
+ /*and a.emergency_project = 1*/ and (timestampdiff(day,prd.audit_pass_date,now()) <#{endingCount} or prd.audit_pass_date is null)
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
and prdt.status = 5 and prdt.audit_pass_date is not null and (timestampdiff(day,prdt.audit_pass_date,now())<#{endingCount} or prdt.audit_pass_date is null)
|
|
@@ -1036,7 +1036,7 @@ END) as projectScale*/
|
|
|
<choose>
|
|
|
<when test="emergencyProject != null and emergencyProject != '' and emergencyProject == 1">
|
|
|
/*B类紧急*/
|
|
|
- and a.emergency_project = 1 and timestampdiff(day,prd.audit_pass_date,(select create_date from work_activity_process wap where wap.process_instance_id = rprr.process_instance_id
|
|
|
+ /*and a.emergency_project = 1*/ and timestampdiff(day,prd.audit_pass_date,(select create_date from work_activity_process wap where wap.process_instance_id = rprr.process_instance_id
|
|
|
order by create_date
|
|
|
limit 1))<#{endingCount}
|
|
|
</when>
|
|
@@ -1125,7 +1125,7 @@ END) as projectScale*/
|
|
|
<choose>
|
|
|
<when test="emergencyProject != null and emergencyProject != '' and emergencyProject == 1">
|
|
|
/*B类紧急*/
|
|
|
- and a.emergency_project = 1 and timestampdiff(day,prd.audit_pass_date,(select create_date from work_activity_process wap where wap.process_instance_id = rprr.process_instance_id
|
|
|
+ /*and a.emergency_project = 1*/ and timestampdiff(day,prd.audit_pass_date,(select create_date from work_activity_process wap where wap.process_instance_id = rprr.process_instance_id
|
|
|
order by create_date
|
|
|
limit 1))>=#{endingCount}
|
|
|
</when>
|
|
@@ -1178,7 +1178,7 @@ END) as projectScale*/
|
|
|
<choose>
|
|
|
<when test="emergencyProject != null and emergencyProject != '' and emergencyProject == 1">
|
|
|
/*B类紧急*/
|
|
|
- and a.emergency_project = 1 and timestampdiff(day,prd.audit_pass_date,(select create_date from work_activity_process wap where wap.process_instance_id = rprr.process_instance_id
|
|
|
+ /*and a.emergency_project = 1*/ and timestampdiff(day,prd.audit_pass_date,(select create_date from work_activity_process wap where wap.process_instance_id = rprr.process_instance_id
|
|
|
order by create_date
|
|
|
limit 1))>=#{endingCount}
|
|
|
</when>
|