luohairen
2024-11-22 10fe05319209797d23e360ec3fad9f30c5b96f58
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?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.ProjectPlanRecordMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectPlanRecordVO">
        <result column="project_info_id" property="projectInfoId" />
        <result column="plan_id" property="planId" />
        <result column="engineering_info_id" property="engineeringInfoId" />
        <result column="plan_time" property="planTime" />
        <result column="plan_time_flag" property="planTimeFlag" />
        <result column="create_time" property="createTime" />
        <result column="report_status" property="reportStatus" />
        <result column="actual_invest" property="actualInvest" />
    </resultMap>
 
 
 
 
 
 
 
    <select id="getById" resultMap="BaseResultMap">
        SELECT
            TPPR.project_info_id,
            TPPR.plan_id,
            TPPR.engineering_info_id,
            TPPR.plan_time,
            TPPR.plan_time_flag,
            TPPR.create_time,
            TPPR.report_status,
            TPPR.actual_invest,
            TPPR.id
        FROM
            t_project_plan_record TPPR
        WHERE
            TPPR.id = #{id} AND TPPR.deleted = 0
    </select>
 
 
    <select id="getPage" resultMap="BaseResultMap">
        SELECT
            TPPR.project_info_id,
            TPPR.plan_id,
            TPPR.engineering_info_id,
            TPPR.plan_time,
            TPPR.plan_time_flag,
            TPPR.create_time,
            TPPR.report_status,
            TPPR.actual_invest,
            TPPR.id
        FROM
            t_project_plan_record TPPR
        WHERE
            TPPR.deleted = 0
    </select>
 
</mapper>