|
@@ -1378,7 +1378,7 @@
|
|
|
left join sys_user su on su.id = w1.user_id
|
|
|
left join sys_office so on so.id = su.office_id
|
|
|
<where>
|
|
|
- and a.del_flag = 0 and project_type in (1,2) and prr.`status`=5
|
|
|
+ and a.del_flag = 0 and project_type in (1,2) and prd.`status`=5
|
|
|
and a.id not in (select project_id FROM project_flingbatch_relation r left join project_filingbatch f on f.filing_batch=r.filing_batch where f.filing_status in(2,3,5) )
|
|
|
and a.id not in (select project_id FROM project_flingbatch_relation where status in(2,3,5) )
|
|
|
<if test="projectName != null and projectName != ''">
|
|
@@ -1397,6 +1397,7 @@
|
|
|
,prr.process_instance_id as prrProcessInstanceId
|
|
|
,a.project_type as "projectType"
|
|
|
,prd.number as"projectReportNumber"
|
|
|
+ ,sur.name as "createBy.name"
|
|
|
FROM rural_project_records a
|
|
|
left join work_contract_info wci on a.contract_id = wci.id
|
|
|
left join project_report_data prd on prd.project_id = a.id
|
|
@@ -1406,13 +1407,14 @@
|
|
|
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_user sur on sur.id = a.create_by
|
|
|
left join sys_office so on so.id = su.office_id
|
|
|
<where>
|
|
|
<if test="projectName != null and projectName != ''">
|
|
|
AND a.project_name like concat(concat('%',#{projectName}),'%')
|
|
|
</if>
|
|
|
|
|
|
- and a.del_flag = 0 and a.project_type in (1,2) and prr.`status`=5
|
|
|
+ and a.del_flag = 0 and a.project_type in (1,2) and prd.`status`=5
|
|
|
/*不捞取已经发起审批并审批状态为2、3、5的项目信息*/
|
|
|
and a.id not in (select project_id FROM project_flingbatch_relation where status in(2,3,5) )
|
|
|
<if test="sqlMap.dsf !=null and sqlMap.dsf!=''">
|