Commit 4e13212e51fd48cb66d5d2d6f9bcd3c47c4be6f2
1 parent
cd492f4ba7
Exists in
master
病例字段修改
Showing 1 changed file with 8 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
4e13212
... | ... | @@ -106,6 +106,7 @@ |
106 | 106 | log.info(patient); |
107 | 107 | log.info(pcase); |
108 | 108 | |
109 | + Map param=new HashMap(); | |
109 | 110 | |
110 | 111 | for (int i = 0; i < iArr.length; i++) { |
111 | 112 | LymsIllness ness=new LymsIllness(); |
... | ... | @@ -113,6 +114,13 @@ |
113 | 114 | ness.setPcid(pcase.getPcid()); |
114 | 115 | ness.setIid(Integer.parseInt(iArr[i])); |
115 | 116 | ness.setCreatedtime(new Date()); |
117 | + param.clear(); | |
118 | + param.put("pcid",pcase.getPcid()); | |
119 | + param.put("iid",iArr[i]); | |
120 | + List<LymsIllness> iLst=lymsIllnessService.listByMap(param); | |
121 | + if(iLst.size()>0){ | |
122 | + ness.setId(iLst.get(0).getId()); | |
123 | + } | |
116 | 124 | f=lymsIllnessService.saveOrUpdate(ness); |
117 | 125 | log.info(ness); |
118 | 126 | } |