Commit 1fce00101e12d1f475ab02f3224a24596caba637
1 parent
284d4a2a52
Exists in
master
and in
6 other branches
一贯制--团队管理非团队医生bug
Showing 1 changed file with 5 additions and 1 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/TeamServiceImpl.java
View file @
1fce001
| ... | ... | @@ -158,7 +158,11 @@ |
| 158 | 158 | */ |
| 159 | 159 | @Override |
| 160 | 160 | public BaseResponse teamNonDocList(String teamId, String hospitalId) { |
| 161 | - List<TeamModel> tLst=this.mongoTemplate.find(new Query(Criteria.where("hospitalId").is(hospitalId)),TeamModel.class); | |
| 161 | + Criteria criteria=new Criteria(); | |
| 162 | + if(StringUtils.isNotEmpty(hospitalId)){ | |
| 163 | + criteria.and("hospitalId").is(hospitalId); | |
| 164 | + } | |
| 165 | + List<TeamModel> tLst=this.mongoTemplate.find(new Query(criteria),TeamModel.class); | |
| 162 | 166 | UsersQuery usersQuery = new UsersQuery(); |
| 163 | 167 | List<Integer> ids=new ArrayList<>(); |
| 164 | 168 | List<Integer> tIds=new ArrayList<>(); |