lvzhikai 5 gadi atpakaļ
vecāks
revīzija
eb78591bca

+ 31 - 25
src/main/java/com/chinaitop/depot/fumigation/controller/FumigationAlterController.java

@@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
23 23
 import org.springframework.web.bind.annotation.RestController;
24 24
 
25 25
 import javax.annotation.Resource;
26
+import java.io.IOException;
26 27
 import java.util.Date;
27 28
 import java.util.HashMap;
28 29
 import java.util.List;
@@ -120,31 +121,36 @@ public class FumigationAlterController {
120 121
             tFumigationPlan.setState(10);
121 122
             fumigationPlanService.updateByExample(tFumigationPlan, example);
122 123
 
123
-            //向市级提交数据--熏蒸计划
124
-            TFumigationPlan planData = fumigationPlanService.findById(tFumigationAfter.getFumigationId());
125
-            Map<String, Object> planMap = ParameterUtil.convertBean(planData);
126
-            //熏蒸善后
127
-            List<TFumigationAfter> afterData = fumigationAfterService.findByFumigationId(tFumigationAfter.getFumigationId());
128
-            Map<String, Object> afterMap = ParameterUtil.convertBean(afterData.get(0));
129
-            planMap.put("fumigationAfter",afterMap);
130
-            //熏蒸施药
131
-            TFumigationPesticideExample pesticideexample = new TFumigationPesticideExample();
132
-            TFumigationPesticideExample.Criteria pesticidecriteria = pesticideexample.createCriteria();
133
-            pesticidecriteria.andFumigationIdEqualTo(tFumigationAfter.getFumigationId());
134
-            List<TFumigationPesticide> pesticideData = pesticidePlanService.getFumigationPesticideList(pesticideexample);
135
-            Map<String, Object> pesticideMap = ParameterUtil.convertBean(pesticideData.get(0));
136
-            planMap.put("fumigationPesticide",pesticideMap);
137
-            //熏蒸过程
138
-            TFumigationProcessExample processExample = new TFumigationProcessExample();
139
-            TFumigationProcessExample.Criteria processcriteria = processExample.createCriteria();
140
-            processcriteria.andFumigationIdEqualTo(tFumigationAfter.getFumigationId());
141
-            List<TFumigationProcess> processData = fumigationProcessService.getDataByFumId(processExample);
142
-            Map<String, Object> processMap = ParameterUtil.convertBean(pesticideData.get(0));
143
-            planMap.put("fumigationProcess",processMap);
144
-
145
-            String url = reportPath+"/api/cbl-app/cbl/fumigation/insertFumigationPlan";//市级接口
146
-            String strResult = HttpUtil.doPost(url, JSON.toJSONString(planMap));
147
-            modelMap.put("status", "success");
124
+            try {
125
+                //向市级提交数据--熏蒸计划
126
+                TFumigationPlan planData = fumigationPlanService.findById(tFumigationAfter.getFumigationId());
127
+                Map<String, Object> planMap = ParameterUtil.convertBean(planData);
128
+                //熏蒸善后
129
+                List<TFumigationAfter> afterData = fumigationAfterService.findByFumigationId(tFumigationAfter.getFumigationId());
130
+                Map<String, Object> afterMap = ParameterUtil.convertBean(afterData.get(0));
131
+                planMap.put("fumigationAfter",afterMap);
132
+                //熏蒸施药
133
+                TFumigationPesticideExample pesticideexample = new TFumigationPesticideExample();
134
+                TFumigationPesticideExample.Criteria pesticidecriteria = pesticideexample.createCriteria();
135
+                pesticidecriteria.andFumigationIdEqualTo(tFumigationAfter.getFumigationId());
136
+                List<TFumigationPesticide> pesticideData = pesticidePlanService.getFumigationPesticideList(pesticideexample);
137
+                Map<String, Object> pesticideMap = ParameterUtil.convertBean(pesticideData.get(0));
138
+                planMap.put("fumigationPesticide",pesticideMap);
139
+                //熏蒸过程
140
+                TFumigationProcessExample processExample = new TFumigationProcessExample();
141
+                TFumigationProcessExample.Criteria processcriteria = processExample.createCriteria();
142
+                processcriteria.andFumigationIdEqualTo(tFumigationAfter.getFumigationId());
143
+                List<TFumigationProcess> processData = fumigationProcessService.getDataByFumId(processExample);
144
+                Map<String, Object> processMap = ParameterUtil.convertBean(pesticideData.get(0));
145
+                planMap.put("fumigationProcess",processMap);
146
+
147
+                String url = reportPath+"/api/cbl-app/cbl/fumigation/insertFumigationPlan";//市级接口
148
+                String strResult = HttpUtil.doPost(url, JSON.toJSONString(planMap));
149
+            }catch (IOException e) {
150
+                e.printStackTrace();
151
+            } finally {
152
+                modelMap.put("status", "success");
153
+            }
148 154
         } else {
149 155
             tFumigationAfter.setUpdateTime(new Date());//修改时间
150 156
             fumigationAfterService.update(tFumigationAfter);

+ 6 - 2
src/main/java/com/chinaitop/depot/fumigation/controller/FumigationForRecordController.java

@@ -84,8 +84,10 @@ public class FumigationForRecordController {
84 84
 
85 85
         list = fumigationFroRecordService.getFumigationFroRecordList(map);
86 86
         PageInfo<Map<String,Object>> pageInfo = new PageInfo<Map<String,Object>>(list);
87
-        pageInfo.setStartRow(pageInfo.getStartRow()+1);
88
-        pageInfo.setEndRow(pageInfo.getEndRow()+1);
87
+        if(list.size() > 0){
88
+            pageInfo.setStartRow(pageInfo.getStartRow()+1);
89
+            pageInfo.setEndRow(pageInfo.getEndRow()+1);
90
+        }
89 91
         return pageInfo;
90 92
     }
91 93
 
@@ -138,6 +140,7 @@ public class FumigationForRecordController {
138 140
                 planIds+=maps.get("planids")+",";
139 141
             }
140 142
             planIds = planIds.substring(0,planIds.length()-1);
143
+            forRecordData.get(0).remove("planids");
141 144
             forRecordData.get(0).put("planIds",planIds);
142 145
             modelMap.put("forRecordData",ParameterUtil.slashCapitals(forRecordData));//熏蒸备案数据
143 146
 
@@ -235,6 +238,7 @@ public class FumigationForRecordController {
235 238
             TFumigationPlan tFumigationPlan = new TFumigationPlan();
236 239
             tFumigationPlan.setState(Integer.parseInt(stateType));
237 240
             tFumigationPlan.setGrainMoisture(fumMap.get("grainMoisture").toString());
241
+            tFumigationPlan.setStowWay(fumMap.get("stowWay").toString());
238 242
             tFumigationPlan.setForRecordId(uuid);
239 243
             fumigationPlanService.updateByExample(tFumigationPlan, example);
240 244
 

+ 19 - 36
src/main/java/com/chinaitop/depot/fumigation/mapper/TFumigationForrecordMapper.xml

@@ -8,7 +8,6 @@
8 8
     <result column="contact_phone" property="contactPhone" jdbcType="VARCHAR" />
9 9
     <result column="fumigation_start" property="fumigationStart" jdbcType="TIMESTAMP" />
10 10
     <result column="fumigation_end" property="fumigationEnd" jdbcType="TIMESTAMP" />
11
-    <result column="stow_way" property="stowWay" jdbcType="VARCHAR" />
12 11
     <result column="east" property="east" jdbcType="VARCHAR" />
13 12
     <result column="south" property="south" jdbcType="VARCHAR" />
14 13
     <result column="west" property="west" jdbcType="VARCHAR" />
@@ -83,10 +82,9 @@
83 82
     </where>
84 83
   </sql>
85 84
   <sql id="Base_Column_List" >
86
-    id, operation_supervisor, position, contact_phone, fumigation_start, fumigation_end,
87
-    stow_way, east, south, west, north, processing_instructions, enterprise_opinion,
88
-    organs_opinion, creater, create_time, out_person, out_forrecord_time, org_id, delete_state,
89
-    updatetime
85
+    id, operation_supervisor, position, contact_phone, fumigation_start, fumigation_end, 
86
+    east, south, west, north, processing_instructions, enterprise_opinion, organs_opinion, 
87
+    creater, create_time, out_person, out_forrecord_time, org_id, delete_state, updatetime
90 88
   </sql>
91 89
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.fumigation.model.TFumigationForrecordExample" >
92 90
     select
@@ -103,7 +101,7 @@
103 101
     </if>
104 102
   </select>
105 103
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
106
-    select
104
+    select 
107 105
     <include refid="Base_Column_List" />
108 106
     from t_fumigation_forrecord
109 107
     where id = #{id,jdbcType=VARCHAR}
@@ -119,22 +117,20 @@
119 117
     </if>
120 118
   </delete>
121 119
   <insert id="insert" parameterType="com.chinaitop.depot.fumigation.model.TFumigationForrecord" >
122
-    insert into t_fumigation_forrecord (id, operation_supervisor, position,
123
-      contact_phone, fumigation_start, fumigation_end,
124
-      stow_way, east, south,
125
-      west, north, processing_instructions,
126
-      enterprise_opinion, organs_opinion, creater,
127
-      create_time, out_person, out_forrecord_time,
128
-      org_id, delete_state, updatetime
129
-      )
130
-    values (#{id,jdbcType=VARCHAR}, #{operationSupervisor,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR},
131
-      #{contactPhone,jdbcType=VARCHAR}, #{fumigationStart,jdbcType=TIMESTAMP}, #{fumigationEnd,jdbcType=TIMESTAMP},
132
-      #{stowWay,jdbcType=VARCHAR}, #{east,jdbcType=VARCHAR}, #{south,jdbcType=VARCHAR},
133
-      #{west,jdbcType=VARCHAR}, #{north,jdbcType=VARCHAR}, #{processingInstructions,jdbcType=VARCHAR},
134
-      #{enterpriseOpinion,jdbcType=VARCHAR}, #{organsOpinion,jdbcType=VARCHAR}, #{creater,jdbcType=INTEGER},
135
-      #{createTime,jdbcType=TIMESTAMP}, #{outPerson,jdbcType=VARCHAR}, #{outForrecordTime,jdbcType=TIMESTAMP},
136
-      #{orgId,jdbcType=INTEGER}, #{deleteState,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}
137
-      )
120
+    insert into t_fumigation_forrecord (id, operation_supervisor, position, 
121
+      contact_phone, fumigation_start, fumigation_end, 
122
+      east, south, west, 
123
+      north, processing_instructions, enterprise_opinion, 
124
+      organs_opinion, creater, create_time, 
125
+      out_person, out_forrecord_time, org_id, 
126
+      delete_state, updatetime)
127
+    values (#{id,jdbcType=VARCHAR}, #{operationSupervisor,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, 
128
+      #{contactPhone,jdbcType=VARCHAR}, #{fumigationStart,jdbcType=TIMESTAMP}, #{fumigationEnd,jdbcType=TIMESTAMP}, 
129
+      #{east,jdbcType=VARCHAR}, #{south,jdbcType=VARCHAR}, #{west,jdbcType=VARCHAR}, 
130
+      #{north,jdbcType=VARCHAR}, #{processingInstructions,jdbcType=VARCHAR}, #{enterpriseOpinion,jdbcType=VARCHAR}, 
131
+      #{organsOpinion,jdbcType=VARCHAR}, #{creater,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, 
132
+      #{outPerson,jdbcType=VARCHAR}, #{outForrecordTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, 
133
+      #{deleteState,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP})
138 134
   </insert>
139 135
   <insert id="insertSelective" parameterType="com.chinaitop.depot.fumigation.model.TFumigationForrecord" >
140 136
     insert into t_fumigation_forrecord
@@ -157,9 +153,6 @@
157 153
       <if test="fumigationEnd != null" >
158 154
         fumigation_end,
159 155
       </if>
160
-      <if test="stowWay != null" >
161
-        stow_way,
162
-      </if>
163 156
       <if test="east != null" >
164 157
         east,
165 158
       </if>
@@ -222,9 +215,6 @@
222 215
       <if test="fumigationEnd != null" >
223 216
         #{fumigationEnd,jdbcType=TIMESTAMP},
224 217
       </if>
225
-      <if test="stowWay != null" >
226
-        #{stowWay,jdbcType=VARCHAR},
227
-      </if>
228 218
       <if test="east != null" >
229 219
         #{east,jdbcType=VARCHAR},
230 220
       </if>
@@ -296,9 +286,6 @@
296 286
       <if test="record.fumigationEnd != null" >
297 287
         fumigation_end = #{record.fumigationEnd,jdbcType=TIMESTAMP},
298 288
       </if>
299
-      <if test="record.stowWay != null" >
300
-        stow_way = #{record.stowWay,jdbcType=VARCHAR},
301
-      </if>
302 289
       <if test="record.east != null" >
303 290
         east = #{record.east,jdbcType=VARCHAR},
304 291
       </if>
@@ -354,7 +341,6 @@
354 341
       contact_phone = #{record.contactPhone,jdbcType=VARCHAR},
355 342
       fumigation_start = #{record.fumigationStart,jdbcType=TIMESTAMP},
356 343
       fumigation_end = #{record.fumigationEnd,jdbcType=TIMESTAMP},
357
-      stow_way = #{record.stowWay,jdbcType=VARCHAR},
358 344
       east = #{record.east,jdbcType=VARCHAR},
359 345
       south = #{record.south,jdbcType=VARCHAR},
360 346
       west = #{record.west,jdbcType=VARCHAR},
@@ -391,9 +377,6 @@
391 377
       <if test="fumigationEnd != null" >
392 378
         fumigation_end = #{fumigationEnd,jdbcType=TIMESTAMP},
393 379
       </if>
394
-      <if test="stowWay != null" >
395
-        stow_way = #{stowWay,jdbcType=VARCHAR},
396
-      </if>
397 380
       <if test="east != null" >
398 381
         east = #{east,jdbcType=VARCHAR},
399 382
       </if>
@@ -446,7 +429,6 @@
446 429
       contact_phone = #{contactPhone,jdbcType=VARCHAR},
447 430
       fumigation_start = #{fumigationStart,jdbcType=TIMESTAMP},
448 431
       fumigation_end = #{fumigationEnd,jdbcType=TIMESTAMP},
449
-      stow_way = #{stowWay,jdbcType=VARCHAR},
450 432
       east = #{east,jdbcType=VARCHAR},
451 433
       south = #{south,jdbcType=VARCHAR},
452 434
       west = #{west,jdbcType=VARCHAR},
@@ -705,6 +687,7 @@ WHERE
705 687
     plan.grain_kind grain_kind,
706 688
     plan.grain_count grain_count,
707 689
     plan.grain_moisture grain_moisture,
690
+    plan.stow_way stow_way,
708 691
     pesticide.major_insect_pests major_insect_pests,
709 692
     pesticide.insect_density insect_density,
710 693
     pesticide.drug_name drug_name,

+ 42 - 26
src/main/java/com/chinaitop/depot/fumigation/mapper/TFumigationPlanMapper.xml

@@ -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>

+ 0 - 18
src/main/java/com/chinaitop/depot/fumigation/model/TFumigationForrecord.java

@@ -15,8 +15,6 @@ public class TFumigationForrecord {
15 15
 
16 16
     private Date fumigationEnd;
17 17
 
18
-    private String stowWay;
19
-
20 18
     private String east;
21 19
 
22 20
     private String south;
@@ -142,22 +140,6 @@ public class TFumigationForrecord {
142 140
     }
143 141
 
144 142
     /**
145
-     * 堆装方式
146
-     * @return stow_way 堆装方式
147
-     */
148
-    public String getStowWay() {
149
-        return stowWay;
150
-    }
151
-
152
-    /**
153
-     * 堆装方式
154
-     * @param stowWay 堆装方式
155
-     */
156
-    public void setStowWay(String stowWay) {
157
-        this.stowWay = stowWay == null ? null : stowWay.trim();
158
-    }
159
-
160
-    /**
161 143
      * 东
162 144
      * @return east 东
163 145
      */

+ 2 - 72
src/main/java/com/chinaitop/depot/fumigation/model/TFumigationForrecordExample.java

@@ -74,7 +74,7 @@ public class TFumigationForrecordExample {
74 74
     }
75 75
 
76 76
     /**
77
-     * t_fumigation_forrecord 2020-07-06
77
+     * t_fumigation_forrecord 2020-08-11
78 78
      */
79 79
     protected abstract static class GeneratedCriteria {
80 80
         protected List<Criterion> criteria;
@@ -517,76 +517,6 @@ public class TFumigationForrecordExample {
517 517
             return (Criteria) this;
518 518
         }
519 519
 
520
-        public Criteria andStowWayIsNull() {
521
-            addCriterion("stow_way is null");
522
-            return (Criteria) this;
523
-        }
524
-
525
-        public Criteria andStowWayIsNotNull() {
526
-            addCriterion("stow_way is not null");
527
-            return (Criteria) this;
528
-        }
529
-
530
-        public Criteria andStowWayEqualTo(String value) {
531
-            addCriterion("stow_way =", value, "stowWay");
532
-            return (Criteria) this;
533
-        }
534
-
535
-        public Criteria andStowWayNotEqualTo(String value) {
536
-            addCriterion("stow_way <>", value, "stowWay");
537
-            return (Criteria) this;
538
-        }
539
-
540
-        public Criteria andStowWayGreaterThan(String value) {
541
-            addCriterion("stow_way >", value, "stowWay");
542
-            return (Criteria) this;
543
-        }
544
-
545
-        public Criteria andStowWayGreaterThanOrEqualTo(String value) {
546
-            addCriterion("stow_way >=", value, "stowWay");
547
-            return (Criteria) this;
548
-        }
549
-
550
-        public Criteria andStowWayLessThan(String value) {
551
-            addCriterion("stow_way <", value, "stowWay");
552
-            return (Criteria) this;
553
-        }
554
-
555
-        public Criteria andStowWayLessThanOrEqualTo(String value) {
556
-            addCriterion("stow_way <=", value, "stowWay");
557
-            return (Criteria) this;
558
-        }
559
-
560
-        public Criteria andStowWayLike(String value) {
561
-            addCriterion("stow_way like", value, "stowWay");
562
-            return (Criteria) this;
563
-        }
564
-
565
-        public Criteria andStowWayNotLike(String value) {
566
-            addCriterion("stow_way not like", value, "stowWay");
567
-            return (Criteria) this;
568
-        }
569
-
570
-        public Criteria andStowWayIn(List<String> values) {
571
-            addCriterion("stow_way in", values, "stowWay");
572
-            return (Criteria) this;
573
-        }
574
-
575
-        public Criteria andStowWayNotIn(List<String> values) {
576
-            addCriterion("stow_way not in", values, "stowWay");
577
-            return (Criteria) this;
578
-        }
579
-
580
-        public Criteria andStowWayBetween(String value1, String value2) {
581
-            addCriterion("stow_way between", value1, value2, "stowWay");
582
-            return (Criteria) this;
583
-        }
584
-
585
-        public Criteria andStowWayNotBetween(String value1, String value2) {
586
-            addCriterion("stow_way not between", value1, value2, "stowWay");
587
-            return (Criteria) this;
588
-        }
589
-
590 520
         public Criteria andEastIsNull() {
591 521
             addCriterion("east is null");
592 522
             return (Criteria) this;
@@ -1529,7 +1459,7 @@ public class TFumigationForrecordExample {
1529 1459
     }
1530 1460
 
1531 1461
     /**
1532
-     * t_fumigation_forrecord 2020-07-06
1462
+     * t_fumigation_forrecord 2020-08-11
1533 1463
      */
1534 1464
     public static class Criterion {
1535 1465
         private String condition;

+ 18 - 0
src/main/java/com/chinaitop/depot/fumigation/model/TFumigationPlan.java

@@ -22,6 +22,8 @@ public class TFumigationPlan {
22 22
 
23 23
     private String fumigationNum;
24 24
 
25
+    private String stowWay;
26
+
25 27
     private Integer oneMethods;
26 28
 
27 29
     private String oneDose;
@@ -261,6 +263,22 @@ public class TFumigationPlan {
261 263
     }
262 264
 
263 265
     /**
266
+     * 堆装方式
267
+     * @return stow_way 堆装方式
268
+     */
269
+    public String getStowWay() {
270
+        return stowWay;
271
+    }
272
+
273
+    /**
274
+     * 堆装方式
275
+     * @param stowWay 堆装方式
276
+     */
277
+    public void setStowWay(String stowWay) {
278
+        this.stowWay = stowWay == null ? null : stowWay.trim();
279
+    }
280
+
281
+    /**
264 282
      * 第一次熏蒸方法
265 283
      * @return one_methods 第一次熏蒸方法
266 284
      */

+ 72 - 2
src/main/java/com/chinaitop/depot/fumigation/model/TFumigationPlanExample.java

@@ -75,7 +75,7 @@ public class TFumigationPlanExample {
75 75
     }
76 76
 
77 77
     /**
78
-     * t_fumigation_plan 2020-08-05
78
+     * t_fumigation_plan 2020-08-11
79 79
      */
80 80
     protected abstract static class GeneratedCriteria {
81 81
         protected List<Criterion> criteria;
@@ -688,6 +688,76 @@ public class TFumigationPlanExample {
688 688
             return (Criteria) this;
689 689
         }
690 690
 
691
+        public Criteria andStowWayIsNull() {
692
+            addCriterion("stow_way is null");
693
+            return (Criteria) this;
694
+        }
695
+
696
+        public Criteria andStowWayIsNotNull() {
697
+            addCriterion("stow_way is not null");
698
+            return (Criteria) this;
699
+        }
700
+
701
+        public Criteria andStowWayEqualTo(String value) {
702
+            addCriterion("stow_way =", value, "stowWay");
703
+            return (Criteria) this;
704
+        }
705
+
706
+        public Criteria andStowWayNotEqualTo(String value) {
707
+            addCriterion("stow_way <>", value, "stowWay");
708
+            return (Criteria) this;
709
+        }
710
+
711
+        public Criteria andStowWayGreaterThan(String value) {
712
+            addCriterion("stow_way >", value, "stowWay");
713
+            return (Criteria) this;
714
+        }
715
+
716
+        public Criteria andStowWayGreaterThanOrEqualTo(String value) {
717
+            addCriterion("stow_way >=", value, "stowWay");
718
+            return (Criteria) this;
719
+        }
720
+
721
+        public Criteria andStowWayLessThan(String value) {
722
+            addCriterion("stow_way <", value, "stowWay");
723
+            return (Criteria) this;
724
+        }
725
+
726
+        public Criteria andStowWayLessThanOrEqualTo(String value) {
727
+            addCriterion("stow_way <=", value, "stowWay");
728
+            return (Criteria) this;
729
+        }
730
+
731
+        public Criteria andStowWayLike(String value) {
732
+            addCriterion("stow_way like", value, "stowWay");
733
+            return (Criteria) this;
734
+        }
735
+
736
+        public Criteria andStowWayNotLike(String value) {
737
+            addCriterion("stow_way not like", value, "stowWay");
738
+            return (Criteria) this;
739
+        }
740
+
741
+        public Criteria andStowWayIn(List<String> values) {
742
+            addCriterion("stow_way in", values, "stowWay");
743
+            return (Criteria) this;
744
+        }
745
+
746
+        public Criteria andStowWayNotIn(List<String> values) {
747
+            addCriterion("stow_way not in", values, "stowWay");
748
+            return (Criteria) this;
749
+        }
750
+
751
+        public Criteria andStowWayBetween(String value1, String value2) {
752
+            addCriterion("stow_way between", value1, value2, "stowWay");
753
+            return (Criteria) this;
754
+        }
755
+
756
+        public Criteria andStowWayNotBetween(String value1, String value2) {
757
+            addCriterion("stow_way not between", value1, value2, "stowWay");
758
+            return (Criteria) this;
759
+        }
760
+
691 761
         public Criteria andOneMethodsIsNull() {
692 762
             addCriterion("one_methods is null");
693 763
             return (Criteria) this;
@@ -3850,7 +3920,7 @@ public class TFumigationPlanExample {
3850 3920
     }
3851 3921
 
3852 3922
     /**
3853
-     * t_fumigation_plan 2020-08-05
3923
+     * t_fumigation_plan 2020-08-11
3854 3924
      */
3855 3925
     public static class Criterion {
3856 3926
         private String condition;