DevelopmentPlanMapper.xml
39.3 KB
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
<?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.chinagas.modules.insight.mapper.DevelopmentPlanMapper">
<resultMap type="com.chinagas.modules.insight.domian.DevelopmentPlan" id="DevelopmentPlanResult">
<result property="id" column="id" />
<result property="reportNo" column="report_no" />
<result property="fiscalYear" column="fiscal_year" />
<result property="contractGoal" column="contract_goal" />
<result property="newUserGoal" column="new_user_goal" />
<result property="oldUserGoal" column="old_user_goal" />
<result property="townsUserGoal" column="towns_user_goal" />
<result property="commerceGoal" column="commerce_goal" />
<result property="industryGoal" column="industry_goal" />
<result property="installUserGoal" column="install_user_goal" />
<result property="salesNumberGoal" column="sales_number_goal" />
<result property="developmentIdea" column="development_idea" />
<result property="resourceAllocation" column="resource_allocation" />
<result property="sysCtime" column="sys_ctime" />
<result property="sysUtime" column="sys_utime" />
<result property="createBy" column="create_by" />
<result property="updateBy" column="update_by" />
<result property="deleteFlag" column="delete_flag" />
<result property="newNetProfit" column="new_net_profit" />
<result property="newInstallNew" column="new_install_new" />
<result property="newInstallOld" column="new_install_old" />
<result property="newInstallVillageNew" column="new_install_village_new" />
<result property="newInstallVillageOld" column="new_install_village_old" />
<result property="newInstallGasCoal" column="new_install_gas_coal" />
<result property="newInstallIndustry" column="new_install_Industry" />
<result property="newInstallCommerce" column="new_install_commerce" />
<result property="newInstallSmallEnterprise" column="new_install_small_enterprise" />
<result property="newInstallTotal" column="new_install_total" />
<result property="newRefundPrevious" column="new_refund_previous" />
<result property="newRefundPreviousNew" column="new_refund_previous_new" />
<result property="newRefundPreviousOld" column="new_refund_previous_old" />
<result property="newRefundPreviousVillage" column="new_refund_previous_village" />
<result property="newRefundPreviousGov" column="new_refund_previous_gov" />
<result property="newRefundPreviousCost" column="new_refund_previous_cost" />
<result property="newRefundPreviousArrearage" column="new_refund_previous_arrearage" />
<result property="newRefundThisInstallArrearage" column="new_refund_this_install_arrearage" />
<result property="newRefundThisNew" column="new_refund_this_new" />
<result property="newRefundThisOld" column="new_refund_this_old" />
<result property="newRefundThisVillage" column="new_refund_this_village" />
<result property="newRefundThisGov" column="new_refund_this_gov" />
<result property="newRefundThisIndustry" column="new_refund_this_Industry" />
<result property="newRefundThisGasArrearage" column="new_refund_this_gas_arrearage" />
<result property="newSell" column="new_sell" />
<result property="newSellResident" column="new_sell_resident" />
<result property="newSellHeating" column="new_sell_heating" />
<result property="newSellIndustry" column="new_sell_Industry" />
<result property="newSellCommerce" column="new_sell_commerce" />
<result property="newSellCng" column="new_sell_CNG" />
<result property="newSellLng" column="new_sell_LNG" />
<result property="newSellStation" column="new_sell_station" />
<result property="newSellWholesale" column="new_sell_wholesale" />
<result property="newSellTrade" column="new_sell_trade" />
<result property="newSellConduit" column="new_sell_conduit" />
<result property="newSellLngTrade" column="new_sell_LNG_trade" />
<result property="newBalanceSell" column="new_balance_sell" />
<result property="newBalanceResident" column="new_balance_resident" />
<result property="newBalanceNoResident" column="new_balance_no_resident" />
<result property="newBalanceWholesale" column="new_balance_wholesale" />
<result property="newProfitInstall" column="new_profit_install" />
<result property="newProfitInstallResident" column="new_profit_install_resident" />
<result property="newProfitInstallCommerce" column="new_profit_install_commerce" />
<result property="newProfitSell" column="new_profit_sell" />
<result property="newProfitSellResident" column="new_profit_sell_resident" />
<result property="newProfitSellCommerce" column="new_profit_sell_commerce" />
<result property="newProfitSellCar" column="new_profit_sell_car" />
<result property="newProfitSellTrade" column="new_profit_sell_trade" />
<result property="newProfitOther" column="new_profit_other" />
<result property="newProfitNew" column="new_profit_new" />
<result property="newProfitTotal" column="new_profit_total" />
<result property="newProfitTotalCost" column="new_profit_total_cost" />
<result property="newNetProfitTotal" column="new_net_profit_total" />
</resultMap>
<sql id="selectDevelopmentPlanVo">
select id, report_no, fiscal_year, contract_goal, new_user_goal, old_user_goal, towns_user_goal, commerce_goal,
industry_goal, install_user_goal, sales_number_goal, development_idea, resource_allocation, sys_ctime, sys_utime,
create_by, update_by, delete_flag, new_net_profit, new_install_new, new_install_old, new_install_village_new,
new_install_village_old, new_install_gas_coal, new_install_Industry, new_install_commerce, new_install_small_enterprise,
new_install_total, new_refund_previous, new_refund_previous_new, new_refund_previous_old, new_refund_previous_village,
new_refund_previous_gov, new_refund_previous_cost, new_refund_previous_arrearage, new_refund_this_install_arrearage,
new_refund_this_new, new_refund_this_old, new_refund_this_village, new_refund_this_gov, new_refund_this_Industry,
new_refund_this_gas_arrearage, new_sell, new_sell_resident, new_sell_heating, new_sell_Industry, new_sell_commerce,
new_sell_CNG, new_sell_LNG, new_sell_station, new_sell_wholesale, new_sell_trade, new_sell_conduit,
new_sell_LNG_trade, new_balance_sell, new_balance_resident, new_balance_no_resident, new_balance_wholesale,
new_profit_install, new_profit_install_resident, new_profit_install_commerce, new_profit_sell, new_profit_sell_resident,
new_profit_sell_commerce, new_profit_sell_car, new_profit_sell_trade, new_profit_other, new_profit_new,
new_profit_total, new_profit_total_cost, new_net_profit_total from development_plan
</sql>
<select id="selectDevelopmentPlanList" parameterType="com.chinagas.modules.insight.domian.DevelopmentPlan" resultMap="DevelopmentPlanResult">
<include refid="selectDevelopmentPlanVo"/>
<where>
<if test="reportNo != null and reportNo != ''"> and report_no = #{reportNo}</if>
<if test="fiscalYear != null "> and fiscal_year = #{fiscalYear}</if>
<if test="contractGoal != null and contractGoal != ''"> and contract_goal = #{contractGoal}</if>
<if test="newUserGoal != null and newUserGoal != ''"> and new_user_goal = #{newUserGoal}</if>
<if test="oldUserGoal != null and oldUserGoal != ''"> and old_user_goal = #{oldUserGoal}</if>
<if test="townsUserGoal != null and townsUserGoal != ''"> and towns_user_goal = #{townsUserGoal}</if>
<if test="commerceGoal != null and commerceGoal != ''"> and commerce_goal = #{commerceGoal}</if>
<if test="industryGoal != null and industryGoal != ''"> and industry_goal = #{industryGoal}</if>
<if test="installUserGoal != null and installUserGoal != ''"> and install_user_goal = #{installUserGoal}</if>
<if test="salesNumberGoal != null and salesNumberGoal != ''"> and sales_number_goal = #{salesNumberGoal}</if>
<if test="developmentIdea != null and developmentIdea != ''"> and development_idea = #{developmentIdea}</if>
<if test="resourceAllocation != null and resourceAllocation != ''"> and resource_allocation = #{resourceAllocation}</if>
<if test="sysCtime != null "> and sys_ctime = #{sysCtime}</if>
<if test="sysUtime != null "> and sys_utime = #{sysUtime}</if>
<if test="newNetProfit != null and newNetProfit != ''"> and new_net_profit = #{newNetProfit}</if>
<if test="newInstallNew != null and newInstallNew != ''"> and new_install_new = #{newInstallNew}</if>
<if test="newInstallOld != null and newInstallOld != ''"> and new_install_old = #{newInstallOld}</if>
<if test="newInstallVillageNew != null and newInstallVillageNew != ''"> and new_install_village_new = #{newInstallVillageNew}</if>
<if test="newInstallVillageOld != null and newInstallVillageOld != ''"> and new_install_village_old = #{newInstallVillageOld}</if>
<if test="newInstallGasCoal != null and newInstallGasCoal != ''"> and new_install_gas_coal = #{newInstallGasCoal}</if>
<if test="newInstallIndustry != null and newInstallIndustry != ''"> and new_install_Industry = #{newInstallIndustry}</if>
<if test="newInstallCommerce != null and newInstallCommerce != ''"> and new_install_commerce = #{newInstallCommerce}</if>
<if test="newInstallSmallEnterprise != null and newInstallSmallEnterprise != ''"> and new_install_small_enterprise = #{newInstallSmallEnterprise}</if>
<if test="newInstallTotal != null and newInstallTotal != ''"> and new_install_total = #{newInstallTotal}</if>
<if test="newRefundPrevious != null and newRefundPrevious != ''"> and new_refund_previous = #{newRefundPrevious}</if>
<if test="newRefundPreviousNew != null and newRefundPreviousNew != ''"> and new_refund_previous_new = #{newRefundPreviousNew}</if>
<if test="newRefundPreviousOld != null and newRefundPreviousOld != ''"> and new_refund_previous_old = #{newRefundPreviousOld}</if>
<if test="newRefundPreviousVillage != null and newRefundPreviousVillage != ''"> and new_refund_previous_village = #{newRefundPreviousVillage}</if>
<if test="newRefundPreviousGov != null and newRefundPreviousGov != ''"> and new_refund_previous_gov = #{newRefundPreviousGov}</if>
<if test="newRefundPreviousCost != null and newRefundPreviousCost != ''"> and new_refund_previous_cost = #{newRefundPreviousCost}</if>
<if test="newRefundPreviousArrearage != null and newRefundPreviousArrearage != ''"> and new_refund_previous_arrearage = #{newRefundPreviousArrearage}</if>
<if test="newRefundThisInstallArrearage != null and newRefundThisInstallArrearage != ''"> and new_refund_this_install_arrearage = #{newRefundThisInstallArrearage}</if>
<if test="newRefundThisNew != null and newRefundThisNew != ''"> and new_refund_this_new = #{newRefundThisNew}</if>
<if test="newRefundThisOld != null and newRefundThisOld != ''"> and new_refund_this_old = #{newRefundThisOld}</if>
<if test="newRefundThisVillage != null and newRefundThisVillage != ''"> and new_refund_this_village = #{newRefundThisVillage}</if>
<if test="newRefundThisGov != null and newRefundThisGov != ''"> and new_refund_this_gov = #{newRefundThisGov}</if>
<if test="newRefundThisIndustry != null and newRefundThisIndustry != ''"> and new_refund_this_Industry = #{newRefundThisIndustry}</if>
<if test="newRefundThisGasArrearage != null and newRefundThisGasArrearage != ''"> and new_refund_this_gas_arrearage = #{newRefundThisGasArrearage}</if>
<if test="newSell != null and newSell != ''"> and new_sell = #{newSell}</if>
<if test="newSellResident != null and newSellResident != ''"> and new_sell_resident = #{newSellResident}</if>
<if test="newSellHeating != null and newSellHeating != ''"> and new_sell_heating = #{newSellHeating}</if>
<if test="newSellIndustry != null and newSellIndustry != ''"> and new_sell_Industry = #{newSellIndustry}</if>
<if test="newSellCommerce != null and newSellCommerce != ''"> and new_sell_commerce = #{newSellCommerce}</if>
<if test="newSellCng != null and newSellCng != ''"> and new_sell_CNG = #{newSellCng}</if>
<if test="newSellLng != null and newSellLng != ''"> and new_sell_LNG = #{newSellLng}</if>
<if test="newSellStation != null and newSellStation != ''"> and new_sell_station = #{newSellStation}</if>
<if test="newSellWholesale != null and newSellWholesale != ''"> and new_sell_wholesale = #{newSellWholesale}</if>
<if test="newSellTrade != null and newSellTrade != ''"> and new_sell_trade = #{newSellTrade}</if>
<if test="newSellConduit != null and newSellConduit != ''"> and new_sell_conduit = #{newSellConduit}</if>
<if test="newSellLngTrade != null and newSellLngTrade != ''"> and new_sell_LNG_trade = #{newSellLngTrade}</if>
<if test="newBalanceSell != null and newBalanceSell != ''"> and new_balance_sell = #{newBalanceSell}</if>
<if test="newBalanceResident != null and newBalanceResident != ''"> and new_balance_resident = #{newBalanceResident}</if>
<if test="newBalanceNoResident != null and newBalanceNoResident != ''"> and new_balance_no_resident = #{newBalanceNoResident}</if>
<if test="newBalanceWholesale != null and newBalanceWholesale != ''"> and new_balance_wholesale = #{newBalanceWholesale}</if>
<if test="newProfitInstall != null and newProfitInstall != ''"> and new_profit_install = #{newProfitInstall}</if>
<if test="newProfitInstallResident != null and newProfitInstallResident != ''"> and new_profit_install_resident = #{newProfitInstallResident}</if>
<if test="newProfitInstallCommerce != null and newProfitInstallCommerce != ''"> and new_profit_install_commerce = #{newProfitInstallCommerce}</if>
<if test="newProfitSell != null and newProfitSell != ''"> and new_profit_sell = #{newProfitSell}</if>
<if test="newProfitSellResident != null and newProfitSellResident != ''"> and new_profit_sell_resident = #{newProfitSellResident}</if>
<if test="newProfitSellCommerce != null and newProfitSellCommerce != ''"> and new_profit_sell_commerce = #{newProfitSellCommerce}</if>
<if test="newProfitSellCar != null and newProfitSellCar != ''"> and new_profit_sell_car = #{newProfitSellCar}</if>
<if test="newProfitSellTrade != null and newProfitSellTrade != ''"> and new_profit_sell_trade = #{newProfitSellTrade}</if>
<if test="newProfitOther != null and newProfitOther != ''"> and new_profit_other = #{newProfitOther}</if>
<if test="newProfitNew != null and newProfitNew != ''"> and new_profit_new = #{newProfitNew}</if>
<if test="newProfitTotal != null and newProfitTotal != ''"> and new_profit_total = #{newProfitTotal}</if>
<if test="newProfitTotalCost != null and newProfitTotalCost != ''"> and new_profit_total_cost = #{newProfitTotalCost}</if>
<if test="newNetProfitTotal != null and newNetProfitTotal != ''"> and new_net_profit_total = #{newNetProfitTotal}</if>
and delete_flag = 0
</where>
</select>
<select id="selectDevelopmentPlanById" resultMap="DevelopmentPlanResult">
<include refid="selectDevelopmentPlanVo"/>
where report_no = #{reportNo}
</select>
<insert id="insertDevelopmentPlan" parameterType="com.chinagas.modules.insight.domian.DevelopmentPlan">
insert into development_plan
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="reportNo != null and reportNo != ''">report_no,</if>
<if test="fiscalYear != null">fiscal_year,</if>
<if test="contractGoal != null and contractGoal != ''">contract_goal,</if>
<if test="newUserGoal != null and newUserGoal != ''">new_user_goal,</if>
<if test="oldUserGoal != null and oldUserGoal != ''">old_user_goal,</if>
<if test="townsUserGoal != null and townsUserGoal != ''">towns_user_goal,</if>
<if test="commerceGoal != null and commerceGoal != ''">commerce_goal,</if>
<if test="industryGoal != null and industryGoal != ''">industry_goal,</if>
<if test="installUserGoal != null and installUserGoal != ''">install_user_goal,</if>
<if test="salesNumberGoal != null and salesNumberGoal != ''">sales_number_goal,</if>
<if test="developmentIdea != null and developmentIdea != ''">development_idea,</if>
<if test="resourceAllocation != null and resourceAllocation != ''">resource_allocation,</if>
<if test="sysCtime != null">sys_ctime,</if>
<if test="sysUtime != null">sys_utime,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="deleteFlag != null">delete_flag,</if>
<if test="newNetProfit != null and newNetProfit != ''">new_net_profit,</if>
<if test="newInstallNew != null and newInstallNew != ''">new_install_new,</if>
<if test="newInstallOld != null and newInstallOld != ''">new_install_old,</if>
<if test="newInstallVillageNew != null and newInstallVillageNew != ''">new_install_village_new,</if>
<if test="newInstallVillageOld != null and newInstallVillageOld != ''">new_install_village_old,</if>
<if test="newInstallGasCoal != null and newInstallGasCoal != ''">new_install_gas_coal,</if>
<if test="newInstallIndustry != null and newInstallIndustry != ''">new_install_Industry,</if>
<if test="newInstallCommerce != null and newInstallCommerce != ''">new_install_commerce,</if>
<if test="newInstallSmallEnterprise != null and newInstallSmallEnterprise != ''">new_install_small_enterprise,</if>
<if test="newInstallTotal != null and newInstallTotal != ''">new_install_total,</if>
<if test="newRefundPrevious != null and newRefundPrevious != ''">new_refund_previous,</if>
<if test="newRefundPreviousNew != null and newRefundPreviousNew != ''">new_refund_previous_new,</if>
<if test="newRefundPreviousOld != null and newRefundPreviousOld != ''">new_refund_previous_old,</if>
<if test="newRefundPreviousVillage != null and newRefundPreviousVillage != ''">new_refund_previous_village,</if>
<if test="newRefundPreviousGov != null and newRefundPreviousGov != ''">new_refund_previous_gov,</if>
<if test="newRefundPreviousCost != null and newRefundPreviousCost != ''">new_refund_previous_cost,</if>
<if test="newRefundPreviousArrearage != null and newRefundPreviousArrearage != ''">new_refund_previous_arrearage,</if>
<if test="newRefundThisInstallArrearage != null and newRefundThisInstallArrearage != ''">new_refund_this_install_arrearage,</if>
<if test="newRefundThisNew != null and newRefundThisNew != ''">new_refund_this_new,</if>
<if test="newRefundThisOld != null and newRefundThisOld != ''">new_refund_this_old,</if>
<if test="newRefundThisVillage != null and newRefundThisVillage != ''">new_refund_this_village,</if>
<if test="newRefundThisGov != null and newRefundThisGov != ''">new_refund_this_gov,</if>
<if test="newRefundThisIndustry != null and newRefundThisIndustry != ''">new_refund_this_Industry,</if>
<if test="newRefundThisGasArrearage != null and newRefundThisGasArrearage != ''">new_refund_this_gas_arrearage,</if>
<if test="newSell != null and newSell != ''">new_sell,</if>
<if test="newSellResident != null and newSellResident != ''">new_sell_resident,</if>
<if test="newSellHeating != null and newSellHeating != ''">new_sell_heating,</if>
<if test="newSellIndustry != null and newSellIndustry != ''">new_sell_Industry,</if>
<if test="newSellCommerce != null and newSellCommerce != ''">new_sell_commerce,</if>
<if test="newSellCng != null and newSellCng != ''">new_sell_CNG,</if>
<if test="newSellLng != null and newSellLng != ''">new_sell_LNG,</if>
<if test="newSellStation != null and newSellStation != ''">new_sell_station,</if>
<if test="newSellWholesale != null and newSellWholesale != ''">new_sell_wholesale,</if>
<if test="newSellTrade != null and newSellTrade != ''">new_sell_trade,</if>
<if test="newSellConduit != null and newSellConduit != ''">new_sell_conduit,</if>
<if test="newSellLngTrade != null and newSellLngTrade != ''">new_sell_LNG_trade,</if>
<if test="newBalanceSell != null and newBalanceSell != ''">new_balance_sell,</if>
<if test="newBalanceResident != null and newBalanceResident != ''">new_balance_resident,</if>
<if test="newBalanceNoResident != null and newBalanceNoResident != ''">new_balance_no_resident,</if>
<if test="newBalanceWholesale != null and newBalanceWholesale != ''">new_balance_wholesale,</if>
<if test="newProfitInstall != null and newProfitInstall != ''">new_profit_install,</if>
<if test="newProfitInstallResident != null and newProfitInstallResident != ''">new_profit_install_resident,</if>
<if test="newProfitInstallCommerce != null and newProfitInstallCommerce != ''">new_profit_install_commerce,</if>
<if test="newProfitSell != null and newProfitSell != ''">new_profit_sell,</if>
<if test="newProfitSellResident != null and newProfitSellResident != ''">new_profit_sell_resident,</if>
<if test="newProfitSellCommerce != null and newProfitSellCommerce != ''">new_profit_sell_commerce,</if>
<if test="newProfitSellCar != null and newProfitSellCar != ''">new_profit_sell_car,</if>
<if test="newProfitSellTrade != null and newProfitSellTrade != ''">new_profit_sell_trade,</if>
<if test="newProfitOther != null and newProfitOther != ''">new_profit_other,</if>
<if test="newProfitNew != null and newProfitNew != ''">new_profit_new,</if>
<if test="newProfitTotal != null and newProfitTotal != ''">new_profit_total,</if>
<if test="newProfitTotalCost != null and newProfitTotalCost != ''">new_profit_total_cost,</if>
<if test="newNetProfitTotal != null and newNetProfitTotal != ''">new_net_profit_total,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="reportNo != null and reportNo != ''">#{reportNo},</if>
<if test="fiscalYear != null">#{fiscalYear},</if>
<if test="contractGoal != null and contractGoal != ''">#{contractGoal},</if>
<if test="newUserGoal != null and newUserGoal != ''">#{newUserGoal},</if>
<if test="oldUserGoal != null and oldUserGoal != ''">#{oldUserGoal},</if>
<if test="townsUserGoal != null and townsUserGoal != ''">#{townsUserGoal},</if>
<if test="commerceGoal != null and commerceGoal != ''">#{commerceGoal},</if>
<if test="industryGoal != null and industryGoal != ''">#{industryGoal},</if>
<if test="installUserGoal != null and installUserGoal != ''">#{installUserGoal},</if>
<if test="salesNumberGoal != null and salesNumberGoal != ''">#{salesNumberGoal},</if>
<if test="developmentIdea != null and developmentIdea != ''">#{developmentIdea},</if>
<if test="resourceAllocation != null and resourceAllocation != ''">#{resourceAllocation},</if>
<if test="sysCtime != null">#{sysCtime},</if>
<if test="sysUtime != null">#{sysUtime},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="deleteFlag != null">#{deleteFlag},</if>
<if test="newNetProfit != null and newNetProfit != ''">#{newNetProfit},</if>
<if test="newInstallNew != null and newInstallNew != ''">#{newInstallNew},</if>
<if test="newInstallOld != null and newInstallOld != ''">#{newInstallOld},</if>
<if test="newInstallVillageNew != null and newInstallVillageNew != ''">#{newInstallVillageNew},</if>
<if test="newInstallVillageOld != null and newInstallVillageOld != ''">#{newInstallVillageOld},</if>
<if test="newInstallGasCoal != null and newInstallGasCoal != ''">#{newInstallGasCoal},</if>
<if test="newInstallIndustry != null and newInstallIndustry != ''">#{newInstallIndustry},</if>
<if test="newInstallCommerce != null and newInstallCommerce != ''">#{newInstallCommerce},</if>
<if test="newInstallSmallEnterprise != null and newInstallSmallEnterprise != ''">#{newInstallSmallEnterprise},</if>
<if test="newInstallTotal != null and newInstallTotal != ''">#{newInstallTotal},</if>
<if test="newRefundPrevious != null and newRefundPrevious != ''">#{newRefundPrevious},</if>
<if test="newRefundPreviousNew != null and newRefundPreviousNew != ''">#{newRefundPreviousNew},</if>
<if test="newRefundPreviousOld != null and newRefundPreviousOld != ''">#{newRefundPreviousOld},</if>
<if test="newRefundPreviousVillage != null and newRefundPreviousVillage != ''">#{newRefundPreviousVillage},</if>
<if test="newRefundPreviousGov != null and newRefundPreviousGov != ''">#{newRefundPreviousGov},</if>
<if test="newRefundPreviousCost != null and newRefundPreviousCost != ''">#{newRefundPreviousCost},</if>
<if test="newRefundPreviousArrearage != null and newRefundPreviousArrearage != ''">#{newRefundPreviousArrearage},</if>
<if test="newRefundThisInstallArrearage != null and newRefundThisInstallArrearage != ''">#{newRefundThisInstallArrearage},</if>
<if test="newRefundThisNew != null and newRefundThisNew != ''">#{newRefundThisNew},</if>
<if test="newRefundThisOld != null and newRefundThisOld != ''">#{newRefundThisOld},</if>
<if test="newRefundThisVillage != null and newRefundThisVillage != ''">#{newRefundThisVillage},</if>
<if test="newRefundThisGov != null and newRefundThisGov != ''">#{newRefundThisGov},</if>
<if test="newRefundThisIndustry != null and newRefundThisIndustry != ''">#{newRefundThisIndustry},</if>
<if test="newRefundThisGasArrearage != null and newRefundThisGasArrearage != ''">#{newRefundThisGasArrearage},</if>
<if test="newSell != null and newSell != ''">#{newSell},</if>
<if test="newSellResident != null and newSellResident != ''">#{newSellResident},</if>
<if test="newSellHeating != null and newSellHeating != ''">#{newSellHeating},</if>
<if test="newSellIndustry != null and newSellIndustry != ''">#{newSellIndustry},</if>
<if test="newSellCommerce != null and newSellCommerce != ''">#{newSellCommerce},</if>
<if test="newSellCng != null and newSellCng != ''">#{newSellCng},</if>
<if test="newSellLng != null and newSellLng != ''">#{newSellLng},</if>
<if test="newSellStation != null and newSellStation != ''">#{newSellStation},</if>
<if test="newSellWholesale != null and newSellWholesale != ''">#{newSellWholesale},</if>
<if test="newSellTrade != null and newSellTrade != ''">#{newSellTrade},</if>
<if test="newSellConduit != null and newSellConduit != ''">#{newSellConduit},</if>
<if test="newSellLngTrade != null and newSellLngTrade != ''">#{newSellLngTrade},</if>
<if test="newBalanceSell != null and newBalanceSell != ''">#{newBalanceSell},</if>
<if test="newBalanceResident != null and newBalanceResident != ''">#{newBalanceResident},</if>
<if test="newBalanceNoResident != null and newBalanceNoResident != ''">#{newBalanceNoResident},</if>
<if test="newBalanceWholesale != null and newBalanceWholesale != ''">#{newBalanceWholesale},</if>
<if test="newProfitInstall != null and newProfitInstall != ''">#{newProfitInstall},</if>
<if test="newProfitInstallResident != null and newProfitInstallResident != ''">#{newProfitInstallResident},</if>
<if test="newProfitInstallCommerce != null and newProfitInstallCommerce != ''">#{newProfitInstallCommerce},</if>
<if test="newProfitSell != null and newProfitSell != ''">#{newProfitSell},</if>
<if test="newProfitSellResident != null and newProfitSellResident != ''">#{newProfitSellResident},</if>
<if test="newProfitSellCommerce != null and newProfitSellCommerce != ''">#{newProfitSellCommerce},</if>
<if test="newProfitSellCar != null and newProfitSellCar != ''">#{newProfitSellCar},</if>
<if test="newProfitSellTrade != null and newProfitSellTrade != ''">#{newProfitSellTrade},</if>
<if test="newProfitOther != null and newProfitOther != ''">#{newProfitOther},</if>
<if test="newProfitNew != null and newProfitNew != ''">#{newProfitNew},</if>
<if test="newProfitTotal != null and newProfitTotal != ''">#{newProfitTotal},</if>
<if test="newProfitTotalCost != null and newProfitTotalCost != ''">#{newProfitTotalCost},</if>
<if test="newNetProfitTotal != null and newNetProfitTotal != ''">#{newNetProfitTotal},</if>
</trim>
</insert>
<update id="updateDevelopmentPlan" parameterType="com.chinagas.modules.insight.domian.DevelopmentPlan">
update development_plan
<trim prefix="SET" suffixOverrides=",">
<if test="reportNo != null and reportNo != ''">report_no = #{reportNo},</if>
<if test="fiscalYear != null">fiscal_year = #{fiscalYear},</if>
<if test="contractGoal != null and contractGoal != ''">contract_goal = #{contractGoal},</if>
<if test="newUserGoal != null and newUserGoal != ''">new_user_goal = #{newUserGoal},</if>
<if test="oldUserGoal != null and oldUserGoal != ''">old_user_goal = #{oldUserGoal},</if>
<if test="townsUserGoal != null and townsUserGoal != ''">towns_user_goal = #{townsUserGoal},</if>
<if test="commerceGoal != null and commerceGoal != ''">commerce_goal = #{commerceGoal},</if>
<if test="industryGoal != null and industryGoal != ''">industry_goal = #{industryGoal},</if>
<if test="installUserGoal != null and installUserGoal != ''">install_user_goal = #{installUserGoal},</if>
<if test="salesNumberGoal != null and salesNumberGoal != ''">sales_number_goal = #{salesNumberGoal},</if>
<if test="developmentIdea != null and developmentIdea != ''">development_idea = #{developmentIdea},</if>
<if test="resourceAllocation != null and resourceAllocation != ''">resource_allocation = #{resourceAllocation},</if>
<if test="sysCtime != null">sys_ctime = #{sysCtime},</if>
<if test="sysUtime != null">sys_utime = #{sysUtime},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="deleteFlag != null">delete_flag = #{deleteFlag},</if>
<if test="newNetProfit != null and newNetProfit != ''">new_net_profit = #{newNetProfit},</if>
<if test="newInstallNew != null and newInstallNew != ''">new_install_new = #{newInstallNew},</if>
<if test="newInstallOld != null and newInstallOld != ''">new_install_old = #{newInstallOld},</if>
<if test="newInstallVillageNew != null and newInstallVillageNew != ''">new_install_village_new = #{newInstallVillageNew},</if>
<if test="newInstallVillageOld != null and newInstallVillageOld != ''">new_install_village_old = #{newInstallVillageOld},</if>
<if test="newInstallGasCoal != null and newInstallGasCoal != ''">new_install_gas_coal = #{newInstallGasCoal},</if>
<if test="newInstallIndustry != null and newInstallIndustry != ''">new_install_Industry = #{newInstallIndustry},</if>
<if test="newInstallCommerce != null and newInstallCommerce != ''">new_install_commerce = #{newInstallCommerce},</if>
<if test="newInstallSmallEnterprise != null and newInstallSmallEnterprise != ''">new_install_small_enterprise = #{newInstallSmallEnterprise},</if>
<if test="newInstallTotal != null and newInstallTotal != ''">new_install_total = #{newInstallTotal},</if>
<if test="newRefundPrevious != null and newRefundPrevious != ''">new_refund_previous = #{newRefundPrevious},</if>
<if test="newRefundPreviousNew != null and newRefundPreviousNew != ''">new_refund_previous_new = #{newRefundPreviousNew},</if>
<if test="newRefundPreviousOld != null and newRefundPreviousOld != ''">new_refund_previous_old = #{newRefundPreviousOld},</if>
<if test="newRefundPreviousVillage != null and newRefundPreviousVillage != ''">new_refund_previous_village = #{newRefundPreviousVillage},</if>
<if test="newRefundPreviousGov != null and newRefundPreviousGov != ''">new_refund_previous_gov = #{newRefundPreviousGov},</if>
<if test="newRefundPreviousCost != null and newRefundPreviousCost != ''">new_refund_previous_cost = #{newRefundPreviousCost},</if>
<if test="newRefundPreviousArrearage != null and newRefundPreviousArrearage != ''">new_refund_previous_arrearage = #{newRefundPreviousArrearage},</if>
<if test="newRefundThisInstallArrearage != null and newRefundThisInstallArrearage != ''">new_refund_this_install_arrearage = #{newRefundThisInstallArrearage},</if>
<if test="newRefundThisNew != null and newRefundThisNew != ''">new_refund_this_new = #{newRefundThisNew},</if>
<if test="newRefundThisOld != null and newRefundThisOld != ''">new_refund_this_old = #{newRefundThisOld},</if>
<if test="newRefundThisVillage != null and newRefundThisVillage != ''">new_refund_this_village = #{newRefundThisVillage},</if>
<if test="newRefundThisGov != null and newRefundThisGov != ''">new_refund_this_gov = #{newRefundThisGov},</if>
<if test="newRefundThisIndustry != null and newRefundThisIndustry != ''">new_refund_this_Industry = #{newRefundThisIndustry},</if>
<if test="newRefundThisGasArrearage != null and newRefundThisGasArrearage != ''">new_refund_this_gas_arrearage = #{newRefundThisGasArrearage},</if>
<if test="newSell != null and newSell != ''">new_sell = #{newSell},</if>
<if test="newSellResident != null and newSellResident != ''">new_sell_resident = #{newSellResident},</if>
<if test="newSellHeating != null and newSellHeating != ''">new_sell_heating = #{newSellHeating},</if>
<if test="newSellIndustry != null and newSellIndustry != ''">new_sell_Industry = #{newSellIndustry},</if>
<if test="newSellCommerce != null and newSellCommerce != ''">new_sell_commerce = #{newSellCommerce},</if>
<if test="newSellCng != null and newSellCng != ''">new_sell_CNG = #{newSellCng},</if>
<if test="newSellLng != null and newSellLng != ''">new_sell_LNG = #{newSellLng},</if>
<if test="newSellStation != null and newSellStation != ''">new_sell_station = #{newSellStation},</if>
<if test="newSellWholesale != null and newSellWholesale != ''">new_sell_wholesale = #{newSellWholesale},</if>
<if test="newSellTrade != null and newSellTrade != ''">new_sell_trade = #{newSellTrade},</if>
<if test="newSellConduit != null and newSellConduit != ''">new_sell_conduit = #{newSellConduit},</if>
<if test="newSellLngTrade != null and newSellLngTrade != ''">new_sell_LNG_trade = #{newSellLngTrade},</if>
<if test="newBalanceSell != null and newBalanceSell != ''">new_balance_sell = #{newBalanceSell},</if>
<if test="newBalanceResident != null and newBalanceResident != ''">new_balance_resident = #{newBalanceResident},</if>
<if test="newBalanceNoResident != null and newBalanceNoResident != ''">new_balance_no_resident = #{newBalanceNoResident},</if>
<if test="newBalanceWholesale != null and newBalanceWholesale != ''">new_balance_wholesale = #{newBalanceWholesale},</if>
<if test="newProfitInstall != null and newProfitInstall != ''">new_profit_install = #{newProfitInstall},</if>
<if test="newProfitInstallResident != null and newProfitInstallResident != ''">new_profit_install_resident = #{newProfitInstallResident},</if>
<if test="newProfitInstallCommerce != null and newProfitInstallCommerce != ''">new_profit_install_commerce = #{newProfitInstallCommerce},</if>
<if test="newProfitSell != null and newProfitSell != ''">new_profit_sell = #{newProfitSell},</if>
<if test="newProfitSellResident != null and newProfitSellResident != ''">new_profit_sell_resident = #{newProfitSellResident},</if>
<if test="newProfitSellCommerce != null and newProfitSellCommerce != ''">new_profit_sell_commerce = #{newProfitSellCommerce},</if>
<if test="newProfitSellCar != null and newProfitSellCar != ''">new_profit_sell_car = #{newProfitSellCar},</if>
<if test="newProfitSellTrade != null and newProfitSellTrade != ''">new_profit_sell_trade = #{newProfitSellTrade},</if>
<if test="newProfitOther != null and newProfitOther != ''">new_profit_other = #{newProfitOther},</if>
<if test="newProfitNew != null and newProfitNew != ''">new_profit_new = #{newProfitNew},</if>
<if test="newProfitTotal != null and newProfitTotal != ''">new_profit_total = #{newProfitTotal},</if>
<if test="newProfitTotalCost != null and newProfitTotalCost != ''">new_profit_total_cost = #{newProfitTotalCost},</if>
<if test="newNetProfitTotal != null and newNetProfitTotal != ''">new_net_profit_total = #{newNetProfitTotal},</if>
</trim>
where report_no = #{reportNo}
</update>
<update id="deleteDevelopmentPlanById" parameterType="com.chinagas.modules.insight.domian.DevelopmentPlan">
update development_plan
<trim prefix="SET" suffixOverrides=",">
delete_flag = 1
</trim>
where report_no = #{reportNo}
</update>
<delete id="deleteDevelopmentPlanByIds" parameterType="String">
delete from development_plan where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>