|
@@ -244,6 +244,7 @@
|
|
,supmi.name as "projectMasterName"
|
|
,supmi.name as "projectMasterName"
|
|
,ifnull(pmdr.status,0) as "defectRecordStatus"
|
|
,ifnull(pmdr.status,0) as "defectRecordStatus"
|
|
,pmdr.hiatus as "hiatus"
|
|
,pmdr.hiatus as "hiatus"
|
|
|
|
+ ,pmdr.id as "pmdrId"
|
|
,pmdr.remarks as "remarks"
|
|
,pmdr.remarks as "remarks"
|
|
FROM rural_project_records a
|
|
FROM rural_project_records a
|
|
<include refid="projectRecordsJoins"/>
|
|
<include refid="projectRecordsJoins"/>
|
|
@@ -2181,7 +2182,7 @@
|
|
and a.status = 5
|
|
and a.status = 5
|
|
and a.emergency_project = 1
|
|
and a.emergency_project = 1
|
|
and (a.reported_state=6 or a.reported_state is null)
|
|
and (a.reported_state=6 or a.reported_state is null)
|
|
- and prd.status = 5
|
|
|
|
|
|
+ and (prd.status = 5 or prd.status = 7)
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
@@ -2231,7 +2232,7 @@
|
|
a.del_flag = 0
|
|
a.del_flag = 0
|
|
and a.emergency_project = 1
|
|
and a.emergency_project = 1
|
|
and (a.reported_state!=5 or a.reported_state is null)
|
|
and (a.reported_state!=5 or a.reported_state is null)
|
|
- and prd.status = 5
|
|
|
|
|
|
+ and (prd.status = 5 or prd.status = 7)
|
|
and now() > date_add(prd.audit_pass_date,interval #{endingCount} day)
|
|
and now() > date_add(prd.audit_pass_date,interval #{endingCount} day)
|
|
and prd.audit_pass_date is not null
|
|
and prd.audit_pass_date is not null
|
|
and a.reported_state is null
|
|
and a.reported_state is null
|
|
@@ -2582,7 +2583,7 @@
|
|
and a.status = 5
|
|
and a.status = 5
|
|
and a.emergency_project = 1
|
|
and a.emergency_project = 1
|
|
and (a.record_state=6 or a.record_state is null)
|
|
and (a.record_state=6 or a.record_state is null)
|
|
- and prd.status = 5
|
|
|
|
|
|
+ and (prd.status = 5 or prd.status = 7)
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
@@ -2631,7 +2632,7 @@
|
|
a.del_flag = 0
|
|
a.del_flag = 0
|
|
and a.emergency_project = 1
|
|
and a.emergency_project = 1
|
|
and (a.record_state!=5 or a.record_state is null)
|
|
and (a.record_state!=5 or a.record_state is null)
|
|
- and prd.status = 5
|
|
|
|
|
|
+ and (prd.status = 5 or prd.status = 7)
|
|
and now() > date_add(prd.audit_pass_date,interval #{endingCount} day)
|
|
and now() > date_add(prd.audit_pass_date,interval #{endingCount} day)
|
|
and prd.audit_pass_date is not null
|
|
and prd.audit_pass_date is not null
|
|
and a.record_state is null
|
|
and a.record_state is null
|
|
@@ -4702,6 +4703,7 @@
|
|
a.del_flag = 0
|
|
a.del_flag = 0
|
|
and a.submit_money = 2
|
|
and a.submit_money = 2
|
|
and a.status = 5
|
|
and a.status = 5
|
|
|
|
+ and prd.status = 5
|
|
and (ppf.status is null or ppf.status = 1)
|
|
and (ppf.status is null or ppf.status = 1)
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
and (pmdrd.id is null or pmdrd.status = 1 or pmdrd.status = 2 or pmdrd.status = 3 or pmdrd.status = 4)
|
|
and (pmdrd.id is null or pmdrd.status = 1 or pmdrd.status = 2 or pmdrd.status = 3 or pmdrd.status = 4)
|
|
@@ -4729,7 +4731,7 @@
|
|
<where>
|
|
<where>
|
|
a.del_flag = 0
|
|
a.del_flag = 0
|
|
AND a.STATUS = 5
|
|
AND a.STATUS = 5
|
|
- AND prd.STATUS = 5
|
|
|
|
|
|
+ and (prd.status = 5 or prd.status = 7)
|
|
AND a.submit_money = 1
|
|
AND a.submit_money = 1
|
|
AND (pfp.STATUS IS NULL or (pfp.STATUS != 5 and pfp.STATUS != 7))
|
|
AND (pfp.STATUS IS NULL or (pfp.STATUS != 5 and pfp.STATUS != 7))
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
@@ -4753,7 +4755,7 @@
|
|
left join sys_office so on so.id = su.office_id
|
|
left join sys_office so on so.id = su.office_id
|
|
WHERE
|
|
WHERE
|
|
a.del_flag = 0 and a.status = 5
|
|
a.del_flag = 0 and a.status = 5
|
|
- AND ( prd.STATUS IS NULL OR prd.STATUS = '' OR prd.STATUS = '1' OR prd.STATUS = '3' OR prd.STATUS = '4' )
|
|
|
|
|
|
+ AND ( prd.STATUS IS NULL OR prd.STATUS = '' OR prd.STATUS = '1' OR prd.STATUS = '3' OR prd.STATUS = '4' OR prd.STATUS = '6' )
|
|
AND datediff( now(), prd.create_date )> 60
|
|
AND datediff( now(), prd.create_date )> 60
|
|
</select>
|
|
</select>
|
|
<select id="findProjectRegistrantResponsiblePersonList" resultType="com.jeeplus.modules.sys.entity.User">
|
|
<select id="findProjectRegistrantResponsiblePersonList" resultType="com.jeeplus.modules.sys.entity.User">
|
|
@@ -4782,15 +4784,6 @@ FROM
|
|
LEFT JOIN rural_project_records b ON a.id = b.project_master_id
|
|
LEFT JOIN rural_project_records b ON a.id = b.project_master_id
|
|
WHERE
|
|
WHERE
|
|
b.id = #{projectId}
|
|
b.id = #{projectId}
|
|
- UNION ALL
|
|
|
|
- SELECT
|
|
|
|
- a.id,
|
|
|
|
- a.NAME,
|
|
|
|
- a.photo
|
|
|
|
- FROM
|
|
|
|
- sys_user a
|
|
|
|
- WHERE
|
|
|
|
- a.id = '40453222a5d14dba8429ef8fdee68f0f'
|
|
|
|
) z
|
|
) z
|
|
GROUP BY
|
|
GROUP BY
|
|
z.id
|
|
z.id
|