|
|
@@ -8,10 +8,9 @@
|
|
8
|
8
|
<result column="keeper" property="keeper" jdbcType="INTEGER" />
|
|
9
|
9
|
<result column="grain_kind" property="grainKind" jdbcType="INTEGER" />
|
|
10
|
10
|
<result column="grain_count" property="grainCount" jdbcType="DECIMAL" />
|
|
11
|
|
- <result column="harvest_years" property="harvestYears" jdbcType="TIMESTAMP" />
|
|
12
|
|
- <result column="put_storage_years" property="putStorageYears" jdbcType="TIMESTAMP" />
|
|
|
11
|
+ <result column="harvest_years" property="harvestYears" jdbcType="INTEGER" />
|
|
|
12
|
+ <result column="put_storage_years" property="putStorageYears" jdbcType="INTEGER" />
|
|
13
|
13
|
<result column="fumigation_num" property="fumigationNum" jdbcType="VARCHAR" />
|
|
14
|
|
- <result column="stow_way" property="stowWay" jdbcType="VARCHAR" />
|
|
15
|
14
|
<result column="one_methods" property="oneMethods" jdbcType="INTEGER" />
|
|
16
|
15
|
<result column="one_dose" property="oneDose" jdbcType="VARCHAR" />
|
|
17
|
16
|
<result column="one_date" property="oneDate" jdbcType="TIMESTAMP" />
|
|
|
@@ -59,6 +58,7 @@
|
|
59
|
58
|
<result column="delete_state" property="deleteState" jdbcType="VARCHAR" />
|
|
60
|
59
|
<result column="org_id" property="orgId" jdbcType="VARCHAR" />
|
|
61
|
60
|
<result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
|
|
|
61
|
+ <result column="stow_way" property="stowWay" jdbcType="VARCHAR" />
|
|
62
|
62
|
</resultMap>
|
|
63
|
63
|
<sql id="Example_Where_Clause" >
|
|
64
|
64
|
<where >
|
|
|
@@ -120,14 +120,14 @@
|
|
120
|
120
|
</sql>
|
|
121
|
121
|
<sql id="Base_Column_List" >
|
|
122
|
122
|
id, for_record_id, house_id, keeper, grain_kind, grain_count, harvest_years, put_storage_years,
|
|
123
|
|
- fumigation_num, stow_way, one_methods, one_dose, one_date, two_methods, two_dose,
|
|
124
|
|
- two_date, three_methods, three_dose, three_date, four_methods, four_dose, four_date,
|
|
125
|
|
- deliquescence, bag_buried, test_tube, applying_pesticide, fixed_decorate, mobile_decorate,
|
|
126
|
|
- fixed, mobile, single_control, double_control, fumigation_type, fumigation_number,
|
|
127
|
|
- fumigation_command, fumigation_operation, fumiagtion_protective, fumiagtion_period_time,
|
|
128
|
|
- fumiagtion_chief, expected, points_work, note, state, creater, create_time, plan_formulation,
|
|
129
|
|
- reported, pesticide_qualification, qualification, approve_people, approve_department,
|
|
130
|
|
- approve_note, approve_time, grain_moisture, delete_state, org_id, updatetime
|
|
|
123
|
+ fumigation_num, one_methods, one_dose, one_date, two_methods, two_dose, two_date,
|
|
|
124
|
+ three_methods, three_dose, three_date, four_methods, four_dose, four_date, deliquescence,
|
|
|
125
|
+ bag_buried, test_tube, applying_pesticide, fixed_decorate, mobile_decorate, fixed,
|
|
|
126
|
+ mobile, single_control, double_control, fumigation_type, fumigation_number, fumigation_command,
|
|
|
127
|
+ fumigation_operation, fumiagtion_protective, fumiagtion_period_time, fumiagtion_chief,
|
|
|
128
|
+ expected, points_work, note, state, creater, create_time, plan_formulation, reported,
|
|
|
129
|
+ pesticide_qualification, qualification, approve_people, approve_department, approve_note,
|
|
|
130
|
+ approve_time, grain_moisture, delete_state, org_id, updatetime, stow_way
|
|
131
|
131
|
</sql>
|
|
132
|
132
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.fumigation.model.TFumigationPlanExample" >
|
|
133
|
133
|
select
|
|
|
@@ -163,15 +163,15 @@
|
|
163
|
163
|
insert into t_fumigation_plan (id, for_record_id, house_id,
|
|
164
|
164
|
keeper, grain_kind, grain_count,
|
|
165
|
165
|
harvest_years, put_storage_years, fumigation_num,
|
|
166
|
|
- stow_way, one_methods, one_dose,
|
|
167
|
|
- one_date, two_methods, two_dose,
|
|
168
|
|
- two_date, three_methods, three_dose,
|
|
169
|
|
- three_date, four_methods, four_dose,
|
|
170
|
|
- four_date, deliquescence, bag_buried,
|
|
171
|
|
- test_tube, applying_pesticide, fixed_decorate,
|
|
172
|
|
- mobile_decorate, fixed, mobile,
|
|
173
|
|
- single_control, double_control, fumigation_type,
|
|
174
|
|
- fumigation_number, fumigation_command, fumigation_operation,
|
|
|
166
|
+ one_methods, one_dose, one_date,
|
|
|
167
|
+ two_methods, two_dose, two_date,
|
|
|
168
|
+ three_methods, three_dose, three_date,
|
|
|
169
|
+ four_methods, four_dose, four_date,
|
|
|
170
|
+ deliquescence, bag_buried, test_tube,
|
|
|
171
|
+ applying_pesticide, fixed_decorate, mobile_decorate,
|
|
|
172
|
+ fixed, mobile, single_control,
|
|
|
173
|
+ double_control, fumigation_type, fumigation_number,
|
|
|
174
|
+ fumigation_command, fumigation_operation,
|
|
175
|
175
|
fumiagtion_protective, fumiagtion_period_time,
|
|
176
|
176
|
fumiagtion_chief, expected, points_work,
|
|
177
|
177
|
note, state, creater,
|
|
|
@@ -179,19 +179,20 @@
|
|
179
|
179
|
pesticide_qualification, qualification,
|
|
180
|
180
|
approve_people, approve_department, approve_note,
|
|
181
|
181
|
approve_time, grain_moisture, delete_state,
|
|
182
|
|
- org_id, updatetime)
|
|
|
182
|
+ org_id, updatetime, stow_way
|
|
|
183
|
+ )
|
|
183
|
184
|
values (#{id,jdbcType=VARCHAR}, #{forRecordId,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER},
|
|
184
|
185
|
#{keeper,jdbcType=INTEGER}, #{grainKind,jdbcType=INTEGER}, #{grainCount,jdbcType=DECIMAL},
|
|
185
|
|
- #{harvestYears,jdbcType=TIMESTAMP}, #{putStorageYears,jdbcType=TIMESTAMP}, #{fumigationNum,jdbcType=VARCHAR},
|
|
186
|
|
- #{stowWay,jdbcType=VARCHAR}, #{oneMethods,jdbcType=INTEGER}, #{oneDose,jdbcType=VARCHAR},
|
|
187
|
|
- #{oneDate,jdbcType=TIMESTAMP}, #{twoMethods,jdbcType=INTEGER}, #{twoDose,jdbcType=VARCHAR},
|
|
188
|
|
- #{twoDate,jdbcType=TIMESTAMP}, #{threeMethods,jdbcType=INTEGER}, #{threeDose,jdbcType=VARCHAR},
|
|
189
|
|
- #{threeDate,jdbcType=TIMESTAMP}, #{fourMethods,jdbcType=INTEGER}, #{fourDose,jdbcType=VARCHAR},
|
|
190
|
|
- #{fourDate,jdbcType=TIMESTAMP}, #{deliquescence,jdbcType=VARCHAR}, #{bagBuried,jdbcType=VARCHAR},
|
|
191
|
|
- #{testTube,jdbcType=VARCHAR}, #{applyingPesticide,jdbcType=VARCHAR}, #{fixedDecorate,jdbcType=VARCHAR},
|
|
192
|
|
- #{mobileDecorate,jdbcType=VARCHAR}, #{fixed,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR},
|
|
193
|
|
- #{singleControl,jdbcType=VARCHAR}, #{doubleControl,jdbcType=VARCHAR}, #{fumigationType,jdbcType=INTEGER},
|
|
194
|
|
- #{fumigationNumber,jdbcType=INTEGER}, #{fumigationCommand,jdbcType=VARCHAR}, #{fumigationOperation,jdbcType=VARCHAR},
|
|
|
186
|
+ #{harvestYears,jdbcType=INTEGER}, #{putStorageYears,jdbcType=INTEGER}, #{fumigationNum,jdbcType=VARCHAR},
|
|
|
187
|
+ #{oneMethods,jdbcType=INTEGER}, #{oneDose,jdbcType=VARCHAR}, #{oneDate,jdbcType=TIMESTAMP},
|
|
|
188
|
+ #{twoMethods,jdbcType=INTEGER}, #{twoDose,jdbcType=VARCHAR}, #{twoDate,jdbcType=TIMESTAMP},
|
|
|
189
|
+ #{threeMethods,jdbcType=INTEGER}, #{threeDose,jdbcType=VARCHAR}, #{threeDate,jdbcType=TIMESTAMP},
|
|
|
190
|
+ #{fourMethods,jdbcType=INTEGER}, #{fourDose,jdbcType=VARCHAR}, #{fourDate,jdbcType=TIMESTAMP},
|
|
|
191
|
+ #{deliquescence,jdbcType=VARCHAR}, #{bagBuried,jdbcType=VARCHAR}, #{testTube,jdbcType=VARCHAR},
|
|
|
192
|
+ #{applyingPesticide,jdbcType=VARCHAR}, #{fixedDecorate,jdbcType=VARCHAR}, #{mobileDecorate,jdbcType=VARCHAR},
|
|
|
193
|
+ #{fixed,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{singleControl,jdbcType=VARCHAR},
|
|
|
194
|
+ #{doubleControl,jdbcType=VARCHAR}, #{fumigationType,jdbcType=INTEGER}, #{fumigationNumber,jdbcType=INTEGER},
|
|
|
195
|
+ #{fumigationCommand,jdbcType=VARCHAR}, #{fumigationOperation,jdbcType=VARCHAR},
|
|
195
|
196
|
#{fumiagtionProtective,jdbcType=VARCHAR}, #{fumiagtionPeriodTime,jdbcType=VARCHAR},
|
|
196
|
197
|
#{fumiagtionChief,jdbcType=VARCHAR}, #{expected,jdbcType=VARCHAR}, #{pointsWork,jdbcType=VARCHAR},
|
|
197
|
198
|
#{note,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER}, #{creater,jdbcType=VARCHAR},
|
|
|
@@ -199,7 +200,8 @@
|
|
199
|
200
|
#{pesticideQualification,jdbcType=VARCHAR}, #{qualification,jdbcType=VARCHAR},
|
|
200
|
201
|
#{approvePeople,jdbcType=VARCHAR}, #{approveDepartment,jdbcType=VARCHAR}, #{approveNote,jdbcType=VARCHAR},
|
|
201
|
202
|
#{approveTime,jdbcType=TIMESTAMP}, #{grainMoisture,jdbcType=VARCHAR}, #{deleteState,jdbcType=VARCHAR},
|
|
202
|
|
- #{orgId,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP})
|
|
|
203
|
+ #{orgId,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, #{stowWay,jdbcType=VARCHAR}
|
|
|
204
|
+ )
|
|
203
|
205
|
</insert>
|
|
204
|
206
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.fumigation.model.TFumigationPlan" >
|
|
205
|
207
|
insert into t_fumigation_plan
|
|
|
@@ -231,9 +233,6 @@
|
|
231
|
233
|
<if test="fumigationNum != null" >
|
|
232
|
234
|
fumigation_num,
|
|
233
|
235
|
</if>
|
|
234
|
|
- <if test="stowWay != null" >
|
|
235
|
|
- stow_way,
|
|
236
|
|
- </if>
|
|
237
|
236
|
<if test="oneMethods != null" >
|
|
238
|
237
|
one_methods,
|
|
239
|
238
|
</if>
|
|
|
@@ -375,6 +374,9 @@
|
|
375
|
374
|
<if test="updatetime != null" >
|
|
376
|
375
|
updatetime,
|
|
377
|
376
|
</if>
|
|
|
377
|
+ <if test="stowWay != null" >
|
|
|
378
|
+ stow_way,
|
|
|
379
|
+ </if>
|
|
378
|
380
|
</trim>
|
|
379
|
381
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
380
|
382
|
<if test="id != null" >
|
|
|
@@ -396,17 +398,14 @@
|
|
396
|
398
|
#{grainCount,jdbcType=DECIMAL},
|
|
397
|
399
|
</if>
|
|
398
|
400
|
<if test="harvestYears != null" >
|
|
399
|
|
- #{harvestYears,jdbcType=TIMESTAMP},
|
|
|
401
|
+ #{harvestYears,jdbcType=INTEGER},
|
|
400
|
402
|
</if>
|
|
401
|
403
|
<if test="putStorageYears != null" >
|
|
402
|
|
- #{putStorageYears,jdbcType=TIMESTAMP},
|
|
|
404
|
+ #{putStorageYears,jdbcType=INTEGER},
|
|
403
|
405
|
</if>
|
|
404
|
406
|
<if test="fumigationNum != null" >
|
|
405
|
407
|
#{fumigationNum,jdbcType=VARCHAR},
|
|
406
|
408
|
</if>
|
|
407
|
|
- <if test="stowWay != null" >
|
|
408
|
|
- #{stowWay,jdbcType=VARCHAR},
|
|
409
|
|
- </if>
|
|
410
|
409
|
<if test="oneMethods != null" >
|
|
411
|
410
|
#{oneMethods,jdbcType=INTEGER},
|
|
412
|
411
|
</if>
|
|
|
@@ -548,6 +547,9 @@
|
|
548
|
547
|
<if test="updatetime != null" >
|
|
549
|
548
|
#{updatetime,jdbcType=TIMESTAMP},
|
|
550
|
549
|
</if>
|
|
|
550
|
+ <if test="stowWay != null" >
|
|
|
551
|
+ #{stowWay,jdbcType=VARCHAR},
|
|
|
552
|
+ </if>
|
|
551
|
553
|
</trim>
|
|
552
|
554
|
</insert>
|
|
553
|
555
|
<select id="countByExample" parameterType="com.chinaitop.depot.fumigation.model.TFumigationPlanExample" resultType="java.lang.Integer" >
|
|
|
@@ -578,17 +580,14 @@
|
|
578
|
580
|
grain_count = #{record.grainCount,jdbcType=DECIMAL},
|
|
579
|
581
|
</if>
|
|
580
|
582
|
<if test="record.harvestYears != null" >
|
|
581
|
|
- harvest_years = #{record.harvestYears,jdbcType=TIMESTAMP},
|
|
|
583
|
+ harvest_years = #{record.harvestYears,jdbcType=INTEGER},
|
|
582
|
584
|
</if>
|
|
583
|
585
|
<if test="record.putStorageYears != null" >
|
|
584
|
|
- put_storage_years = #{record.putStorageYears,jdbcType=TIMESTAMP},
|
|
|
586
|
+ put_storage_years = #{record.putStorageYears,jdbcType=INTEGER},
|
|
585
|
587
|
</if>
|
|
586
|
588
|
<if test="record.fumigationNum != null" >
|
|
587
|
589
|
fumigation_num = #{record.fumigationNum,jdbcType=VARCHAR},
|
|
588
|
590
|
</if>
|
|
589
|
|
- <if test="record.stowWay != null" >
|
|
590
|
|
- stow_way = #{record.stowWay,jdbcType=VARCHAR},
|
|
591
|
|
- </if>
|
|
592
|
591
|
<if test="record.oneMethods != null" >
|
|
593
|
592
|
one_methods = #{record.oneMethods,jdbcType=INTEGER},
|
|
594
|
593
|
</if>
|
|
|
@@ -730,6 +729,9 @@
|
|
730
|
729
|
<if test="record.updatetime != null" >
|
|
731
|
730
|
updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
732
|
731
|
</if>
|
|
|
732
|
+ <if test="record.stowWay != null" >
|
|
|
733
|
+ stow_way = #{record.stowWay,jdbcType=VARCHAR},
|
|
|
734
|
+ </if>
|
|
733
|
735
|
</set>
|
|
734
|
736
|
<if test="_parameter != null" >
|
|
735
|
737
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -743,10 +745,9 @@
|
|
743
|
745
|
keeper = #{record.keeper,jdbcType=INTEGER},
|
|
744
|
746
|
grain_kind = #{record.grainKind,jdbcType=INTEGER},
|
|
745
|
747
|
grain_count = #{record.grainCount,jdbcType=DECIMAL},
|
|
746
|
|
- harvest_years = #{record.harvestYears,jdbcType=TIMESTAMP},
|
|
747
|
|
- put_storage_years = #{record.putStorageYears,jdbcType=TIMESTAMP},
|
|
|
748
|
+ harvest_years = #{record.harvestYears,jdbcType=INTEGER},
|
|
|
749
|
+ put_storage_years = #{record.putStorageYears,jdbcType=INTEGER},
|
|
748
|
750
|
fumigation_num = #{record.fumigationNum,jdbcType=VARCHAR},
|
|
749
|
|
- stow_way = #{record.stowWay,jdbcType=VARCHAR},
|
|
750
|
751
|
one_methods = #{record.oneMethods,jdbcType=INTEGER},
|
|
751
|
752
|
one_dose = #{record.oneDose,jdbcType=VARCHAR},
|
|
752
|
753
|
one_date = #{record.oneDate,jdbcType=TIMESTAMP},
|
|
|
@@ -793,7 +794,8 @@
|
|
793
|
794
|
grain_moisture = #{record.grainMoisture,jdbcType=VARCHAR},
|
|
794
|
795
|
delete_state = #{record.deleteState,jdbcType=VARCHAR},
|
|
795
|
796
|
org_id = #{record.orgId,jdbcType=VARCHAR},
|
|
796
|
|
- updatetime = #{record.updatetime,jdbcType=TIMESTAMP}
|
|
|
797
|
+ updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
|
|
|
798
|
+ stow_way = #{record.stowWay,jdbcType=VARCHAR}
|
|
797
|
799
|
<if test="_parameter != null" >
|
|
798
|
800
|
<include refid="Update_By_Example_Where_Clause" />
|
|
799
|
801
|
</if>
|
|
|
@@ -817,17 +819,14 @@
|
|
817
|
819
|
grain_count = #{grainCount,jdbcType=DECIMAL},
|
|
818
|
820
|
</if>
|
|
819
|
821
|
<if test="harvestYears != null" >
|
|
820
|
|
- harvest_years = #{harvestYears,jdbcType=TIMESTAMP},
|
|
|
822
|
+ harvest_years = #{harvestYears,jdbcType=INTEGER},
|
|
821
|
823
|
</if>
|
|
822
|
824
|
<if test="putStorageYears != null" >
|
|
823
|
|
- put_storage_years = #{putStorageYears,jdbcType=TIMESTAMP},
|
|
|
825
|
+ put_storage_years = #{putStorageYears,jdbcType=INTEGER},
|
|
824
|
826
|
</if>
|
|
825
|
827
|
<if test="fumigationNum != null" >
|
|
826
|
828
|
fumigation_num = #{fumigationNum,jdbcType=VARCHAR},
|
|
827
|
829
|
</if>
|
|
828
|
|
- <if test="stowWay != null" >
|
|
829
|
|
- stow_way = #{stowWay,jdbcType=VARCHAR},
|
|
830
|
|
- </if>
|
|
831
|
830
|
<if test="oneMethods != null" >
|
|
832
|
831
|
one_methods = #{oneMethods,jdbcType=INTEGER},
|
|
833
|
832
|
</if>
|
|
|
@@ -969,6 +968,9 @@
|
|
969
|
968
|
<if test="updatetime != null" >
|
|
970
|
969
|
updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
971
|
970
|
</if>
|
|
|
971
|
+ <if test="stowWay != null" >
|
|
|
972
|
+ stow_way = #{stowWay,jdbcType=VARCHAR},
|
|
|
973
|
+ </if>
|
|
972
|
974
|
</set>
|
|
973
|
975
|
where id = #{id,jdbcType=VARCHAR}
|
|
974
|
976
|
</update>
|
|
|
@@ -979,10 +981,9 @@
|
|
979
|
981
|
keeper = #{keeper,jdbcType=INTEGER},
|
|
980
|
982
|
grain_kind = #{grainKind,jdbcType=INTEGER},
|
|
981
|
983
|
grain_count = #{grainCount,jdbcType=DECIMAL},
|
|
982
|
|
- harvest_years = #{harvestYears,jdbcType=TIMESTAMP},
|
|
983
|
|
- put_storage_years = #{putStorageYears,jdbcType=TIMESTAMP},
|
|
|
984
|
+ harvest_years = #{harvestYears,jdbcType=INTEGER},
|
|
|
985
|
+ put_storage_years = #{putStorageYears,jdbcType=INTEGER},
|
|
984
|
986
|
fumigation_num = #{fumigationNum,jdbcType=VARCHAR},
|
|
985
|
|
- stow_way = #{stowWay,jdbcType=VARCHAR},
|
|
986
|
987
|
one_methods = #{oneMethods,jdbcType=INTEGER},
|
|
987
|
988
|
one_dose = #{oneDose,jdbcType=VARCHAR},
|
|
988
|
989
|
one_date = #{oneDate,jdbcType=TIMESTAMP},
|
|
|
@@ -1029,7 +1030,8 @@
|
|
1029
|
1030
|
grain_moisture = #{grainMoisture,jdbcType=VARCHAR},
|
|
1030
|
1031
|
delete_state = #{deleteState,jdbcType=VARCHAR},
|
|
1031
|
1032
|
org_id = #{orgId,jdbcType=VARCHAR},
|
|
1032
|
|
- updatetime = #{updatetime,jdbcType=TIMESTAMP}
|
|
|
1033
|
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
|
|
|
1034
|
+ stow_way = #{stowWay,jdbcType=VARCHAR}
|
|
1033
|
1035
|
where id = #{id,jdbcType=VARCHAR}
|
|
1034
|
1036
|
</update>
|
|
1035
|
1037
|
|
|
|
@@ -1151,6 +1153,7 @@
|
|
1151
|
1153
|
<if test="houseId != null" >
|
|
1152
|
1154
|
AND plan.house_id = #{houseId,jdbcType=INTEGER}
|
|
1153
|
1155
|
</if>
|
|
|
1156
|
+ order by plan.create_time desc
|
|
1154
|
1157
|
</select>
|
|
1155
|
1158
|
<select id="getProcessList" resultMap="BaseResultMap" parameterType="java.util.Map" >
|
|
1156
|
1159
|
select
|