Commit df001815ed5bf1808720a64224cf1f16be32048a

Authored by changpengfei
1 parent 0f60cd5736

一贯制--团队管理非团队医生加当前团队医生,如果不传团队ID

Showing 1 changed file with 6 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TeamServiceImpl.java View file @ df00181
... ... @@ -198,11 +198,14 @@
198 198 criteria.and("_id").is(teamId);
199 199 TeamModel curTeam=this.mongoTemplate.findOne(new Query(criteria),TeamModel.class);
200 200  
201   - for (String tid : curTeam.getDoctorIdArr()) {
202   - if (tid != null) {
203   - ids.add(Integer.valueOf(tid));
  201 + if (curTeam != null) {
  202 + for (String tid : curTeam.getDoctorIdArr()) {
  203 + if (tid != null) {
  204 + ids.add(Integer.valueOf(tid));
  205 + }
204 206 }
205 207 }
  208 +
206 209  
207 210 usersQuery.setIds(ids);
208 211 uLst=usersService.queryUsers(usersQuery);