| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<MdcProcessCountDto> pageList(String userId, Page<MdcProcessCountDto> page, MdcProcessCountVo mdcProcessCountVo, HttpServletRequest req) { |
| | | public List<MdcProcessCountDto> pageList(String userId, MdcProcessCountVo mdcProcessCountVo, HttpServletRequest req) { |
| | | List<String> equipmentIds = new ArrayList<>(); |
| | | if (StringUtils.isNotEmpty(mdcProcessCountVo.getParentId()) && StringUtils.isEmpty(mdcProcessCountVo.getEquipmentId())) { |
| | | if ("2".equals(mdcProcessCountVo.getTypeTree())) { |
| | |
| | | if (mdcProcessCountVo.getMdcSectionIds() == null || mdcProcessCountVo.getMdcSectionIds().isEmpty()) { |
| | | return null; |
| | | } |
| | | return this.baseMapper.pageList(page, mdcProcessCountVo); |
| | | return this.baseMapper.pageList(mdcProcessCountVo); |
| | | } |
| | | |
| | | @Override |
| | |
| | | return result == null ? BigDecimal.ZERO : result; |
| | | } |
| | | |
| | | @Override |
| | | public BigDecimal findCount(String equipmentId, String validDate) { |
| | | BigDecimal result = this.baseMapper.findCount(equipmentId, validDate.replaceAll("-", "")); |
| | | return result == null ? BigDecimal.ZERO : result; |
| | | } |
| | | |
| | | @Transactional(readOnly = true) |
| | | List<MdcProcessCount> processCount(MdcEquipment mdcEquipment) { |
| | | Date initDate = null; |