| | |
| | | <result column="year" property="year" /> |
| | | <result column="unit_name" property="unitName" /> |
| | | <result column="department_name" property="departmentName" /> |
| | | <result column="build_content" property="buildContent"/> |
| | | <collection property="children" ofType="com.ycl.domain.vo.ProjectEngineeringVO" select="getProjectEngineering" column="id"></collection> |
| | | |
| | | </resultMap> |
| | |
| | | TPE.department, |
| | | TPE.parent_id, |
| | | TPE.year, |
| | | TPE.build_content, |
| | | (SELECT SD.dept_name FROM sys_dept SD WHERE SD.dept_id = TPE.unit) AS unit_name, |
| | | (SELECT SD.dept_name FROM sys_dept SD WHERE SD.dept_id = TPE.department) AS department_name |
| | | FROM t_project_engineering TPE |
| | |
| | | TPE.unit, |
| | | TPE.department, |
| | | TPE.parent_id, |
| | | TPE.year |
| | | TPE.year, |
| | | TPE.build_content |
| | | FROM |
| | | t_project_engineering TPE |
| | | WHERE |
| | |
| | | <select id="getPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TPE.project_info_id, |
| | | |
| | | TPE.project_type, |
| | | TPE.investment_amount, |
| | | TPE.status, |
| | |
| | | TPE.parent_id, |
| | | TPE.year, |
| | | TPI.project_name, |
| | | TPE.build_content, |
| | | (SELECT SD.dept_name FROM sys_dept SD WHERE SD.dept_id = TPE.unit) AS unit_name, |
| | | (SELECT SD.dept_name FROM sys_dept SD WHERE SD.dept_id = TPE.department) AS department_name |
| | | FROM |
| | |
| | | <if test="query.projectType != null and query.projectType != ''"> |
| | | AND TPE.project_type = #{query.projectType} |
| | | </if> |
| | | ORDER BY TPE.gmt_create DESC |
| | | |
| | | </select> |
| | | |
| | | </mapper> |