|
@@ -74,6 +74,10 @@
|
|
cw_prs2.process_definition_id as process_definition_id2,
|
|
cw_prs2.process_definition_id as process_definition_id2,
|
|
cw_prs2.status as status2,
|
|
cw_prs2.status as status2,
|
|
cw_prs2.id as sid2,
|
|
cw_prs2.id as sid2,
|
|
|
|
+ cw_prs3.proc_ins_id as proc_ins_ids3,
|
|
|
|
+ cw_prs3.process_definition_id as process_definition_id3,
|
|
|
|
+ cw_prs3.status as status3,
|
|
|
|
+ cw_prs3.id as sid3,
|
|
cw_rev.review_status,
|
|
cw_rev.review_status,
|
|
cw_rev.proc_ins_id as procInsId3,
|
|
cw_rev.proc_ins_id as procInsId3,
|
|
new_line.report_no as reportNo
|
|
new_line.report_no as reportNo
|
|
@@ -84,6 +88,7 @@
|
|
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 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_new_line new_line on a.id = new_line.report_id and new_line.del_flag = '0'
|
|
left join cw_project_report_new_line new_line on a.id = new_line.report_id and new_line.del_flag = '0'
|
|
left join cw_project_report_review cw_rev on a.id = cw_rev.report_id and cw_rev.del_flag = '0'
|
|
left join cw_project_report_review cw_rev on a.id = cw_rev.report_id and cw_rev.del_flag = '0'
|
|
${ew.customSqlSegment}
|
|
${ew.customSqlSegment}
|
|
@@ -129,6 +134,10 @@
|
|
cw_prs2.process_definition_id as process_definition_id2,
|
|
cw_prs2.process_definition_id as process_definition_id2,
|
|
cw_prs2.status as status2,
|
|
cw_prs2.status as status2,
|
|
cw_prs2.id as sid2,
|
|
cw_prs2.id as sid2,
|
|
|
|
+ cw_prs3.proc_ins_id as proc_ins_ids3,
|
|
|
|
+ cw_prs3.process_definition_id as process_definition_id3,
|
|
|
|
+ cw_prs3.status as status3,
|
|
|
|
+ cw_prs3.id as sid3,
|
|
new_line.served_unit_id as servedUnitId,
|
|
new_line.served_unit_id as servedUnitId,
|
|
new_line.report_date as reportDate,
|
|
new_line.report_date as reportDate,
|
|
new_line.report_type as reportType,
|
|
new_line.report_type as reportType,
|
|
@@ -144,6 +153,7 @@
|
|
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 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_new_line new_line on a.id = new_line.report_id
|
|
left join cw_project_report_new_line new_line on a.id = new_line.report_id
|
|
left join cw_project_report_review cw_re on a.id = cw_re.report_id and cw_re.del_flag = '0'
|
|
left join cw_project_report_review cw_re on a.id = cw_re.report_id and cw_re.del_flag = '0'
|
|
where a.id = #{id}
|
|
where a.id = #{id}
|