|
@@ -215,7 +215,16 @@ public class ProductOrderFacade extends ProductOrderServiceImpl {
|
|
|
*/
|
|
|
public WaitExamOrderCouDTO waitExamOrderCou() {
|
|
|
WaitExamOrderCouDTO waitExamOrderCouDTO = new WaitExamOrderCouDTO();
|
|
|
- waitExamOrderCouDTO.setCount(baseMapper.waitExamOrderCou());
|
|
|
+ RespDTO<List<User>> userInfiList = userServiceClient.getUserAllInfo();
|
|
|
+ if(userInfiList == null || !"0".equals(userInfiList.code) ) {
|
|
|
+ throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
+ "获取用户和机构信息失败");
|
|
|
+ }
|
|
|
+ List<Long> userIds =new ArrayList<>();
|
|
|
+ for (User user:userInfiList.data) {
|
|
|
+ userIds.add(user.getId());
|
|
|
+ }
|
|
|
+ waitExamOrderCouDTO.setCount(baseMapper.waitExamOrderCou(userIds));
|
|
|
return waitExamOrderCouDTO;
|
|
|
}
|
|
|
|