中国算力平台算力登记系统2.0
yanzhaofeige
3 days ago 9a224d216652ef2d6ff2e0bd01fba69c86a3f277
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<?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.odcc.cpzidc.bis.mapper.IdcBuildBaseMapper">
    
    <resultMap type="IdcBuildBase" id="IdcBuildBaseResult">
        <result property="id"    column="id"    />
        <result property="type"    column="type"    />
        <result property="businessType"    column="business_type"    />
        <result property="frameNum"    column="frame_num"    />
        <result property="framePower"    column="frame_power"    />
        <result property="name"    column="name"    />
        <result property="province"    column="province"    />
        <result property="city"    column="city"    />
        <result property="area"    column="area"    />
        <result property="address"    column="address"    />
        <result property="addressExt"    column="address_ext"    />
        <result property="building"    column="building"    />
        <result property="creditCode"    column="credit_code"    />
        <result property="mainbody"    column="mainbody"    />
        <result property="mainbodyHeader"    column="mainbody_header"    />
        <result property="mainbodyType"    column="mainbody_type"    />
        <result property="investment"    column="investment"    />
        <result property="progress"    column="progress"    />
        <result property="productionTime"    column="production_time"    />
        <result property="dcBuildingLevel"    column="dc_building_level"    />
        <result property="dcAllArea"    column="dc_all_area"    />
        <result property="dcItArea"    column="dc_it_area"    />
        <result property="buildingType"    column="building_type"    />
        <result property="seismicLevel"    column="seismic_level"    />
        <result property="useType"    column="use_type"    />
        <result property="pueDesign"    column="pue_design"    />
        <result property="waterDesign"    column="water_design"    />
        <result property="netOperator"    column="net_operator"    />
        <result property="netOperatorOther"    column="net_operator_other"    />
        <result property="netLevel"    column="net_level"    />
        <result property="remark"    column="remark"    />
        <result property="sort"    column="sort_"    />
        <result property="message"    column="message"    />
        <result property="state"    column="state"    />
        <result property="isEnable"    column="is_enable"    />
        <result property="createTime"    column="create_time"    />
        <result property="updateTime"    column="update_time"    />
        <result property="createUser"    column="create_user"    />
    </resultMap>
 
    <sql id="selectIdcBuildBaseVo">
        select id, type, business_type, frame_num, frame_power, name, province, city, area, address, address_ext, building, credit_code, mainbody, mainbody_header, mainbody_type, investment, progress, production_time, dc_building_level, dc_all_area, dc_it_area, building_type, seismic_level, use_type, pue_design, water_design, net_operator, net_operator_other, net_level, remark, sort_, message, state, is_enable, create_time, update_time, create_user from idc_build_base
    </sql>
 
    <select id="selectIdcBuildBaseList" parameterType="IdcBuildBase" resultMap="IdcBuildBaseResult">
        <include refid="selectIdcBuildBaseVo"/>
        <where>  
            <if test="type != null "> and type = #{type}</if>
            <if test="businessType != null "> and business_type = #{businessType}</if>
            <if test="frameNum != null "> and frame_num = #{frameNum}</if>
            <if test="framePower != null "> and frame_power = #{framePower}</if>
            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
            <if test="province != null  and province != ''"> and province = #{province}</if>
            <if test="city != null  and city != ''"> and city = #{city}</if>
            <if test="area != null  and area != ''"> and area = #{area}</if>
            <if test="address != null  and address != ''"> and address = #{address}</if>
            <if test="addressExt != null  and addressExt != ''"> and address_ext = #{addressExt}</if>
            <if test="building != null  and building != ''"> and building = #{building}</if>
            <if test="creditCode != null  and creditCode != ''"> and credit_code = #{creditCode}</if>
            <if test="mainbody != null  and mainbody != ''"> and mainbody = #{mainbody}</if>
            <if test="mainbodyHeader != null  and mainbodyHeader != ''"> and mainbody_header = #{mainbodyHeader}</if>
            <if test="mainbodyType != null  and mainbodyType != ''"> and mainbody_type = #{mainbodyType}</if>
            <if test="investment != null  and investment != ''"> and investment = #{investment}</if>
            <if test="progress != null  and progress != ''"> and progress = #{progress}</if>
            <if test="productionTime != null  and productionTime != ''"> and production_time = #{productionTime}</if>
            <if test="dcBuildingLevel != null  and dcBuildingLevel != ''"> and dc_building_level = #{dcBuildingLevel}</if>
            <if test="dcAllArea != null "> and dc_all_area = #{dcAllArea}</if>
            <if test="dcItArea != null "> and dc_it_area = #{dcItArea}</if>
            <if test="buildingType != null  and buildingType != ''"> and building_type = #{buildingType}</if>
            <if test="seismicLevel != null  and seismicLevel != ''"> and seismic_level = #{seismicLevel}</if>
            <if test="useType != null  and useType != ''"> and use_type = #{useType}</if>
            <if test="pueDesign != null "> and pue_design = #{pueDesign}</if>
            <if test="waterDesign != null  and waterDesign != ''"> and water_design = #{waterDesign}</if>
            <if test="netOperator != null  and netOperator != ''"> and net_operator = #{netOperator}</if>
            <if test="netOperatorOther != null  and netOperatorOther != ''"> and net_operator_other = #{netOperatorOther}</if>
            <if test="netLevel != null  and netLevel != ''"> and net_level = #{netLevel}</if>
            <if test="sort != null "> and sort_ = #{sort}</if>
            <if test="message != null  and message != ''"> and message = #{message}</if>
            <if test="state != null "> and state = #{state}</if>
            <if test="isEnable != null "> and is_enable = #{isEnable}</if>
            <if test="createUser != null "> and create_user = #{createUser}</if>
        </where>
    </select>
    
    <select id="selectIdcBuildBaseById" parameterType="Long" resultMap="IdcBuildBaseResult">
        <include refid="selectIdcBuildBaseVo"/>
        where id = #{id}
    </select>
 
    <insert id="insertIdcBuildBase" parameterType="IdcBuildBase" useGeneratedKeys="true" keyProperty="id">
        insert into idc_build_base
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="type != null">type,</if>
            <if test="businessType != null">business_type,</if>
            <if test="frameNum != null">frame_num,</if>
            <if test="framePower != null">frame_power,</if>
            <if test="name != null and name != ''">name,</if>
            <if test="province != null and province != ''">province,</if>
            <if test="city != null and city != ''">city,</if>
            <if test="area != null and area != ''">area,</if>
            <if test="address != null and address != ''">address,</if>
            <if test="addressExt != null">address_ext,</if>
            <if test="building != null and building != ''">building,</if>
            <if test="creditCode != null and creditCode != ''">credit_code,</if>
            <if test="mainbody != null and mainbody != ''">mainbody,</if>
            <if test="mainbodyHeader != null and mainbodyHeader != ''">mainbody_header,</if>
            <if test="mainbodyType != null and mainbodyType != ''">mainbody_type,</if>
            <if test="investment != null">investment,</if>
            <if test="progress != null and progress != ''">progress,</if>
            <if test="productionTime != null and productionTime != ''">production_time,</if>
            <if test="dcBuildingLevel != null and dcBuildingLevel != ''">dc_building_level,</if>
            <if test="dcAllArea != null">dc_all_area,</if>
            <if test="dcItArea != null">dc_it_area,</if>
            <if test="buildingType != null and buildingType != ''">building_type,</if>
            <if test="seismicLevel != null and seismicLevel != ''">seismic_level,</if>
            <if test="useType != null and useType != ''">use_type,</if>
            <if test="pueDesign != null">pue_design,</if>
            <if test="waterDesign != null and waterDesign != ''">water_design,</if>
            <if test="netOperator != null and netOperator != ''">net_operator,</if>
            <if test="netOperatorOther != null">net_operator_other,</if>
            <if test="netLevel != null and netLevel != ''">net_level,</if>
            <if test="remark != null">remark,</if>
            <if test="sort != null">sort_,</if>
            <if test="message != null">message,</if>
            <if test="state != null">state,</if>
            <if test="isEnable != null">is_enable,</if>
            <if test="createTime != null">create_time,</if>
            <if test="updateTime != null">update_time,</if>
            <if test="createUser != null">create_user,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="type != null">#{type},</if>
            <if test="businessType != null">#{businessType},</if>
            <if test="frameNum != null">#{frameNum},</if>
            <if test="framePower != null">#{framePower},</if>
            <if test="name != null and name != ''">#{name},</if>
            <if test="province != null and province != ''">#{province},</if>
            <if test="city != null and city != ''">#{city},</if>
            <if test="area != null and area != ''">#{area},</if>
            <if test="address != null and address != ''">#{address},</if>
            <if test="addressExt != null">#{addressExt},</if>
            <if test="building != null and building != ''">#{building},</if>
            <if test="creditCode != null and creditCode != ''">#{creditCode},</if>
            <if test="mainbody != null and mainbody != ''">#{mainbody},</if>
            <if test="mainbodyHeader != null and mainbodyHeader != ''">#{mainbodyHeader},</if>
            <if test="mainbodyType != null and mainbodyType != ''">#{mainbodyType},</if>
            <if test="investment != null">#{investment},</if>
            <if test="progress != null and progress != ''">#{progress},</if>
            <if test="productionTime != null and productionTime != ''">#{productionTime},</if>
            <if test="dcBuildingLevel != null and dcBuildingLevel != ''">#{dcBuildingLevel},</if>
            <if test="dcAllArea != null">#{dcAllArea},</if>
            <if test="dcItArea != null">#{dcItArea},</if>
            <if test="buildingType != null and buildingType != ''">#{buildingType},</if>
            <if test="seismicLevel != null and seismicLevel != ''">#{seismicLevel},</if>
            <if test="useType != null and useType != ''">#{useType},</if>
            <if test="pueDesign != null">#{pueDesign},</if>
            <if test="waterDesign != null and waterDesign != ''">#{waterDesign},</if>
            <if test="netOperator != null and netOperator != ''">#{netOperator},</if>
            <if test="netOperatorOther != null">#{netOperatorOther},</if>
            <if test="netLevel != null and netLevel != ''">#{netLevel},</if>
            <if test="remark != null">#{remark},</if>
            <if test="sort != null">#{sort},</if>
            <if test="message != null">#{message},</if>
            <if test="state != null">#{state},</if>
            <if test="isEnable != null">#{isEnable},</if>
            <if test="createTime != null">#{createTime},</if>
            <if test="updateTime != null">#{updateTime},</if>
            <if test="createUser != null">#{createUser},</if>
         </trim>
    </insert>
 
    <update id="updateIdcBuildBase" parameterType="IdcBuildBase">
        update idc_build_base
        <trim prefix="SET" suffixOverrides=",">
            <if test="type != null">type = #{type},</if>
            <if test="businessType != null">business_type = #{businessType},</if>
            <if test="frameNum != null">frame_num = #{frameNum},</if>
            <if test="framePower != null">frame_power = #{framePower},</if>
            <if test="name != null and name != ''">name = #{name},</if>
            <if test="province != null and province != ''">province = #{province},</if>
            <if test="city != null and city != ''">city = #{city},</if>
            <if test="area != null and area != ''">area = #{area},</if>
            <if test="address != null and address != ''">address = #{address},</if>
            <if test="addressExt != null">address_ext = #{addressExt},</if>
            <if test="building != null and building != ''">building = #{building},</if>
            <if test="creditCode != null and creditCode != ''">credit_code = #{creditCode},</if>
            <if test="mainbody != null and mainbody != ''">mainbody = #{mainbody},</if>
            <if test="mainbodyHeader != null and mainbodyHeader != ''">mainbody_header = #{mainbodyHeader},</if>
            <if test="mainbodyType != null and mainbodyType != ''">mainbody_type = #{mainbodyType},</if>
            <if test="investment != null">investment = #{investment},</if>
            <if test="progress != null and progress != ''">progress = #{progress},</if>
            <if test="productionTime != null and productionTime != ''">production_time = #{productionTime},</if>
            <if test="dcBuildingLevel != null and dcBuildingLevel != ''">dc_building_level = #{dcBuildingLevel},</if>
            <if test="dcAllArea != null">dc_all_area = #{dcAllArea},</if>
            <if test="dcItArea != null">dc_it_area = #{dcItArea},</if>
            <if test="buildingType != null and buildingType != ''">building_type = #{buildingType},</if>
            <if test="seismicLevel != null and seismicLevel != ''">seismic_level = #{seismicLevel},</if>
            <if test="useType != null and useType != ''">use_type = #{useType},</if>
            <if test="pueDesign != null">pue_design = #{pueDesign},</if>
            <if test="waterDesign != null and waterDesign != ''">water_design = #{waterDesign},</if>
            <if test="netOperator != null and netOperator != ''">net_operator = #{netOperator},</if>
            <if test="netOperatorOther != null">net_operator_other = #{netOperatorOther},</if>
            <if test="netLevel != null and netLevel != ''">net_level = #{netLevel},</if>
            <if test="remark != null">remark = #{remark},</if>
            <if test="sort != null">sort_ = #{sort},</if>
            <if test="message != null">message = #{message},</if>
            <if test="state != null">state = #{state},</if>
            <if test="isEnable != null">is_enable = #{isEnable},</if>
            <if test="createTime != null">create_time = #{createTime},</if>
            <if test="updateTime != null">update_time = #{updateTime},</if>
            <if test="createUser != null">create_user = #{createUser},</if>
        </trim>
        where id = #{id}
    </update>
 
    <delete id="deleteIdcBuildBaseById" parameterType="Long">
        delete from idc_build_base where id = #{id}
    </delete>
 
    <delete id="deleteIdcBuildBaseByIds" parameterType="String">
        delete from idc_build_base where id in 
        <foreach item="id" collection="array" open="(" separator="," close=")">
            #{id}
        </foreach>
    </delete>
</mapper>