renyu %!s(int64=3) %!d(string=hai) anos
pai
achega
b2d388a2ac

+ 5 - 2
src/main/java/com/chinaitop/depot/fumigation/controller/FumigationProcessController.java

@@ -167,8 +167,11 @@ public class FumigationProcessController {
167 167
             modelMap.put("fumigationEdit",fumigationForrecord);//熏蒸方案数据
168 168
 
169 169
             Map<String, Object> pesticide = fumigationForRecordService.findYjxxById(tFumigationProcess.getRecordId());
170
-            modelMap.put("drugName",pesticide.get("drugname"));//获取药剂名称
171
-            modelMap.put("reagentType",pesticide.get("reagenttype"));//获取药剂剂型名称
170
+            if(pesticide!=null){
171
+                modelMap.put("drugName",pesticide.get("drugname"));//获取药剂名称
172
+                modelMap.put("reagentType",pesticide.get("reagenttype"));//获取药剂剂型名称
173
+            }
174
+
172 175
 
173 176
 //            List<TQtdevinfoValue> tQtdevinfoValue = gasDetectionService.getList("","","","'"+tFumigationProcess.getDcsqtinfoId()+"'");
174 177
 //            modelMap.put("tQtdevinfoEdit",tQtdevinfoValue);//气体数据

+ 4 - 3
src/main/java/com/chinaitop/depot/fumigation/mapper/TFumigationAfterMapper.xml

@@ -41,6 +41,7 @@
41 41
     <result column="pyswthhcs" property="pyswthhcs" jdbcType="INTEGER" />
42 42
     <result column="pysswthhcs" property="pysswthhcs" jdbcType="INTEGER" />
43 43
     <result column="xzxgpj" property="xzxgpj" jdbcType="VARCHAR" />
44
+    <result column="record_id" property="recordId" jdbcType="VARCHAR" />
44 45
   </resultMap>
45 46
   <sql id="Example_Where_Clause" >
46 47
     <where >
@@ -108,7 +109,7 @@
108 109
     sampling_culture_month_half, kill_insect_rate, check_insect_cage_time, insect_cage_kill_rate, 
109 110
     effect_analysis, creater, create_time, update_time, org_id, delete_state, updatetime, 
110 111
     czsjzysj, czsjzyrs, czsjff, czsjzypzr, czclcs, czclzyrs, czclpzr, xzhhcjcqk, xzhckmd, 
111
-    pyswthhcs, pysswthhcs, xzxgpj
112
+    pyswthhcs, pysswthhcs, xzxgpj,record_id
112 113
   </sql>
113 114
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.fumigation.model.TFumigationAfterExample" >
114 115
     select
@@ -156,7 +157,7 @@
156 157
       czsjzyrs, czsjff, czsjzypzr, 
157 158
       czclcs, czclzyrs, czclpzr, 
158 159
       xzhhcjcqk, xzhckmd, pyswthhcs, 
159
-      pysswthhcs, xzxgpj)
160
+      pysswthhcs, xzxgpj,record_id)
160 161
     values (#{id,jdbcType=VARCHAR}, #{houseId,jdbcType=INTEGER}, #{fumigationId,jdbcType=VARCHAR}, 
161 162
       #{residueCollectionTime,jdbcType=VARCHAR}, #{numberOperationsCollected,jdbcType=VARCHAR}, 
162 163
       #{residueCollectionMethod,jdbcType=VARCHAR}, #{collectJobApprover,jdbcType=VARCHAR}, 
@@ -172,7 +173,7 @@
172 173
       #{czsjzyrs,jdbcType=INTEGER}, #{czsjff,jdbcType=VARCHAR}, #{czsjzypzr,jdbcType=VARCHAR}, 
173 174
       #{czclcs,jdbcType=VARCHAR}, #{czclzyrs,jdbcType=INTEGER}, #{czclpzr,jdbcType=VARCHAR}, 
174 175
       #{xzhhcjcqk,jdbcType=VARCHAR}, #{xzhckmd,jdbcType=INTEGER}, #{pyswthhcs,jdbcType=INTEGER}, 
175
-      #{pysswthhcs,jdbcType=INTEGER}, #{xzxgpj,jdbcType=VARCHAR})
176
+      #{pysswthhcs,jdbcType=INTEGER}, #{xzxgpj,jdbcType=VARCHAR},#{recordId,jdbcType=VARCHAR})
176 177
   </insert>
177 178
   <insert id="insertSelective" parameterType="com.chinaitop.depot.fumigation.model.TFumigationAfter" >
178 179
     insert into t_fumigation_after

+ 3 - 2
src/main/java/com/chinaitop/depot/fumigation/mapper/TFumigationProcessMapper.xml

@@ -86,6 +86,7 @@
86 86
     <result column="sqpzr" property="sqpzr" jdbcType="VARCHAR" />
87 87
     <result column="sqcsts" property="sqcsts" jdbcType="INTEGER" />
88 88
     <result column="sqjsslhqnd" property="sqjsslhqnd" jdbcType="DECIMAL" />
89
+    <result column="record_id" property="recordId" jdbcType="VARCHAR" />
89 90
   </resultMap>
90 91
   <sql id="Example_Where_Clause" >
91 92
     <where >
@@ -161,7 +162,7 @@
161 162
     perforated_end, bulk_gas_type, drug_residue_rate, perforated_approver, dcsqtinfo_id, 
162 163
     task_state, task_end_time, creater, create_time, update_time, org_id, delete_state, 
163 164
     data_source, updatetime, yqbjyaqjc, byqcnlhqnd, mbnd, jsbyl, byzypzr, fznd, mbndwcts, 
164
-    lswzjc, lqbwcqdbjcs, mbsj, ctz, sqqlhqnd, sqpzr, sqcsts, sqjsslhqnd
165
+    lswzjc, lqbwcqdbjcs, mbsj, ctz, sqqlhqnd, sqpzr, sqcsts, sqjsslhqnd,record_id
165 166
   </sql>
166 167
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.fumigation.model.TFumigationProcessExample" >
167 168
     select
@@ -1482,7 +1483,7 @@
1482 1483
     record.house_id houseId,
1483 1484
     record.lspz grainKind,
1484 1485
     record.yjmc drugName,
1485
-    record.cgxzfs fumigationType,
1486
+    record.xzfs fumigationType,
1486 1487
     record.creater,
1487 1488
     pro.task_end_time taskEndTime
1488 1489
     FROM

+ 1 - 1
src/main/java/com/chinaitop/depot/fumigation/service/FumigationProcessService.java

@@ -23,6 +23,6 @@ public interface FumigationProcessService {
23 23
 
24 24
     void updateByExample(TFumigationProcess tFumigationProcess, TFumigationProcessExample example);
25 25
 
26
-    //根据熏蒸案id查询熏蒸作业过程数据
26
+    //根据熏蒸案id查询熏蒸作业过程数据
27 27
     List<TFumigationProcess> getDataByFumId(TFumigationProcessExample example);
28 28
 }