|
@@ -1279,6 +1279,32 @@
|
|
|
left join sys_office so on so.id = su.office_id
|
|
|
<where>
|
|
|
a.del_flag = 0
|
|
|
+ and a.emergency_project = 1
|
|
|
+ and (a.reported_state=6 or a.reported_state is null)
|
|
|
+ and prd.status = 5
|
|
|
+ and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getProjectReportedListByAdventNoUrgency" resultType="com.jeeplus.modules.ruralprojectrecords.entity.RuralProjectRecords" >
|
|
|
+ SELECT
|
|
|
+ <include refid="projectRecordsColumns"/>
|
|
|
+ ,date_add(date_format(prd.audit_pass_date, '%Y-%m-%d'),interval #{endingCount} day) as adventDate
|
|
|
+ ,date_add(date_format(prd.audit_pass_date, '%Y-%m-%d'),interval #{endingCount} day) as adventDateDate
|
|
|
+ ,a.project_type as "projectType"
|
|
|
+ FROM rural_project_records a
|
|
|
+ left join work_contract_info wci on a.contract_id = wci.id
|
|
|
+ left join project_report_data_two prd on prd.project_id = a.id
|
|
|
+ left join rural_project_report_record prr on prr.report_id = prd.id
|
|
|
+ left join sys_user u on u.id = a.create_by
|
|
|
+ left join sys_office o on o.id = a.office_id
|
|
|
+ LEFT JOIN sys_area area ON area.id = a.area_id
|
|
|
+ LEFT JOIN work_project_user w1 on a.id = w1.project_id
|
|
|
+ left join sys_user su on su.id = w1.user_id
|
|
|
+ left join sys_office so on so.id = su.office_id
|
|
|
+ <where>
|
|
|
+ a.del_flag = 0
|
|
|
+ and (a.emergency_project = 0 or a.emergency_project is null)
|
|
|
and (a.reported_state=6 or a.reported_state is null)
|
|
|
and prd.status = 5
|
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
@@ -1302,6 +1328,33 @@
|
|
|
left join sys_office so on so.id = su.office_id
|
|
|
<where>
|
|
|
a.del_flag = 0
|
|
|
+ and a.emergency_project = 1
|
|
|
+ and (a.reported_state!=5 or a.reported_state is null)
|
|
|
+ and prd.status = 5
|
|
|
+ and now() > date_add(prd.audit_pass_date,interval #{endingCount} day)
|
|
|
+ and prd.audit_pass_date is not null
|
|
|
+ and a.reported_state is null
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getProjectNotReportListNoUrgency" resultType="com.jeeplus.modules.ruralprojectrecords.entity.RuralProjectRecords" >
|
|
|
+ SELECT
|
|
|
+ <include refid="projectRecordsColumns"/>
|
|
|
+ ,date_add(date_format(prd.audit_pass_date, '%Y-%m-%d'),interval #{endingCount} day) as adventDate
|
|
|
+ ,a.project_type as "projectType"
|
|
|
+ FROM rural_project_records a
|
|
|
+ left join work_contract_info wci on a.contract_id = wci.id
|
|
|
+ left join project_report_data_two prd on prd.project_id = a.id
|
|
|
+ left join rural_project_report_record prr on prr.report_id = prd.id
|
|
|
+ left join sys_user u on u.id = a.create_by
|
|
|
+ left join sys_office o on o.id = a.office_id
|
|
|
+ LEFT JOIN sys_area area ON area.id = a.area_id
|
|
|
+ LEFT JOIN work_project_user w1 on a.id = w1.project_id
|
|
|
+ left join sys_user su on su.id = w1.user_id
|
|
|
+ left join sys_office so on so.id = su.office_id
|
|
|
+ <where>
|
|
|
+ a.del_flag = 0
|
|
|
+ and (a.emergency_project = 0 or a.emergency_project is null)
|
|
|
and (a.reported_state!=5 or a.reported_state is null)
|
|
|
and prd.status = 5
|
|
|
and now() > date_add(prd.audit_pass_date,interval #{endingCount} day)
|
|
@@ -1610,6 +1663,7 @@
|
|
|
left join sys_office so on so.id = su.office_id
|
|
|
<where>
|
|
|
a.del_flag = 0
|
|
|
+ and a.emergency_project = 1
|
|
|
and (a.record_state=6 or a.record_state is null)
|
|
|
and prd.status = 5
|
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
@@ -1633,6 +1687,7 @@
|
|
|
left join sys_office so on so.id = su.office_id
|
|
|
<where>
|
|
|
a.del_flag = 0
|
|
|
+ and (a.emergency_project = 0 or a.emergency_project is null)
|
|
|
and (a.record_state=6 or a.record_state is null)
|
|
|
and prd.status = 5
|
|
|
and now() > date_add(prd.audit_pass_date,interval #{startCount} day)
|
|
@@ -1656,6 +1711,7 @@
|
|
|
left join sys_office so on so.id = su.office_id
|
|
|
<where>
|
|
|
a.del_flag = 0
|
|
|
+ and a.emergency_project = 1
|
|
|
and (a.record_state!=5 or a.record_state is null)
|
|
|
and prd.status = 5
|
|
|
and now() > date_add(prd.audit_pass_date,interval #{endingCount} day)
|
|
@@ -1682,6 +1738,7 @@
|
|
|
left join sys_office so on so.id = su.office_id
|
|
|
<where>
|
|
|
a.del_flag = 0
|
|
|
+ and (a.emergency_project = 0 or a.emergency_project is null)
|
|
|
and (a.record_state!=5 or a.record_state is null)
|
|
|
and prd.status = 5
|
|
|
and now() > date_add(prd.audit_pass_date,interval #{endingCount} day)
|