xiangpei
2025-06-05 7b1da9b7db15333148fbf12a6ac3f1122238b2ab
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?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.ProjectInvestmentInfoMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectInvestmentInfoVO">
        <result column="project_id" property="projectId" />
        <result column="be_cross_region" property="beCrossRegion" />
        <result column="construction_location" property="constructionLocation" />
        <result column="detailed_address" property="detailedAddress" />
        <result column="be_compensation_project" property="beCompensationProject" />
        <result column="compensation_reason" property="compensationReason" />
        <result column="planned_start_date" property="plannedStartDate" />
        <result column="expected_completion_date" property="expectedCompletionDate" />
        <result column="national_industry_classification" property="nationalIndustryClassification" />
        <result column="industry_classification" property="industryClassification" />
        <result column="project_nature" property="projectNature" />
        <result column="project_attribute" property="projectAttribute" />
        <result column="use_earth" property="useEarth" />
        <result column="content_scale" property="contentScale" />
        <result column="code" property="code" />
        <result column="gmt_create" property="gmtCreate" />
        <result column="create_by" property="createBy" />
        <result column="gmt_update" property="gmtUpdate" />
        <result column="update_by" property="updateBy" />
    </resultMap>
 
 
    <select id="getById" resultMap="BaseResultMap">
        SELECT
            TPII.project_id,
            TPII.be_cross_region,
            TPII.construction_location,
            TPII.detailed_address,
            TPII.be_compensation_project,
            TPII.compensation_reason,
            TPII.planned_start_date,
            TPII.expected_completion_date,
            TPII.national_industry_classification,
            TPII.industry_classification,
            TPII.project_nature,
            TPII.project_attribute,
            TPII.use_earth,
            TPII.content_scale,
            TPII.code,
            TPII.gmt_create,
            TPII.create_by,
            TPII.gmt_update,
            TPII.update_by,
            TPII.id
        FROM
            t_project_investment_info TPII
        WHERE
            TPII.id = #{id} AND TPII.deleted = 0
    </select>
 
 
    <select id="getPage" resultMap="BaseResultMap">
        SELECT
            TPII.project_id,
            TPII.be_cross_region,
            TPII.construction_location,
            TPII.detailed_address,
            TPII.be_compensation_project,
            TPII.compensation_reason,
            TPII.planned_start_date,
            TPII.expected_completion_date,
            TPII.national_industry_classification,
            TPII.industry_classification,
            TPII.project_nature,
            TPII.project_attribute,
            TPII.use_earth,
            TPII.content_scale,
            TPII.code,
            TPII.gmt_create,
            TPII.create_by,
            TPII.gmt_update,
            TPII.update_by,
            TPII.id
        FROM
            t_project_investment_info TPII
        WHERE
            TPII.deleted = 0
    </select>
 
</mapper>