renyu пре 3 година
родитељ
комит
e9f30ac39a

+ 28 - 0
src/main/java/com/chinaitop/depot/fumigation/controller/FumigationForRecordController.java

@@ -52,6 +52,7 @@ public class FumigationForRecordController {
52 52
     @Resource
53 53
     private PesticidePlanService pesticidePlanService;
54 54
 
55
+
55 56
     // 获取ip地址
56 57
     @Value("${reportUrl}")
57 58
     private String reportPath;
@@ -591,6 +592,33 @@ public class FumigationForRecordController {
591 592
                 fumigationForrecord.setZyhc(zyhc);
592 593
                 fumigationForrecord.setCkmd(ckmd);
593 594
             }
595
+            List<Map<String,String>> person  =  (List<Map<String,String>>)detail.get("fumigationPersonnelList");
596
+            if(!CollectionUtils.isEmpty(person)){
597
+                for (Map<String, String> stringObjectMap : person) {
598
+                    TFumigationPersonnel personnel = new TFumigationPersonnel();
599
+                    personnel.setDeleteState("1");//默认设置删除标志
600
+                    personnel.setCreateTime(new Date());//创建时间
601
+                    personnel.setId(ParameterUtil.getCode());
602
+                    personnel.setForrecordId(uuid);
603
+                    personnel.setOrgId(orgId);
604
+                    fumigationFroRecordService.addPersonnel(personnel);
605
+                    if(stringObjectMap.get("personnelName") !=null){
606
+                        personnel.setPersonnelName(stringObjectMap.get("personnelName"));
607
+                    }
608
+                    if(stringObjectMap.get("professionalQualification") !=null){
609
+                        personnel.setProfessionalQualification(stringObjectMap.get("professionalQualification"));
610
+                    }
611
+                    if(stringObjectMap.get("physicalCondition") !=null){
612
+                        personnel.setPhysicalCondition(stringObjectMap.get("physicalCondition"));
613
+                    }
614
+                    if(stringObjectMap.get("workTask") !=null){
615
+                        personnel.setWorkTask(stringObjectMap.get("workTask"));
616
+                    }
617
+                    if(stringObjectMap.get("outside") !=null){
618
+                        personnel.setOutside(stringObjectMap.get("outside"));
619
+                    }
620
+                }
621
+            }
594 622
             fumigationForrecord.setCfdm(cfdm);
595 623
             fumigationForrecord.setCfmc(cfmc);
596 624
             fumigationForrecord.setHouseId(houseId);