Commit 0f60cd5736183c03410804b6dd081706dc8f526e
1 parent
486b01c287
Exists in
master
and in
6 other branches
一贯制--团队管理非团队医生加当前团队医生
Showing 1 changed file with 11 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TeamServiceImpl.java
View file @
0f60cd5
| ... | ... | @@ -193,6 +193,17 @@ |
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | ids.removeAll(tIds); |
| 196 | + | |
| 197 | + //获取当前团队的医生ID | |
| 198 | + criteria.and("_id").is(teamId); | |
| 199 | + TeamModel curTeam=this.mongoTemplate.findOne(new Query(criteria),TeamModel.class); | |
| 200 | + | |
| 201 | + for (String tid : curTeam.getDoctorIdArr()) { | |
| 202 | + if (tid != null) { | |
| 203 | + ids.add(Integer.valueOf(tid)); | |
| 204 | + } | |
| 205 | + } | |
| 206 | + | |
| 196 | 207 | usersQuery.setIds(ids); |
| 197 | 208 | uLst=usersService.queryUsers(usersQuery); |
| 198 | 209 |