| | |
| | | |
| | | //在园长期相关方人数 |
| | | pcWorkPlatformDataVO.setInParkLwUserNum( |
| | | retentionList.stream().filter(i->Constants.equalsInteger(i.getCompanyType(),Constants.ONE)).count() |
| | | retentionList.stream().filter(i->Constants.equalsInteger(i.getType(),Constants.TWO) && Constants.equalsInteger(i.getCompanyType(),Constants.ZERO)).count() |
| | | ); |
| | | pcWorkPlatformDataVO.setLwUserInNum(Constants.ZERO); |
| | | pcWorkPlatformDataVO.setLwUserOutNum(Constants.ZERO); |
| | |
| | | pcWorkPlatformDataVO.setWeekVisitList(weekVisitList ); |
| | | pcWorkPlatformDataVO.setWeekCarList(weekCarList); |
| | | |
| | | // List<Retention> retentionList = retentionMapper.selectJoinList(Retention.class, |
| | | // new MPJLambdaWrapper<Retention>() |
| | | // .selectAll(Retention.class) |
| | | // .selectAs(Company::getType,Retention::getCompanyType) |
| | | // .selectAs(Company::getName,Retention::getCompanyName) |
| | | // .leftJoin(Company.class,Company::getId,Retention::getCompanyId) |
| | | // .eq(Company::getType,Constants.ZERO) |
| | | // .groupBy(Company::getId,Company::getName) |
| | | // .orderByDesc(Retention::getNum) |
| | | // ); |
| | | |
| | | List<Company> companyList = companyMapper.selectList(new QueryWrapper<Company>().lambda() |
| | | .eq(Company::getType,Constants.ZERO) |
| | | .eq(Company::getIsdeleted,Constants.ZERO) |
| | |
| | | List<Notices> noticesList = noticesJoinMapper.selectList(queryWrapper); |
| | | pcWorkPlatformDataVO.setNoticesList(noticesList); |
| | | pcWorkPlatformDataVO.setNoticesNum(noticesList.size()); |
| | | if(noticesList.size() > 5 ){ |
| | | pcWorkPlatformDataVO.setNoticesList(noticesList.subList(0,5)); |
| | | }else{ |
| | | pcWorkPlatformDataVO.setNoticesList(noticesList); |
| | | } |
| | | }else{ |
| | | String code= systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.TIMEOUT_WARNING).getCode(); |
| | | MPJLambdaWrapper<Visits> queryWrapper = new MPJLambdaWrapper<>(); |
| | |
| | | } |
| | | }); |
| | | } |
| | | pcWorkPlatformDataVO.setTimeOutVisitList(result); |
| | | pcWorkPlatformDataVO.setTimeOutVisitNum(result.size()); |
| | | if(result.size() > 3 ){ |
| | | pcWorkPlatformDataVO.setTimeOutVisitList(result.subList(0,3)); |
| | | }else{ |
| | | pcWorkPlatformDataVO.setTimeOutVisitList(result); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | |