| | |
| | | <result column="month_status" property="monthStatus" /> |
| | | <result column="season_status" property="seasonStatus" /> |
| | | <result column="year_status" property="yearStatus" /> |
| | | <result column="gmt_create_time" property="gmtCreateTime" /> |
| | | <result column="gmt_update_time" property="gmtUpdateTime" /> |
| | | <result column="gmt_create" property="gmtCreate" /> |
| | | <result column="gmt_update" property="gmtUpdate" /> |
| | | </resultMap> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 分页条件查询项目计划记录映射结果 --> |
| | | <resultMap id="PageResultMap" type="com.ycl.domain.vo.ProjectPlanResponseVO"> |
| | | <id property="id" column="id" /> |
| | | <result property="projectName" column="project_name" /> |
| | | <result property="reportStatus" column="report_status" /> |
| | | <result property="projectCode" column="project_code" /> |
| | | <result property="projectType" column="project_type" /> |
| | | <result property="projectPhase" column="project_phase" /> |
| | | <result property="monthStatus" column="month_status" /> |
| | | <result property="seasonStatus" column="season_status" /> |
| | | <result property="yearStatus" column="year_status" /> |
| | | <result property="projectStatus" column="project_status" /> |
| | | <result property="investType" column="invest_type" /> |
| | | <result property="exception" column="exception" /> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="getById" resultMap="BaseResultMap"> |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="getPage" resultMap="BaseResultMap"> |
| | | SELECT |
| | | TP.project_info_id, |
| | | TP.report_status, |
| | | TP.month_status, |
| | | TP.season_status, |
| | | TP.year_status, |
| | | TP.gmt_create_time, |
| | | TP.gmt_update_time, |
| | | TP.id |
| | | FROM |
| | | t_plan TP |
| | | WHERE |
| | | TP.deleted = 0 |
| | | <select id="getPage" resultMap="PageResultMap"> |
| | | SELECT DISTINCT |
| | | pi.id, |
| | | pi.project_name, |
| | | p.report_status, |
| | | pi.project_code, |
| | | pi.project_type, |
| | | pi.project_phase, |
| | | 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 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.projectCode!= null and query.projectCode!= ''"> |
| | | AND pi.project_code LIKE CONCAT('%', #{query.projectCode}, '%') |
| | | </if> |
| | | <if test="query.reportStatus!= null"> |
| | | AND p.report_status = #{query.reportStatus} |
| | | </if> |
| | | <if test="query.monthStatus!= null"> |
| | | AND p.month_status = #{query.monthStatus} |
| | | </if> |
| | | <if test="query.seasonStatus!= null"> |
| | | AND p.season_status = #{query.seasonStatus} |
| | | </if> |
| | | <if test="query.yearStatus!= null"> |
| | | AND p.year_status = #{query.yearStatus} |
| | | </if> |
| | | ${query.params.dataScope} |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |