| | |
| | | <result property="yearStatus" column="year_status" /> |
| | | <result property="projectStatus" column="project_status" /> |
| | | <result property="investType" column="invest_type" /> |
| | | <result property="exception" column="exception" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | p.month_status, |
| | | p.season_status, |
| | | p.year_status, |
| | | p.exception, |
| | | pi.project_status, |
| | | pi.invest_type |
| | | FROM t_project_info AS pi |
| | | LEFT JOIN t_plan AS p ON p.project_info_id = pi.id |
| | | LEFT JOIN sys_dept d ON d.dept_id = PI.project_owner_unit |
| | | <where> |
| | | pi.deleted = 0 |
| | | pi.deleted = 0 AND pi.used_status = 2 |
| | | <if test="query.projectName!= null and query.projectName!= ''"> |
| | | AND pi.project_name LIKE CONCAT('%', #{query.projectName}, '%') |
| | | </if> |
| | |
| | | <if test="query.yearStatus!= null"> |
| | | AND p.year_status = #{query.yearStatus} |
| | | </if> |
| | | ${query.params.dataScope} |
| | | </where> |
| | | </select> |
| | | |