|
@@ -146,6 +146,95 @@
|
|
ORDER BY a.update_date DESC
|
|
ORDER BY a.update_date DESC
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="findInfoList" resultType="com.jeeplus.test.program.configuration.projectList.domain.ProgramProjectListInfo">
|
|
|
|
+ SELECT
|
|
|
|
+ a.id,
|
|
|
|
+ b.name AS create_by,
|
|
|
|
+ a.create_date,
|
|
|
|
+ a.update_by,
|
|
|
|
+ a.update_date,
|
|
|
|
+ a.del_flag,
|
|
|
|
+ a.contract_id,
|
|
|
|
+ a.contract_name,
|
|
|
|
+ a.client,
|
|
|
|
+ a.client_name,
|
|
|
|
+ a.amount,
|
|
|
|
+ a.contract_type,
|
|
|
|
+ a.name,
|
|
|
|
+ a.no,
|
|
|
|
+ a.project_type,
|
|
|
|
+ a.approval_no,
|
|
|
|
+ a.company,
|
|
|
|
+ a.project_mould,
|
|
|
|
+ a.property_holder,
|
|
|
|
+ a.property_holder_name,
|
|
|
|
+ a.location,
|
|
|
|
+ a.is_first,
|
|
|
|
+ a.year_num,
|
|
|
|
+ a.check_year,
|
|
|
|
+ a.project_manager,
|
|
|
|
+ c.name AS project_manager_name,
|
|
|
|
+ a.report_type,
|
|
|
|
+ a.industry,
|
|
|
|
+ a.enterprise_type,
|
|
|
|
+ a.risk_level,
|
|
|
|
+ a.project_source,
|
|
|
|
+ a.estimate,
|
|
|
|
+ a.plan_end_time,
|
|
|
|
+ a.use_num,
|
|
|
|
+ a.appointment,
|
|
|
|
+ a.work_hours,
|
|
|
|
+ a.remarks,
|
|
|
|
+ a.assessment_enterprise,
|
|
|
|
+ a.assessment_enterprise_name,
|
|
|
|
+ a.link_num,
|
|
|
|
+ a.relationship,
|
|
|
|
+ a.assessment_way,
|
|
|
|
+ a.assessment_objective,
|
|
|
|
+ a.assessment_date,
|
|
|
|
+ a.num,
|
|
|
|
+ a.project_development,
|
|
|
|
+ a.delegate_project_type,
|
|
|
|
+ a.assessment_object,
|
|
|
|
+ a.work_begin_date,
|
|
|
|
+ a.work_end_date,
|
|
|
|
+ a.reporting_date,
|
|
|
|
+ a.is_have,
|
|
|
|
+ a.is_influence,
|
|
|
|
+ a.mode,
|
|
|
|
+ a.status,
|
|
|
|
+ a.proc_ins_id,
|
|
|
|
+ a.process_definition_id,
|
|
|
|
+ prn.report_no,
|
|
|
|
+ pa1.status as status1,
|
|
|
|
+ pa1.id as auditId1,
|
|
|
|
+ pa1.proc_ins_id as procInsId1,
|
|
|
|
+ pa2.status as status2,
|
|
|
|
+ pa2.id as auditId2,
|
|
|
|
+ pa2.proc_ins_id as procInsId2,
|
|
|
|
+ pa3.status as status3,
|
|
|
|
+ pa3.id as auditId3,
|
|
|
|
+ pa3.proc_ins_id as procInsId3,
|
|
|
|
+ pa.status as archive_status,
|
|
|
|
+ pa.id as archive_id,
|
|
|
|
+ pa.proc_ins_id as procInsIdArchive,
|
|
|
|
+ d.id AS issued_id,
|
|
|
|
+ d.proc_ins_id AS procInsId4,
|
|
|
|
+ d.status AS issued_status
|
|
|
|
+ FROM
|
|
|
|
+ program_project_list_info a
|
|
|
|
+ LEFT JOIN sys_user b ON a.create_by = b.id
|
|
|
|
+ LEFT JOIN sys_user c ON a.project_manager = c.id
|
|
|
|
+ LEFT JOIN program_report_no prn ON prn.program_id = a.id
|
|
|
|
+ LEFT JOIN program_audit pa1 ON pa1.program_id = a.id and pa1.audit_level = '1' and pa1.del_flag = '0'
|
|
|
|
+ LEFT JOIN program_audit pa2 ON pa2.program_id = a.id and pa2.audit_level = '2' and pa2.del_flag = '0'
|
|
|
|
+ LEFT JOIN program_audit pa3 ON pa3.program_id = a.id and pa3.audit_level = '3' and pa3.del_flag = '0'
|
|
|
|
+ LEFT JOIN program_archive pa ON pa.program_id = a.id and pa.del_flag = '0'
|
|
|
|
+ LEFT JOIN proofread_issued d ON a.id = d.project_id
|
|
|
|
+ ${ew.customSqlSegment}
|
|
|
|
+ ORDER BY a.update_date DESC
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="getById" resultType="com.jeeplus.test.program.configuration.projectList.domain.ProgramProjectListInfo">
|
|
<select id="getById" resultType="com.jeeplus.test.program.configuration.projectList.domain.ProgramProjectListInfo">
|
|
SELECT
|
|
SELECT
|
|
a.id,
|
|
a.id,
|
|
@@ -274,6 +363,12 @@
|
|
LEFT JOIN sys_user g ON b.signature_evaluator_first = g.id
|
|
LEFT JOIN sys_user g ON b.signature_evaluator_first = g.id
|
|
LEFT JOIN sys_user h ON b.signature_evaluator_second = h.id
|
|
LEFT JOIN sys_user h ON b.signature_evaluator_second = h.id
|
|
WHERE a.del_flag = 0
|
|
WHERE a.del_flag = 0
|
|
|
|
+ <if test="infoList != null">
|
|
|
|
+ AND a.id IN
|
|
|
|
+ <foreach collection="infoList" item="item" index="index" open="(" close=")" separator=",">
|
|
|
|
+ #{item.id}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
ORDER BY a.update_date DESC) AS tab
|
|
ORDER BY a.update_date DESC) AS tab
|
|
,(SELECT @i:=0) AS itable
|
|
,(SELECT @i:=0) AS itable
|
|
</select>
|
|
</select>
|