Commit 4d687eb62b48d6caa0a4299aa165eb402a3d88be
1 parent
57d95d36c4
Exists in
master
and in
1 other branch
科室管理-增加疾病名称
Showing 3 changed files with 15 additions and 0 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DepartController.java
View file @
4d687eb
... | ... | @@ -68,8 +68,10 @@ |
68 | 68 | iLst.forEach(i->{ |
69 | 69 | if(e.getIlls()==null){ |
70 | 70 | e.setIlls(""); |
71 | + e.setIllsName(""); | |
71 | 72 | } |
72 | 73 | e.setIlls(e.getIlls()+i.getIid()+","); |
74 | + e.setIllsName(e.getIllsName()+i.getIname()+","); | |
73 | 75 | }); |
74 | 76 | }); |
75 | 77 | } |
76 | 78 | |
... | ... | @@ -113,11 +115,16 @@ |
113 | 115 | if(depart.getIlls()!=null){ |
114 | 116 | iArr=depart.getIlls().split(","); |
115 | 117 | } |
118 | + String[] iArrName={}; | |
119 | + if(depart.getIllsName()!=null){ | |
120 | + iArrName=depart.getIllsName().split(","); | |
121 | + } | |
116 | 122 | |
117 | 123 | for (int i = 0; i < iArr.length; i++) { |
118 | 124 | LymsDepartill departill=new LymsDepartill(); |
119 | 125 | departill.setDid(depart.getDid()); |
120 | 126 | departill.setIid(Integer.parseInt(iArr[i])); |
127 | + departill.setIname(iArrName[i]); | |
121 | 128 | lymsDepartillService.save(departill); |
122 | 129 | } |
123 | 130 | //保存操作记录 |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/HdepartInfo.java
View file @
4d687eb
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsHdepart.java
View file @
4d687eb