zxl
2025-04-02 01c29b4b6cfb1a3223cf9e322f33ead42093e77c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ycl.mapper.ProjectInfoYearPlanMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectInfoYearPlanVO">
        <result column="project_info_id" property="projectInfoId" />
        <result column="year" property="year" />
        <result column="year_total_money" property="yearTotalMoney" />
        <result column="project_image_progress" property="projectImageProgress" />
    </resultMap>
 
 
 
 
 
 
 
    <select id="getById" resultMap="BaseResultMap">
        SELECT
            TPIYP.project_info_id,
            TPIYP.year,
            TPIYP.year_total_money,
            TPIYP.project_image_progress,
            TPIYP.id
        FROM
            t_project_info_year_plan TPIYP
        WHERE
            TPIYP.id = #{id} AND TPIYP.deleted = 0
    </select>
 
 
</mapper>