中国算力平台算力登记系统2.0
yanzhaofeige
3 days ago 5cc82f45d73865489cc39e5ffbf521bf4279ec53
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.IdcUseInfrastructureMapper">
6     
7     <resultMap type="IdcUseInfrastructure" id="IdcUseInfrastructureResult">
8         <result property="id"    column="id"    />
9         <result property="baseId"    column="base_id"    />
10         <result property="dateNode"    column="date_node"    />
11         <result property="formName"    column="form_name"    />
12         <result property="formTel"    column="form_tel"    />
13         <result property="frameCompBase"    column="frame_comp_base"    />
14         <result property="frameCompEnd"    column="frame_comp_end"    />
15         <result property="frameElectricity"    column="frame_electricity"    />
16         <result property="percentageCloud"    column="percentage_cloud"    />
17         <result property="electricityPrice"    column="electricity_price"    />
18         <result property="annual"    column="annual"    />
19         <result property="cost"    column="cost"    />
20         <result property="bisPercentZhengwu"    column="bis_percent_zhengwu"    />
21         <result property="bisPercentQiye"    column="bis_percent_qiye"    />
22         <result property="bisPercentJinrong"    column="bis_percent_jinrong"    />
23         <result property="bisPercentInternetGongyouyun"    column="bis_percent_internet_gongyouyun"    />
24         <result property="bisPercentInternetWangzhan"    column="bis_percent_internet_wangzhan"    />
25         <result property="bisPercentInternetShiping"    column="bis_percent_internet_shiping"    />
26         <result property="bisPercentInternetAi"    column="bis_percent_internet_ai"    />
27         <result property="bisPercentInternetDianshang"    column="bis_percent_internet_dianshang"    />
28         <result property="bisPercentInternetYouxi"    column="bis_percent_internet_youxi"    />
29         <result property="bisPercentInternetZhifu"    column="bis_percent_internet_zhifu"    />
30         <result property="bisPercentInternetOther"    column="bis_percent_internet_other"    />
31         <result property="bisPercentOther"    column="bis_percent_other"    />
32         <result property="sumChanquan"    column="sum_chanquan"    />
33         <result property="itOperation"    column="it_operation"    />
34         <result property="sort"    column="sort_"    />
35         <result property="createTime"    column="create_time"    />
36         <result property="updateTime"    column="update_time"    />
37         <result property="createUser"    column="create_user"    />
38         <result property="updateUser"    column="update_user"    />
39         <result property="remark"    column="remark"    />
40     </resultMap>
41
42     <sql id="selectIdcUseInfrastructureVo">
43         select id, base_id, date_node, form_name, form_tel, frame_comp_base, frame_comp_end, frame_electricity, percentage_cloud, electricity_price, annual, cost, bis_percent_zhengwu, bis_percent_qiye, bis_percent_jinrong, bis_percent_internet_gongyouyun, bis_percent_internet_wangzhan, bis_percent_internet_shiping, bis_percent_internet_ai, bis_percent_internet_dianshang, bis_percent_internet_youxi, bis_percent_internet_zhifu, bis_percent_internet_other, bis_percent_other, sum_chanquan, it_operation, sort_, create_time, update_time, create_user, update_user, remark from idc_use_infrastructure
44     </sql>
45
46     <select id="selectIdcUseInfrastructureList" parameterType="IdcUseInfrastructure" resultMap="IdcUseInfrastructureResult">
47         <include refid="selectIdcUseInfrastructureVo"/>
48         <where>  
49             <if test="baseId != null "> and base_id = #{baseId}</if>
50             <if test="dateNode != null  and dateNode != ''"> and date_node = #{dateNode}</if>
51             <if test="formName != null  and formName != ''"> and form_name like concat('%', #{formName}, '%')</if>
52             <if test="formTel != null  and formTel != ''"> and form_tel = #{formTel}</if>
53             <if test="frameCompBase != null "> and frame_comp_base = #{frameCompBase}</if>
54             <if test="frameCompEnd != null "> and frame_comp_end = #{frameCompEnd}</if>
55             <if test="frameElectricity != null  and frameElectricity != ''"> and frame_electricity = #{frameElectricity}</if>
56             <if test="percentageCloud != null  and percentageCloud != ''"> and percentage_cloud = #{percentageCloud}</if>
57             <if test="electricityPrice != null "> and electricity_price = #{electricityPrice}</if>
58             <if test="annual != null  and annual != ''"> and annual = #{annual}</if>
59             <if test="cost != null  and cost != ''"> and cost = #{cost}</if>
60             <if test="bisPercentZhengwu != null  and bisPercentZhengwu != ''"> and bis_percent_zhengwu = #{bisPercentZhengwu}</if>
61             <if test="bisPercentQiye != null  and bisPercentQiye != ''"> and bis_percent_qiye = #{bisPercentQiye}</if>
62             <if test="bisPercentJinrong != null  and bisPercentJinrong != ''"> and bis_percent_jinrong = #{bisPercentJinrong}</if>
63             <if test="bisPercentInternetGongyouyun != null  and bisPercentInternetGongyouyun != ''"> and bis_percent_internet_gongyouyun = #{bisPercentInternetGongyouyun}</if>
64             <if test="bisPercentInternetWangzhan != null  and bisPercentInternetWangzhan != ''"> and bis_percent_internet_wangzhan = #{bisPercentInternetWangzhan}</if>
65             <if test="bisPercentInternetShiping != null  and bisPercentInternetShiping != ''"> and bis_percent_internet_shiping = #{bisPercentInternetShiping}</if>
66             <if test="bisPercentInternetAi != null  and bisPercentInternetAi != ''"> and bis_percent_internet_ai = #{bisPercentInternetAi}</if>
67             <if test="bisPercentInternetDianshang != null  and bisPercentInternetDianshang != ''"> and bis_percent_internet_dianshang = #{bisPercentInternetDianshang}</if>
68             <if test="bisPercentInternetYouxi != null  and bisPercentInternetYouxi != ''"> and bis_percent_internet_youxi = #{bisPercentInternetYouxi}</if>
69             <if test="bisPercentInternetZhifu != null  and bisPercentInternetZhifu != ''"> and bis_percent_internet_zhifu = #{bisPercentInternetZhifu}</if>
70             <if test="bisPercentInternetOther != null  and bisPercentInternetOther != ''"> and bis_percent_internet_other = #{bisPercentInternetOther}</if>
71             <if test="bisPercentOther != null  and bisPercentOther != ''"> and bis_percent_other = #{bisPercentOther}</if>
72             <if test="sumChanquan != null  and sumChanquan != ''"> and sum_chanquan = #{sumChanquan}</if>
73             <if test="itOperation != null  and itOperation != ''"> and it_operation = #{itOperation}</if>
74             <if test="sort != null "> and sort_ = #{sort}</if>
75             <if test="createUser != null "> and create_user = #{createUser}</if>
76             <if test="updateUser != null "> and update_user = #{updateUser}</if>
77         </where>
78     </select>
79     
80     <select id="selectIdcUseInfrastructureById" parameterType="Long" resultMap="IdcUseInfrastructureResult">
81         <include refid="selectIdcUseInfrastructureVo"/>
82         where id = #{id}
83     </select>
84
85     <insert id="insertIdcUseInfrastructure" parameterType="IdcUseInfrastructure" useGeneratedKeys="true" keyProperty="id">
86         insert into idc_use_infrastructure
87         <trim prefix="(" suffix=")" suffixOverrides=",">
88             <if test="baseId != null">base_id,</if>
89             <if test="dateNode != null">date_node,</if>
90             <if test="formName != null">form_name,</if>
91             <if test="formTel != null">form_tel,</if>
92             <if test="frameCompBase != null">frame_comp_base,</if>
93             <if test="frameCompEnd != null">frame_comp_end,</if>
94             <if test="frameElectricity != null">frame_electricity,</if>
95             <if test="percentageCloud != null">percentage_cloud,</if>
96             <if test="electricityPrice != null">electricity_price,</if>
97             <if test="annual != null">annual,</if>
98             <if test="cost != null">cost,</if>
99             <if test="bisPercentZhengwu != null">bis_percent_zhengwu,</if>
100             <if test="bisPercentQiye != null">bis_percent_qiye,</if>
101             <if test="bisPercentJinrong != null">bis_percent_jinrong,</if>
102             <if test="bisPercentInternetGongyouyun != null">bis_percent_internet_gongyouyun,</if>
103             <if test="bisPercentInternetWangzhan != null">bis_percent_internet_wangzhan,</if>
104             <if test="bisPercentInternetShiping != null">bis_percent_internet_shiping,</if>
105             <if test="bisPercentInternetAi != null">bis_percent_internet_ai,</if>
106             <if test="bisPercentInternetDianshang != null">bis_percent_internet_dianshang,</if>
107             <if test="bisPercentInternetYouxi != null">bis_percent_internet_youxi,</if>
108             <if test="bisPercentInternetZhifu != null">bis_percent_internet_zhifu,</if>
109             <if test="bisPercentInternetOther != null">bis_percent_internet_other,</if>
110             <if test="bisPercentOther != null">bis_percent_other,</if>
111             <if test="sumChanquan != null">sum_chanquan,</if>
112             <if test="itOperation != null">it_operation,</if>
113             <if test="sort != null">sort_,</if>
114             <if test="createTime != null">create_time,</if>
115             <if test="updateTime != null">update_time,</if>
116             <if test="createUser != null">create_user,</if>
117             <if test="updateUser != null">update_user,</if>
118             <if test="remark != null">remark,</if>
119          </trim>
120         <trim prefix="values (" suffix=")" suffixOverrides=",">
121             <if test="baseId != null">#{baseId},</if>
122             <if test="dateNode != null">#{dateNode},</if>
123             <if test="formName != null">#{formName},</if>
124             <if test="formTel != null">#{formTel},</if>
125             <if test="frameCompBase != null">#{frameCompBase},</if>
126             <if test="frameCompEnd != null">#{frameCompEnd},</if>
127             <if test="frameElectricity != null">#{frameElectricity},</if>
128             <if test="percentageCloud != null">#{percentageCloud},</if>
129             <if test="electricityPrice != null">#{electricityPrice},</if>
130             <if test="annual != null">#{annual},</if>
131             <if test="cost != null">#{cost},</if>
132             <if test="bisPercentZhengwu != null">#{bisPercentZhengwu},</if>
133             <if test="bisPercentQiye != null">#{bisPercentQiye},</if>
134             <if test="bisPercentJinrong != null">#{bisPercentJinrong},</if>
135             <if test="bisPercentInternetGongyouyun != null">#{bisPercentInternetGongyouyun},</if>
136             <if test="bisPercentInternetWangzhan != null">#{bisPercentInternetWangzhan},</if>
137             <if test="bisPercentInternetShiping != null">#{bisPercentInternetShiping},</if>
138             <if test="bisPercentInternetAi != null">#{bisPercentInternetAi},</if>
139             <if test="bisPercentInternetDianshang != null">#{bisPercentInternetDianshang},</if>
140             <if test="bisPercentInternetYouxi != null">#{bisPercentInternetYouxi},</if>
141             <if test="bisPercentInternetZhifu != null">#{bisPercentInternetZhifu},</if>
142             <if test="bisPercentInternetOther != null">#{bisPercentInternetOther},</if>
143             <if test="bisPercentOther != null">#{bisPercentOther},</if>
144             <if test="sumChanquan != null">#{sumChanquan},</if>
145             <if test="itOperation != null">#{itOperation},</if>
146             <if test="sort != null">#{sort},</if>
147             <if test="createTime != null">#{createTime},</if>
148             <if test="updateTime != null">#{updateTime},</if>
149             <if test="createUser != null">#{createUser},</if>
150             <if test="updateUser != null">#{updateUser},</if>
151             <if test="remark != null">#{remark},</if>
152          </trim>
153     </insert>
154
155     <update id="updateIdcUseInfrastructure" parameterType="IdcUseInfrastructure">
156         update idc_use_infrastructure
157         <trim prefix="SET" suffixOverrides=",">
158             <if test="baseId != null">base_id = #{baseId},</if>
159             <if test="dateNode != null">date_node = #{dateNode},</if>
160             <if test="formName != null">form_name = #{formName},</if>
161             <if test="formTel != null">form_tel = #{formTel},</if>
162             <if test="frameCompBase != null">frame_comp_base = #{frameCompBase},</if>
163             <if test="frameCompEnd != null">frame_comp_end = #{frameCompEnd},</if>
164             <if test="frameElectricity != null">frame_electricity = #{frameElectricity},</if>
165             <if test="percentageCloud != null">percentage_cloud = #{percentageCloud},</if>
166             <if test="electricityPrice != null">electricity_price = #{electricityPrice},</if>
167             <if test="annual != null">annual = #{annual},</if>
168             <if test="cost != null">cost = #{cost},</if>
169             <if test="bisPercentZhengwu != null">bis_percent_zhengwu = #{bisPercentZhengwu},</if>
170             <if test="bisPercentQiye != null">bis_percent_qiye = #{bisPercentQiye},</if>
171             <if test="bisPercentJinrong != null">bis_percent_jinrong = #{bisPercentJinrong},</if>
172             <if test="bisPercentInternetGongyouyun != null">bis_percent_internet_gongyouyun = #{bisPercentInternetGongyouyun},</if>
173             <if test="bisPercentInternetWangzhan != null">bis_percent_internet_wangzhan = #{bisPercentInternetWangzhan},</if>
174             <if test="bisPercentInternetShiping != null">bis_percent_internet_shiping = #{bisPercentInternetShiping},</if>
175             <if test="bisPercentInternetAi != null">bis_percent_internet_ai = #{bisPercentInternetAi},</if>
176             <if test="bisPercentInternetDianshang != null">bis_percent_internet_dianshang = #{bisPercentInternetDianshang},</if>
177             <if test="bisPercentInternetYouxi != null">bis_percent_internet_youxi = #{bisPercentInternetYouxi},</if>
178             <if test="bisPercentInternetZhifu != null">bis_percent_internet_zhifu = #{bisPercentInternetZhifu},</if>
179             <if test="bisPercentInternetOther != null">bis_percent_internet_other = #{bisPercentInternetOther},</if>
180             <if test="bisPercentOther != null">bis_percent_other = #{bisPercentOther},</if>
181             <if test="sumChanquan != null">sum_chanquan = #{sumChanquan},</if>
182             <if test="itOperation != null">it_operation = #{itOperation},</if>
183             <if test="sort != null">sort_ = #{sort},</if>
184             <if test="createTime != null">create_time = #{createTime},</if>
185             <if test="updateTime != null">update_time = #{updateTime},</if>
186             <if test="createUser != null">create_user = #{createUser},</if>
187             <if test="updateUser != null">update_user = #{updateUser},</if>
188             <if test="remark != null">remark = #{remark},</if>
189         </trim>
190         where id = #{id}
191     </update>
192
193     <delete id="deleteIdcUseInfrastructureById" parameterType="Long">
194         delete from idc_use_infrastructure where id = #{id}
195     </delete>
196
197     <delete id="deleteIdcUseInfrastructureByIds" parameterType="String">
198         delete from idc_use_infrastructure where id in 
199         <foreach item="id" collection="array" open="(" separator="," close=")">
200             #{id}
201         </foreach>
202     </delete>
203 </mapper>