|
|
@@ -11,6 +11,7 @@
|
|
11
|
11
|
<result column="harvest_years" property="harvestYears" jdbcType="TIMESTAMP" />
|
|
12
|
12
|
<result column="put_storage_years" property="putStorageYears" jdbcType="TIMESTAMP" />
|
|
13
|
13
|
<result column="fumigation_num" property="fumigationNum" jdbcType="VARCHAR" />
|
|
|
14
|
+ <result column="stow_way" property="stowWay" jdbcType="VARCHAR" />
|
|
14
|
15
|
<result column="one_methods" property="oneMethods" jdbcType="INTEGER" />
|
|
15
|
16
|
<result column="one_dose" property="oneDose" jdbcType="VARCHAR" />
|
|
16
|
17
|
<result column="one_date" property="oneDate" jdbcType="TIMESTAMP" />
|
|
|
@@ -119,14 +120,14 @@
|
|
119
|
120
|
</sql>
|
|
120
|
121
|
<sql id="Base_Column_List" >
|
|
121
|
122
|
id, for_record_id, house_id, keeper, grain_kind, grain_count, harvest_years, put_storage_years,
|
|
122
|
|
- fumigation_num, one_methods, one_dose, one_date, two_methods, two_dose, two_date,
|
|
123
|
|
- three_methods, three_dose, three_date, four_methods, four_dose, four_date, deliquescence,
|
|
124
|
|
- bag_buried, test_tube, applying_pesticide, fixed_decorate, mobile_decorate, fixed,
|
|
125
|
|
- mobile, single_control, double_control, fumigation_type, fumigation_number, fumigation_command,
|
|
126
|
|
- fumigation_operation, fumiagtion_protective, fumiagtion_period_time, fumiagtion_chief,
|
|
127
|
|
- expected, points_work, note, state, creater, create_time, plan_formulation, reported,
|
|
128
|
|
- pesticide_qualification, qualification, approve_people, approve_department, approve_note,
|
|
129
|
|
- approve_time, grain_moisture, delete_state, org_id, updatetime
|
|
|
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
|
|
130
|
131
|
</sql>
|
|
131
|
132
|
<select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.fumigation.model.TFumigationPlanExample" >
|
|
132
|
133
|
select
|
|
|
@@ -162,15 +163,15 @@
|
|
162
|
163
|
insert into t_fumigation_plan (id, for_record_id, house_id,
|
|
163
|
164
|
keeper, grain_kind, grain_count,
|
|
164
|
165
|
harvest_years, put_storage_years, fumigation_num,
|
|
165
|
|
- one_methods, one_dose, one_date,
|
|
166
|
|
- two_methods, two_dose, two_date,
|
|
167
|
|
- three_methods, three_dose, three_date,
|
|
168
|
|
- four_methods, four_dose, four_date,
|
|
169
|
|
- deliquescence, bag_buried, test_tube,
|
|
170
|
|
- applying_pesticide, fixed_decorate, mobile_decorate,
|
|
171
|
|
- fixed, mobile, single_control,
|
|
172
|
|
- double_control, fumigation_type, fumigation_number,
|
|
173
|
|
- fumigation_command, fumigation_operation,
|
|
|
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,
|
|
174
|
175
|
fumiagtion_protective, fumiagtion_period_time,
|
|
175
|
176
|
fumiagtion_chief, expected, points_work,
|
|
176
|
177
|
note, state, creater,
|
|
|
@@ -182,15 +183,15 @@
|
|
182
|
183
|
values (#{id,jdbcType=VARCHAR}, #{forRecordId,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER},
|
|
183
|
184
|
#{keeper,jdbcType=INTEGER}, #{grainKind,jdbcType=INTEGER}, #{grainCount,jdbcType=DECIMAL},
|
|
184
|
185
|
#{harvestYears,jdbcType=TIMESTAMP}, #{putStorageYears,jdbcType=TIMESTAMP}, #{fumigationNum,jdbcType=VARCHAR},
|
|
185
|
|
- #{oneMethods,jdbcType=INTEGER}, #{oneDose,jdbcType=VARCHAR}, #{oneDate,jdbcType=TIMESTAMP},
|
|
186
|
|
- #{twoMethods,jdbcType=INTEGER}, #{twoDose,jdbcType=VARCHAR}, #{twoDate,jdbcType=TIMESTAMP},
|
|
187
|
|
- #{threeMethods,jdbcType=INTEGER}, #{threeDose,jdbcType=VARCHAR}, #{threeDate,jdbcType=TIMESTAMP},
|
|
188
|
|
- #{fourMethods,jdbcType=INTEGER}, #{fourDose,jdbcType=VARCHAR}, #{fourDate,jdbcType=TIMESTAMP},
|
|
189
|
|
- #{deliquescence,jdbcType=VARCHAR}, #{bagBuried,jdbcType=VARCHAR}, #{testTube,jdbcType=VARCHAR},
|
|
190
|
|
- #{applyingPesticide,jdbcType=VARCHAR}, #{fixedDecorate,jdbcType=VARCHAR}, #{mobileDecorate,jdbcType=VARCHAR},
|
|
191
|
|
- #{fixed,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, #{singleControl,jdbcType=VARCHAR},
|
|
192
|
|
- #{doubleControl,jdbcType=VARCHAR}, #{fumigationType,jdbcType=INTEGER}, #{fumigationNumber,jdbcType=INTEGER},
|
|
193
|
|
- #{fumigationCommand,jdbcType=VARCHAR}, #{fumigationOperation,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},
|
|
194
|
195
|
#{fumiagtionProtective,jdbcType=VARCHAR}, #{fumiagtionPeriodTime,jdbcType=VARCHAR},
|
|
195
|
196
|
#{fumiagtionChief,jdbcType=VARCHAR}, #{expected,jdbcType=VARCHAR}, #{pointsWork,jdbcType=VARCHAR},
|
|
196
|
197
|
#{note,jdbcType=VARCHAR}, #{state,jdbcType=INTEGER}, #{creater,jdbcType=VARCHAR},
|
|
|
@@ -230,6 +231,9 @@
|
|
230
|
231
|
<if test="fumigationNum != null" >
|
|
231
|
232
|
fumigation_num,
|
|
232
|
233
|
</if>
|
|
|
234
|
+ <if test="stowWay != null" >
|
|
|
235
|
+ stow_way,
|
|
|
236
|
+ </if>
|
|
233
|
237
|
<if test="oneMethods != null" >
|
|
234
|
238
|
one_methods,
|
|
235
|
239
|
</if>
|
|
|
@@ -400,6 +404,9 @@
|
|
400
|
404
|
<if test="fumigationNum != null" >
|
|
401
|
405
|
#{fumigationNum,jdbcType=VARCHAR},
|
|
402
|
406
|
</if>
|
|
|
407
|
+ <if test="stowWay != null" >
|
|
|
408
|
+ #{stowWay,jdbcType=VARCHAR},
|
|
|
409
|
+ </if>
|
|
403
|
410
|
<if test="oneMethods != null" >
|
|
404
|
411
|
#{oneMethods,jdbcType=INTEGER},
|
|
405
|
412
|
</if>
|
|
|
@@ -579,6 +586,9 @@
|
|
579
|
586
|
<if test="record.fumigationNum != null" >
|
|
580
|
587
|
fumigation_num = #{record.fumigationNum,jdbcType=VARCHAR},
|
|
581
|
588
|
</if>
|
|
|
589
|
+ <if test="record.stowWay != null" >
|
|
|
590
|
+ stow_way = #{record.stowWay,jdbcType=VARCHAR},
|
|
|
591
|
+ </if>
|
|
582
|
592
|
<if test="record.oneMethods != null" >
|
|
583
|
593
|
one_methods = #{record.oneMethods,jdbcType=INTEGER},
|
|
584
|
594
|
</if>
|
|
|
@@ -736,6 +746,7 @@
|
|
736
|
746
|
harvest_years = #{record.harvestYears,jdbcType=TIMESTAMP},
|
|
737
|
747
|
put_storage_years = #{record.putStorageYears,jdbcType=TIMESTAMP},
|
|
738
|
748
|
fumigation_num = #{record.fumigationNum,jdbcType=VARCHAR},
|
|
|
749
|
+ stow_way = #{record.stowWay,jdbcType=VARCHAR},
|
|
739
|
750
|
one_methods = #{record.oneMethods,jdbcType=INTEGER},
|
|
740
|
751
|
one_dose = #{record.oneDose,jdbcType=VARCHAR},
|
|
741
|
752
|
one_date = #{record.oneDate,jdbcType=TIMESTAMP},
|
|
|
@@ -814,6 +825,9 @@
|
|
814
|
825
|
<if test="fumigationNum != null" >
|
|
815
|
826
|
fumigation_num = #{fumigationNum,jdbcType=VARCHAR},
|
|
816
|
827
|
</if>
|
|
|
828
|
+ <if test="stowWay != null" >
|
|
|
829
|
+ stow_way = #{stowWay,jdbcType=VARCHAR},
|
|
|
830
|
+ </if>
|
|
817
|
831
|
<if test="oneMethods != null" >
|
|
818
|
832
|
one_methods = #{oneMethods,jdbcType=INTEGER},
|
|
819
|
833
|
</if>
|
|
|
@@ -968,6 +982,7 @@
|
|
968
|
982
|
harvest_years = #{harvestYears,jdbcType=TIMESTAMP},
|
|
969
|
983
|
put_storage_years = #{putStorageYears,jdbcType=TIMESTAMP},
|
|
970
|
984
|
fumigation_num = #{fumigationNum,jdbcType=VARCHAR},
|
|
|
985
|
+ stow_way = #{stowWay,jdbcType=VARCHAR},
|
|
971
|
986
|
one_methods = #{oneMethods,jdbcType=INTEGER},
|
|
972
|
987
|
one_dose = #{oneDose,jdbcType=VARCHAR},
|
|
973
|
988
|
one_date = #{oneDate,jdbcType=TIMESTAMP},
|
|
|
@@ -1132,6 +1147,7 @@
|
|
1132
|
1147
|
WHERE plan.org_id = #{orgId,jdbcType=INTEGER}
|
|
1133
|
1148
|
AND plan.state != 1
|
|
1134
|
1149
|
AND approval.operator = #{userId}
|
|
|
1150
|
+ AND approval.operator_name is not null
|
|
1135
|
1151
|
<if test="houseId != null" >
|
|
1136
|
1152
|
AND plan.house_id = #{houseId,jdbcType=INTEGER}
|
|
1137
|
1153
|
</if>
|