Commit a11f4a13d1babed387646130c62844b98a4969c6
1 parent
26b7a0fc09
Exists in
master
and in
1 other branch
update
Showing 2 changed files with 6 additions and 6 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java
View file @
a11f4a1
| ... | ... | @@ -147,10 +147,10 @@ |
| 147 | 147 | List<LymsPcase> pcaseList = lymsPcaseService.list(queryWrapper); |
| 148 | 148 | for (LymsPcase lymsPcase : pcaseList) { |
| 149 | 149 | QueryWrapper<LymsIllness> illnessQueryWrapper = new QueryWrapper<>(); |
| 150 | - queryWrapper.eq("pcid", lymsPcase.getPcid()); | |
| 150 | + illnessQueryWrapper.eq("pcid", lymsPcase.getPcid()); | |
| 151 | 151 | List<String> iids=Arrays.asList(illness.split(",")); |
| 152 | - queryWrapper.in("iid", iids); | |
| 153 | - queryWrapper.ge("createdtime", calendar.getTime()); | |
| 152 | + illnessQueryWrapper.in("iid", iids); | |
| 153 | + illnessQueryWrapper.ge("createdtime", calendar.getTime()); | |
| 154 | 154 | int count = lymsIllnessService.count(illnessQueryWrapper); |
| 155 | 155 | if (count != 0) { |
| 156 | 156 | baseResponse.setErrorcode(1); |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsHisInfoServiceImpl.java
View file @
a11f4a1
| ... | ... | @@ -149,9 +149,9 @@ |
| 149 | 149 | List<LymsPcase> pcaseList = lymsPcaseService.list(queryWrapper); |
| 150 | 150 | for (LymsPcase lymsPcase : pcaseList) { |
| 151 | 151 | QueryWrapper<LymsIllness> illnessQueryWrapper = new QueryWrapper<>(); |
| 152 | - queryWrapper.eq("pcid", lymsPcase.getPcid()); | |
| 153 | - queryWrapper.in("iid", diagnoseIds); | |
| 154 | - queryWrapper.ge("createdtime", calendar.getTime()); | |
| 152 | + illnessQueryWrapper.eq("pcid", lymsPcase.getPcid()); | |
| 153 | + illnessQueryWrapper.in("iid", diagnoseIds); | |
| 154 | + illnessQueryWrapper.ge("createdtime", calendar.getTime()); | |
| 155 | 155 | int count = lymsIllnessService.count(illnessQueryWrapper); |
| 156 | 156 | //如果今天有这个患者病例不用添加(这里防止同一天平台添加后。his有该患者病例。重复添加) |
| 157 | 157 | if (count != 0) { |