| | |
| | | SysUser user = tokenService.getLoginUser().getUser(); |
| | | Integer roleType = user.getRoleType(); |
| | | if (roleType == 3) { |
| | | TCrmSalesperson one = crmSalespersonService.getOne(new LambdaQueryWrapper<TCrmSalesperson>().eq(TCrmSalesperson::getUserId, user.getUserId())); |
| | | LambdaQueryWrapper<TCrmClinic> eq = Wrappers.lambdaQuery(TCrmClinic.class); |
| | | eq.eq(TCrmClinic::getSalespersonId, user.getUserId()); |
| | | eq.eq(TCrmClinic::getSalespersonId, one.getId()); |
| | | eq.in(TCrmClinic::getStatus, Arrays.asList(3, 4, 5)); |
| | | |
| | | List<TCrmClinic> list = crmClinicService.list(eq); |
| | |
| | | SimpleDateFormat formatMonth = new SimpleDateFormat("yyyy-MM"); |
| | | Integer roleType = user.getRoleType(); |
| | | if (roleType == 3) { |
| | | TCrmSalesperson one = crmSalespersonService.getOne(new LambdaQueryWrapper<TCrmSalesperson>().eq(TCrmSalesperson::getUserId, user.getUserId())); |
| | | LambdaQueryWrapper<TCrmClinic> eq = Wrappers.lambdaQuery(TCrmClinic.class); |
| | | eq.eq(TCrmClinic::getSalespersonId, user.getUserId()); |
| | | eq.eq(TCrmClinic::getSalespersonId,one.getId()); |
| | | eq.in(TCrmClinic::getStatus, Arrays.asList(3, 4, 5)); |
| | | List<TCrmClinic> list = crmClinicService.list(eq); |
| | | |