Commit 486b01c28731c5c59521a55156d9d061ff0d32c0
1 parent
17fe7bf650
Exists in
master
and in
6 other branches
一贯制--团队管理添加时候去掉医生null
Showing 1 changed file with 8 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TeamServiceImpl.java
View file @
486b01c
... | ... | @@ -105,6 +105,14 @@ |
105 | 105 | TeamModel teamModel=new TeamModel(); |
106 | 106 | BeanUtils.copyProperties(teamReq,teamModel); |
107 | 107 | teamModel.setCreated(new Date()); |
108 | + List<String> doctorIdArr=teamModel.getDoctorIdArr(); | |
109 | + teamModel.getDoctorIdArr().clear(); | |
110 | + for (String dId : doctorIdArr) { | |
111 | + if(null!=dId){ | |
112 | + teamModel.getDoctorIdArr().add(dId); | |
113 | + } | |
114 | + } | |
115 | + | |
108 | 116 | this.mongoTemplate.save(teamModel); |
109 | 117 | return new BaseObjectResponse() |
110 | 118 | .setErrormsg("成功").setErrorcode(ErrorCodeConstants.SUCCESS); |