Commit 5433d55ab62d99a9e6a8382e043d347855f5b9b8

Authored by shiyang
1 parent a50f641bdf
Exists in master

his上传疾病,疾病映射BUG修复

Showing 1 changed file with 2 additions and 2 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsHisInfoServiceImpl.java View file @ 5433d55
... ... @@ -140,9 +140,9 @@
140 140 }
141 141 //如果有疾病在疾病库中不存在,则都不予上传,如果在映射库中存在可以上传
142 142 if(diagnoses.size()!=diagnoseIds.size()){
143   - if(diagnoses.size()==diagnoseOrmIds.size()){
  143 + if(diagnoses.size()==diagnoseOrmIds.size()+diagnoseIds.size()){
144 144 //去重赋值
145   - diagnoseIds=diagnoseOrmIds.stream().distinct().collect(Collectors.toList());
  145 + diagnoseIds.addAll(diagnoseOrmIds.stream().distinct().collect(Collectors.toList()));
146 146 }else {
147 147 return "疾病不存在,请在设置-字典管理中添加疾病或在疾病映射中添加映射关系。";
148 148 }