| | |
| | | |
| | | Integer roleType = user.getRoleType(); |
| | | if (roleType == 1) { |
| | | List<TCrmClinic> list = crmClinicService.list(); |
| | | List<TCrmClinic> list = crmClinicService.list(new LambdaQueryWrapper<TCrmClinic>().in(TCrmClinic::getStatus,Arrays.asList(3,4,5))); |
| | | if (!list.isEmpty()) { |
| | | |
| | | long branchCount = crmBranchService.count(); |
| | |
| | | if (query.getSalespersonId() != null && !query.getSalespersonId().isEmpty()) { |
| | | w.eq(TCrmClinic::getSalespersonId, query.getSalespersonId()); |
| | | } |
| | | w.in(TCrmClinic::getStatus,Arrays.asList(3,4,5)); |
| | | List<TCrmClinic> list = crmClinicService.list(w); |
| | | branchAdminStatisticsOneVo.setClinicNum(list.size()); |
| | | |