|
@@ -165,12 +165,14 @@
|
|
new_line.report_no as reportNo,
|
|
new_line.report_no as reportNo,
|
|
new_line.opinion_type as opinionType,
|
|
new_line.opinion_type as opinionType,
|
|
new_line.seal_type as sealType,
|
|
new_line.seal_type as sealType,
|
|
- cw_re.proc_ins_id as procInsId3
|
|
|
|
|
|
+ cw_re.proc_ins_id as procInsId3,
|
|
|
|
+ suser.name as real_header_name
|
|
FROM cw_project_report a
|
|
FROM cw_project_report a
|
|
left join cw_project_records b on a.project_id = b.id
|
|
left join cw_project_records b on a.project_id = b.id
|
|
LEFT JOIN sys_office c on a.office_id = c.id
|
|
LEFT JOIN sys_office c on a.office_id = c.id
|
|
LEFT JOIN sys_user d on a.create_by = d.id
|
|
LEFT JOIN sys_user d on a.create_by = d.id
|
|
LEFT JOIN sys_user e on b.project_master_id = e.id
|
|
LEFT JOIN sys_user e on b.project_master_id = e.id
|
|
|
|
+ LEFT JOIN sys_user suser on b.real_header = suser.id
|
|
LEFT JOIN cw_project_report_signature cw_prs1 on cw_prs1.report_id = a.id and cw_prs1.type = '1' and cw_prs1.del_flag = '0'
|
|
LEFT JOIN cw_project_report_signature cw_prs1 on cw_prs1.report_id = a.id and cw_prs1.type = '1' and cw_prs1.del_flag = '0'
|
|
LEFT JOIN cw_project_report_signature cw_prs2 on cw_prs2.report_id = a.id and cw_prs2.type = '2' and cw_prs2.del_flag = '0'
|
|
LEFT JOIN cw_project_report_signature cw_prs2 on cw_prs2.report_id = a.id and cw_prs2.type = '2' and cw_prs2.del_flag = '0'
|
|
LEFT JOIN cw_project_report_signature cw_prs3 on cw_prs3.report_id = a.id and cw_prs3.type = '3' and cw_prs3.del_flag = '0'
|
|
LEFT JOIN cw_project_report_signature cw_prs3 on cw_prs3.report_id = a.id and cw_prs3.type = '3' and cw_prs3.del_flag = '0'
|