Commit 4d687eb62b48d6caa0a4299aa165eb402a3d88be

Authored by shiyang
1 parent 57d95d36c4
Exists in master and in 1 other branch dev

科室管理-增加疾病名称

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
... ... @@ -92,6 +92,11 @@
92 92 */
93 93 @TableField(exist = false)
94 94 private String ills;
  95 + /**
  96 + * 疾病name串
  97 + */
  98 + @TableField(exist = false)
  99 + private String illsName;
95 100  
96 101 @TableField(exist = false)
97 102 private static final long serialVersionUID = 1L;
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsHdepart.java View file @ 4d687eb
... ... @@ -96,6 +96,9 @@
96 96 private String ills;
97 97  
98 98 @TableField(exist = false)
  99 + private String illsName;
  100 +
  101 + @TableField(exist = false)
99 102 private static final long serialVersionUID = 1L;
100 103  
101 104 @Override