commit | author | age
|
5cc82f
|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
Y |
2 |
<!DOCTYPE mapper |
|
3 |
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
4 |
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
5 |
<mapper namespace="com.odcc.cpzidc.bis.mapper.IdcBuildBaseMapper"> |
|
6 |
|
|
7 |
<resultMap type="IdcBuildBase" id="IdcBuildBaseResult"> |
|
8 |
<result property="id" column="id" /> |
|
9 |
<result property="type" column="type" /> |
|
10 |
<result property="businessType" column="business_type" /> |
|
11 |
<result property="frameNum" column="frame_num" /> |
|
12 |
<result property="framePower" column="frame_power" /> |
|
13 |
<result property="name" column="name" /> |
|
14 |
<result property="province" column="province" /> |
|
15 |
<result property="city" column="city" /> |
|
16 |
<result property="area" column="area" /> |
|
17 |
<result property="address" column="address" /> |
|
18 |
<result property="addressExt" column="address_ext" /> |
|
19 |
<result property="building" column="building" /> |
|
20 |
<result property="creditCode" column="credit_code" /> |
|
21 |
<result property="mainbody" column="mainbody" /> |
|
22 |
<result property="mainbodyHeader" column="mainbody_header" /> |
|
23 |
<result property="mainbodyType" column="mainbody_type" /> |
|
24 |
<result property="investment" column="investment" /> |
|
25 |
<result property="progress" column="progress" /> |
|
26 |
<result property="productionTime" column="production_time" /> |
|
27 |
<result property="dcBuildingLevel" column="dc_building_level" /> |
|
28 |
<result property="dcAllArea" column="dc_all_area" /> |
|
29 |
<result property="dcItArea" column="dc_it_area" /> |
|
30 |
<result property="buildingType" column="building_type" /> |
|
31 |
<result property="seismicLevel" column="seismic_level" /> |
|
32 |
<result property="useType" column="use_type" /> |
|
33 |
<result property="pueDesign" column="pue_design" /> |
|
34 |
<result property="waterDesign" column="water_design" /> |
|
35 |
<result property="netOperator" column="net_operator" /> |
|
36 |
<result property="netOperatorOther" column="net_operator_other" /> |
|
37 |
<result property="netLevel" column="net_level" /> |
|
38 |
<result property="remark" column="remark" /> |
|
39 |
<result property="sort" column="sort_" /> |
|
40 |
<result property="message" column="message" /> |
|
41 |
<result property="state" column="state" /> |
|
42 |
<result property="isEnable" column="is_enable" /> |
|
43 |
<result property="createTime" column="create_time" /> |
|
44 |
<result property="updateTime" column="update_time" /> |
|
45 |
<result property="createUser" column="create_user" /> |
|
46 |
</resultMap> |
|
47 |
|
|
48 |
<sql id="selectIdcBuildBaseVo"> |
|
49 |
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 |
|
50 |
</sql> |
|
51 |
|
|
52 |
<select id="selectIdcBuildBaseList" parameterType="IdcBuildBase" resultMap="IdcBuildBaseResult"> |
|
53 |
<include refid="selectIdcBuildBaseVo"/> |
|
54 |
<where> |
|
55 |
<if test="type != null "> and type = #{type}</if> |
|
56 |
<if test="businessType != null "> and business_type = #{businessType}</if> |
|
57 |
<if test="frameNum != null "> and frame_num = #{frameNum}</if> |
|
58 |
<if test="framePower != null "> and frame_power = #{framePower}</if> |
|
59 |
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> |
|
60 |
<if test="province != null and province != ''"> and province = #{province}</if> |
|
61 |
<if test="city != null and city != ''"> and city = #{city}</if> |
|
62 |
<if test="area != null and area != ''"> and area = #{area}</if> |
|
63 |
<if test="address != null and address != ''"> and address = #{address}</if> |
|
64 |
<if test="addressExt != null and addressExt != ''"> and address_ext = #{addressExt}</if> |
|
65 |
<if test="building != null and building != ''"> and building = #{building}</if> |
|
66 |
<if test="creditCode != null and creditCode != ''"> and credit_code = #{creditCode}</if> |
|
67 |
<if test="mainbody != null and mainbody != ''"> and mainbody = #{mainbody}</if> |
|
68 |
<if test="mainbodyHeader != null and mainbodyHeader != ''"> and mainbody_header = #{mainbodyHeader}</if> |
|
69 |
<if test="mainbodyType != null and mainbodyType != ''"> and mainbody_type = #{mainbodyType}</if> |
|
70 |
<if test="investment != null and investment != ''"> and investment = #{investment}</if> |
|
71 |
<if test="progress != null and progress != ''"> and progress = #{progress}</if> |
|
72 |
<if test="productionTime != null and productionTime != ''"> and production_time = #{productionTime}</if> |
|
73 |
<if test="dcBuildingLevel != null and dcBuildingLevel != ''"> and dc_building_level = #{dcBuildingLevel}</if> |
|
74 |
<if test="dcAllArea != null "> and dc_all_area = #{dcAllArea}</if> |
|
75 |
<if test="dcItArea != null "> and dc_it_area = #{dcItArea}</if> |
|
76 |
<if test="buildingType != null and buildingType != ''"> and building_type = #{buildingType}</if> |
|
77 |
<if test="seismicLevel != null and seismicLevel != ''"> and seismic_level = #{seismicLevel}</if> |
|
78 |
<if test="useType != null and useType != ''"> and use_type = #{useType}</if> |
|
79 |
<if test="pueDesign != null "> and pue_design = #{pueDesign}</if> |
|
80 |
<if test="waterDesign != null and waterDesign != ''"> and water_design = #{waterDesign}</if> |
|
81 |
<if test="netOperator != null and netOperator != ''"> and net_operator = #{netOperator}</if> |
|
82 |
<if test="netOperatorOther != null and netOperatorOther != ''"> and net_operator_other = #{netOperatorOther}</if> |
|
83 |
<if test="netLevel != null and netLevel != ''"> and net_level = #{netLevel}</if> |
|
84 |
<if test="sort != null "> and sort_ = #{sort}</if> |
|
85 |
<if test="message != null and message != ''"> and message = #{message}</if> |
|
86 |
<if test="state != null "> and state = #{state}</if> |
|
87 |
<if test="isEnable != null "> and is_enable = #{isEnable}</if> |
|
88 |
<if test="createUser != null "> and create_user = #{createUser}</if> |
|
89 |
</where> |
|
90 |
</select> |
|
91 |
|
|
92 |
<select id="selectIdcBuildBaseById" parameterType="Long" resultMap="IdcBuildBaseResult"> |
|
93 |
<include refid="selectIdcBuildBaseVo"/> |
|
94 |
where id = #{id} |
|
95 |
</select> |
|
96 |
|
|
97 |
<insert id="insertIdcBuildBase" parameterType="IdcBuildBase" useGeneratedKeys="true" keyProperty="id"> |
|
98 |
insert into idc_build_base |
|
99 |
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
100 |
<if test="type != null">type,</if> |
|
101 |
<if test="businessType != null">business_type,</if> |
|
102 |
<if test="frameNum != null">frame_num,</if> |
|
103 |
<if test="framePower != null">frame_power,</if> |
|
104 |
<if test="name != null and name != ''">name,</if> |
|
105 |
<if test="province != null and province != ''">province,</if> |
|
106 |
<if test="city != null and city != ''">city,</if> |
|
107 |
<if test="area != null and area != ''">area,</if> |
|
108 |
<if test="address != null and address != ''">address,</if> |
|
109 |
<if test="addressExt != null">address_ext,</if> |
|
110 |
<if test="building != null and building != ''">building,</if> |
|
111 |
<if test="creditCode != null and creditCode != ''">credit_code,</if> |
|
112 |
<if test="mainbody != null and mainbody != ''">mainbody,</if> |
|
113 |
<if test="mainbodyHeader != null and mainbodyHeader != ''">mainbody_header,</if> |
|
114 |
<if test="mainbodyType != null and mainbodyType != ''">mainbody_type,</if> |
|
115 |
<if test="investment != null">investment,</if> |
|
116 |
<if test="progress != null and progress != ''">progress,</if> |
|
117 |
<if test="productionTime != null and productionTime != ''">production_time,</if> |
|
118 |
<if test="dcBuildingLevel != null and dcBuildingLevel != ''">dc_building_level,</if> |
|
119 |
<if test="dcAllArea != null">dc_all_area,</if> |
|
120 |
<if test="dcItArea != null">dc_it_area,</if> |
|
121 |
<if test="buildingType != null and buildingType != ''">building_type,</if> |
|
122 |
<if test="seismicLevel != null and seismicLevel != ''">seismic_level,</if> |
|
123 |
<if test="useType != null and useType != ''">use_type,</if> |
|
124 |
<if test="pueDesign != null">pue_design,</if> |
|
125 |
<if test="waterDesign != null and waterDesign != ''">water_design,</if> |
|
126 |
<if test="netOperator != null and netOperator != ''">net_operator,</if> |
|
127 |
<if test="netOperatorOther != null">net_operator_other,</if> |
|
128 |
<if test="netLevel != null and netLevel != ''">net_level,</if> |
|
129 |
<if test="remark != null">remark,</if> |
|
130 |
<if test="sort != null">sort_,</if> |
|
131 |
<if test="message != null">message,</if> |
|
132 |
<if test="state != null">state,</if> |
|
133 |
<if test="isEnable != null">is_enable,</if> |
|
134 |
<if test="createTime != null">create_time,</if> |
|
135 |
<if test="updateTime != null">update_time,</if> |
|
136 |
<if test="createUser != null">create_user,</if> |
|
137 |
</trim> |
|
138 |
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
139 |
<if test="type != null">#{type},</if> |
|
140 |
<if test="businessType != null">#{businessType},</if> |
|
141 |
<if test="frameNum != null">#{frameNum},</if> |
|
142 |
<if test="framePower != null">#{framePower},</if> |
|
143 |
<if test="name != null and name != ''">#{name},</if> |
|
144 |
<if test="province != null and province != ''">#{province},</if> |
|
145 |
<if test="city != null and city != ''">#{city},</if> |
|
146 |
<if test="area != null and area != ''">#{area},</if> |
|
147 |
<if test="address != null and address != ''">#{address},</if> |
|
148 |
<if test="addressExt != null">#{addressExt},</if> |
|
149 |
<if test="building != null and building != ''">#{building},</if> |
|
150 |
<if test="creditCode != null and creditCode != ''">#{creditCode},</if> |
|
151 |
<if test="mainbody != null and mainbody != ''">#{mainbody},</if> |
|
152 |
<if test="mainbodyHeader != null and mainbodyHeader != ''">#{mainbodyHeader},</if> |
|
153 |
<if test="mainbodyType != null and mainbodyType != ''">#{mainbodyType},</if> |
|
154 |
<if test="investment != null">#{investment},</if> |
|
155 |
<if test="progress != null and progress != ''">#{progress},</if> |
|
156 |
<if test="productionTime != null and productionTime != ''">#{productionTime},</if> |
|
157 |
<if test="dcBuildingLevel != null and dcBuildingLevel != ''">#{dcBuildingLevel},</if> |
|
158 |
<if test="dcAllArea != null">#{dcAllArea},</if> |
|
159 |
<if test="dcItArea != null">#{dcItArea},</if> |
|
160 |
<if test="buildingType != null and buildingType != ''">#{buildingType},</if> |
|
161 |
<if test="seismicLevel != null and seismicLevel != ''">#{seismicLevel},</if> |
|
162 |
<if test="useType != null and useType != ''">#{useType},</if> |
|
163 |
<if test="pueDesign != null">#{pueDesign},</if> |
|
164 |
<if test="waterDesign != null and waterDesign != ''">#{waterDesign},</if> |
|
165 |
<if test="netOperator != null and netOperator != ''">#{netOperator},</if> |
|
166 |
<if test="netOperatorOther != null">#{netOperatorOther},</if> |
|
167 |
<if test="netLevel != null and netLevel != ''">#{netLevel},</if> |
|
168 |
<if test="remark != null">#{remark},</if> |
|
169 |
<if test="sort != null">#{sort},</if> |
|
170 |
<if test="message != null">#{message},</if> |
|
171 |
<if test="state != null">#{state},</if> |
|
172 |
<if test="isEnable != null">#{isEnable},</if> |
|
173 |
<if test="createTime != null">#{createTime},</if> |
|
174 |
<if test="updateTime != null">#{updateTime},</if> |
|
175 |
<if test="createUser != null">#{createUser},</if> |
|
176 |
</trim> |
|
177 |
</insert> |
|
178 |
|
|
179 |
<update id="updateIdcBuildBase" parameterType="IdcBuildBase"> |
|
180 |
update idc_build_base |
|
181 |
<trim prefix="SET" suffixOverrides=","> |
|
182 |
<if test="type != null">type = #{type},</if> |
|
183 |
<if test="businessType != null">business_type = #{businessType},</if> |
|
184 |
<if test="frameNum != null">frame_num = #{frameNum},</if> |
|
185 |
<if test="framePower != null">frame_power = #{framePower},</if> |
|
186 |
<if test="name != null and name != ''">name = #{name},</if> |
|
187 |
<if test="province != null and province != ''">province = #{province},</if> |
|
188 |
<if test="city != null and city != ''">city = #{city},</if> |
|
189 |
<if test="area != null and area != ''">area = #{area},</if> |
|
190 |
<if test="address != null and address != ''">address = #{address},</if> |
|
191 |
<if test="addressExt != null">address_ext = #{addressExt},</if> |
|
192 |
<if test="building != null and building != ''">building = #{building},</if> |
|
193 |
<if test="creditCode != null and creditCode != ''">credit_code = #{creditCode},</if> |
|
194 |
<if test="mainbody != null and mainbody != ''">mainbody = #{mainbody},</if> |
|
195 |
<if test="mainbodyHeader != null and mainbodyHeader != ''">mainbody_header = #{mainbodyHeader},</if> |
|
196 |
<if test="mainbodyType != null and mainbodyType != ''">mainbody_type = #{mainbodyType},</if> |
|
197 |
<if test="investment != null">investment = #{investment},</if> |
|
198 |
<if test="progress != null and progress != ''">progress = #{progress},</if> |
|
199 |
<if test="productionTime != null and productionTime != ''">production_time = #{productionTime},</if> |
|
200 |
<if test="dcBuildingLevel != null and dcBuildingLevel != ''">dc_building_level = #{dcBuildingLevel},</if> |
|
201 |
<if test="dcAllArea != null">dc_all_area = #{dcAllArea},</if> |
|
202 |
<if test="dcItArea != null">dc_it_area = #{dcItArea},</if> |
|
203 |
<if test="buildingType != null and buildingType != ''">building_type = #{buildingType},</if> |
|
204 |
<if test="seismicLevel != null and seismicLevel != ''">seismic_level = #{seismicLevel},</if> |
|
205 |
<if test="useType != null and useType != ''">use_type = #{useType},</if> |
|
206 |
<if test="pueDesign != null">pue_design = #{pueDesign},</if> |
|
207 |
<if test="waterDesign != null and waterDesign != ''">water_design = #{waterDesign},</if> |
|
208 |
<if test="netOperator != null and netOperator != ''">net_operator = #{netOperator},</if> |
|
209 |
<if test="netOperatorOther != null">net_operator_other = #{netOperatorOther},</if> |
|
210 |
<if test="netLevel != null and netLevel != ''">net_level = #{netLevel},</if> |
|
211 |
<if test="remark != null">remark = #{remark},</if> |
|
212 |
<if test="sort != null">sort_ = #{sort},</if> |
|
213 |
<if test="message != null">message = #{message},</if> |
|
214 |
<if test="state != null">state = #{state},</if> |
|
215 |
<if test="isEnable != null">is_enable = #{isEnable},</if> |
|
216 |
<if test="createTime != null">create_time = #{createTime},</if> |
|
217 |
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
218 |
<if test="createUser != null">create_user = #{createUser},</if> |
|
219 |
</trim> |
|
220 |
where id = #{id} |
|
221 |
</update> |
|
222 |
|
|
223 |
<delete id="deleteIdcBuildBaseById" parameterType="Long"> |
|
224 |
delete from idc_build_base where id = #{id} |
|
225 |
</delete> |
|
226 |
|
|
227 |
<delete id="deleteIdcBuildBaseByIds" parameterType="String"> |
|
228 |
delete from idc_build_base where id in |
|
229 |
<foreach item="id" collection="array" open="(" separator="," close=")"> |
|
230 |
#{id} |
|
231 |
</foreach> |
|
232 |
</delete> |
|
233 |
</mapper> |