| | |
| | | import com.ycl.system.page.PageUtil; |
| | | import com.ycl.utils.DateUtils; |
| | | import com.ycl.utils.SecurityUtils; |
| | | import enumeration.ErrorType; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | if(query.getEnd()!=null) { |
| | | query.setEnd(DateUtils.getDayEnd(query.getEnd())); |
| | | } |
| | | if (query.getErrorType() != null) { |
| | | List<String> errorTypeList = new ArrayList<>(); |
| | | errorTypeList.add(query.getErrorType()); |
| | | if (ErrorType.ABNORMAL_PIC.getValue().equals(query.getErrorType())) { |
| | | //List添加之前几种工单类型 |
| | | errorTypeList.add(ErrorType.SIGNAL_LOSS.getValue()); |
| | | errorTypeList.add(ErrorType.SCREEN_COLOR_DEVIATION.getValue()); |
| | | errorTypeList.add(ErrorType.SNOW_STORM.getValue()); |
| | | errorTypeList.add(ErrorType.STRIPE_INTERFERENCE.getValue()); |
| | | errorTypeList.add(ErrorType.SCREEN_OCCLUSION.getValue()); |
| | | errorTypeList.add(ErrorType.ABNORMAL_CLARITY.getValue()); |
| | | } |
| | | query.setErrorTypeList(errorTypeList); |
| | | } |
| | | List<YwUnit> ywUnits = baseMapper.selectList(null); |
| | | List<YwUnitVO> lists = ywUnits.stream().map(item -> { |
| | | YwUnitVO vo = new YwUnitVO(); |