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
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?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.ProjectUnitRegistrationInfoMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.ycl.domain.vo.ProjectUnitRegistrationInfoVO">
        <result column="project_id" property="projectId" />
        <result column="total_investment" property="totalInvestment" />
        <result column="project_unit" property="projectUnit" />
        <result column="project_unit_type" property="projectUnitType" />
        <result column="registration_type" property="registrationType" />
        <result column="holding_situation" property="holdingSituation" />
        <result column="certificate_type" property="certificateType" />
        <result column="certificate_number" property="certificateNumber" />
        <result column="registered_address" property="registeredAddress" />
        <result column="registered_capital" property="registeredCapital" />
        <result column="legal_representative" property="legalRepresentative" />
        <result column="fixed_phone" property="fixedPhone" />
        <result column="legal_person_idcard" property="legalPersonIdcard" />
        <result column="project_contact_person" property="projectContactPerson" />
        <result column="phone" property="phone" />
        <result column="contact_idcard" property="contactIdcard" />
        <result column="wechat" property="wechat" />
        <result column="contact_address" property="contactAddress" />
        <result column="post_code" property="postCode" />
        <result column="email" property="email" />
        <result column="create_by" property="createBy" />
        <result column="update_by" property="updateBy" />
        <result column="gmt_create" property="gmtCreateTime" />
        <result column="gmt_update" property="gmtUpdateTime" />
    </resultMap>
 
 
 
 
 
 
 
    <select id="getById" resultMap="BaseResultMap">
        SELECT
            TPURI.project_id,
            TPURI.total_investment,
            TPURI.project_unit,
            TPURI.project_unit_type,
            TPURI.registration_type,
            TPURI.holding_situation,
            TPURI.certificate_type,
            TPURI.certificate_number,
            TPURI.registered_address,
            TPURI.registered_capital,
            TPURI.legal_representative,
            TPURI.fixed_phone,
            TPURI.legal_person_idcard,
            TPURI.project_contact_person,
            TPURI.phone,
            TPURI.contact_idcard,
            TPURI.wechat,
            TPURI.contact_address,
            TPURI.post_code,
            TPURI.email,
            TPURI.create_by,
            TPURI.update_by,
            TPURI.gmt_create,
            TPURI.gmt_update,
            TPURI.id
        FROM
            t_project_unit_registration_info TPURI
        WHERE
            TPURI.id = #{id} AND TPURI.deleted = 0
    </select>
 
 
    <select id="getPage" resultMap="BaseResultMap">
        SELECT
            TPURI.project_id,
            TPURI.total_investment,
            TPURI.project_unit,
            TPURI.project_unit_type,
            TPURI.registration_type,
            TPURI.holding_situation,
            TPURI.certificate_type,
            TPURI.certificate_number,
            TPURI.registered_address,
            TPURI.registered_capital,
            TPURI.legal_representative,
            TPURI.fixed_phone,
            TPURI.legal_person_idcard,
            TPURI.project_contact_person,
            TPURI.phone,
            TPURI.contact_idcard,
            TPURI.wechat,
            TPURI.contact_address,
            TPURI.post_code,
            TPURI.email,
            TPURI.create_by,
            TPURI.update_by,
            TPURI.gmt_create,
            TPURI.gmt_update,
            TPURI.id
        FROM
            t_project_unit_registration_info TPURI
        WHERE
            TPURI.deleted = 0
    </select>
 
</mapper>