| | |
| | | <result column="parent_id" property="parent" /> |
| | | <result column="project_owner_unit_name" property="projectOwnerUnitName" /> |
| | | <result column="competent_department_name" property="competentDepartmentName" /> |
| | | <result column="process_ins_id" property="processInsId" /> |
| | | <result column="process_def_id" property="processDefId" /> |
| | | </resultMap> |
| | | |
| | | <select id="getProjectEngineeringList" parameterType="string" resultMap="EngineeringMap"> |
| | |
| | | SELECT |
| | | TT.id, TT.project_info_id, TT.project_name, TT.project_type, TT.investment_amount, TT.status, TT.unit, TT.department, TT.parent_id, TT.year, TT.gmt_create, |
| | | (SELECT SD.dept_name FROM sys_dept SD WHERE SD.dept_id = TT.unit) AS project_owner_unit_name, |
| | | (SELECT SD.dept_name FROM sys_dept SD WHERE SD.dept_id = TT.department) AS competent_department_name |
| | | (SELECT SD.dept_name FROM sys_dept SD WHERE SD.dept_id = TT.department) AS competent_department_name, |
| | | TPP.process_ins_id, TPP.process_def_id |
| | | FROM |
| | | temp_table TT |
| | | LEFT JOIN t_project_process TPP ON TPP.project_id = TT.id AND TPP.deleted = 0 AND TPP.project_type = 'ENGINEERING' |
| | | ORDER BY |
| | | TT.gmt_create DESC |
| | | </select> |