| | |
| | | public Result shiftEfficiencyList(MdcEfficiencyReportQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcEfficiencyVo result = mdcEfficiencyReportService.efficiencyList(userId, vo); |
| | | MdcEfficiencyVo result = mdcEfficiencyReportService.shiftEfficiencyList(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | MdcEfficiencyVo efficiencyList(String userId, MdcEfficiencyReportQueryVo vo); |
| | | |
| | | /** |
| | | * 班次利用率报表 |
| | | * |
| | | * @param userId |
| | | * @param vo |
| | | * @return |
| | | */ |
| | | MdcEfficiencyVo shiftEfficiencyList(String userId, MdcEfficiencyReportQueryVo vo); |
| | | } |
| | |
| | | equipmentIds = mdcEquipmentService.getEquipmentIdsProduction(userId, null); |
| | | } |
| | | } |
| | | mdcDeviceCalendarQueryVo.setEquipmentIdList(equipmentIds); |
| | | if (mdcDeviceCalendarQueryVo.getEquipmentIdList().isEmpty()) { |
| | | mdcDeviceCalendarQueryVo.setEquipmentIdList(equipmentIds); |
| | | } |
| | | |
| | | return this.baseMapper.pageList(pageData, mdcDeviceCalendarQueryVo); |
| | | } |
| | |
| | | equipmentIds = mdcEquipmentService.getEquipmentIdsProduction(userId, null); |
| | | } |
| | | } |
| | | vo.setEquipmentIdList(equipmentIds); |
| | | if (vo.getEquipmentIdList().isEmpty()) { |
| | | vo.setEquipmentIdList(equipmentIds); |
| | | } |
| | | |
| | | // 查询利用率数据 |
| | | List<MdcEfficiencyDto> efficiencyList = mdcEfficiencyReportMapper.efficiencyList(vo); |
| | |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public MdcEfficiencyVo shiftEfficiencyList(String userId, MdcEfficiencyReportQueryVo vo) { |
| | | return null; |
| | | } |
| | | |
| | | private MdcEfficiencyResultDto efficiencyRate(List<MdcEfficiencyDto> efficiencyList, String date, MdcEquipment mdcEquipment, List<MdcUtilizationRate> mdcUtilizationRateList) { |
| | | MdcEfficiencyResultDto mdcEfficiencyResultDto = new MdcEfficiencyResultDto(); |
| | | if (efficiencyList != null && !efficiencyList.isEmpty()) { |
| | |
| | | equipmentIds = mdcEquipmentService.getEquipmentIdsProduction(userId, null); |
| | | } |
| | | } |
| | | repair.setMdcSectionIds(equipmentIds); |
| | | |
| | | if (repair.getMdcSectionIds().isEmpty()) { |
| | | repair.setMdcSectionIds(equipmentIds); |
| | | } |
| | | |
| | | return this.baseMapper.pageList(page, repair); |
| | | } |
| | | |
| | |
| | | */ |
| | | private List<MdcEfficiencyListDto> mdcEfficiencyList; |
| | | |
| | | // /** |
| | | // * 利用率数据 |
| | | // */ |
| | | // private List<MdcEfficiencyDto> list; |
| | | |
| | | private List<String> dates; |
| | | } |