Merge remote-tracking branch 'origin/master'
| | |
| | | /** 年份 */ |
| | | private String year; |
| | | |
| | | @TableField("build_content") |
| | | /** 建设内容 */ |
| | | private String buildContent; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty("父工程") |
| | | private String parent; |
| | | |
| | | @ApiModelProperty("建设内容") |
| | | private String buildContent; |
| | | |
| | | public static ProjectEngineering getEntityByForm(@NonNull ProjectEngineeringForm form, ProjectEngineering entity) { |
| | | if(entity == null) { |
| | | entity = new ProjectEngineering(); |
| | |
| | | @ApiModelProperty("业主单位名字") |
| | | private String unitName; |
| | | |
| | | /** 建设内容 */ |
| | | @ApiModelProperty("建设内容") |
| | | private String buildContent; |
| | | |
| | | /** 工程列表 */ |
| | | @ApiModelProperty("子工程列表") |
| | | private List<ProjectEngineeringVO> children = new ArrayList<ProjectEngineeringVO>(); |
| | |
| | | <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 |
| | |
| | | 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 |
| | |
| | | <result column="competent_department_name" property="competentDepartmentName" /> |
| | | <result column="process_ins_id" property="processInsId" /> |
| | | <result column="process_def_id" property="processDefId" /> |
| | | <result column="build_content" property="buildContent" /> |
| | | </resultMap> |
| | | |
| | | <select id="getProjectEngineeringList" parameterType="string" resultMap="EngineeringMap"> |
| | |
| | | <select id="getEngineeringList" parameterType="long" resultMap="EngineeringMap"> |
| | | WITH RECURSIVE temp_table AS ( |
| | | SELECT |
| | | id, project_info_id, project_name, project_type, investment_amount, status, unit, department, parent_id, year, gmt_create FROM t_project_engineering WHERE project_info_id = #{projectId} AND parent_id = '0' AND deleted = 0 |
| | | id, project_info_id, project_name, project_type, investment_amount, status, unit, department, parent_id, year, gmt_create, build_content FROM t_project_engineering WHERE project_info_id = #{projectId} AND parent_id = '0' AND deleted = 0 |
| | | UNION ALL |
| | | SELECT |
| | | TPE.id, TPE.project_info_id, TPE.project_name, TPE.project_type, TPE.investment_amount, TPE.status, TPE.unit, TPE.department, TPE.parent_id, TPE.year, TPE.gmt_create FROM t_project_engineering TPE INNER JOIN temp_table tb ON TPE.parent_id = tb.id AND TPE.deleted = 0 |
| | | TPE.id, TPE.project_info_id, TPE.project_name, TPE.project_type, TPE.investment_amount, TPE.status, TPE.unit, TPE.department, TPE.parent_id, TPE.year, TPE.gmt_create, TPE.build_content FROM t_project_engineering TPE INNER JOIN temp_table tb ON TPE.parent_id = tb.id AND TPE.deleted = 0 |
| | | ) |
| | | 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, |
| | | 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,TT.build_content, |
| | | (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, |
| | | TPP.process_ins_id, TPP.process_def_id |