| | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.format.DateTimeParseException; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | @Service |
| | |
| | | if (queryDto.getAuditStatus() == null) { |
| | | queryDto.setAuditStatus(1); |
| | | } |
| | | if (queryDto.getReportType() == null) { |
| | | queryDto.setReportType(0); |
| | | } |
| | | return productionProductMainMapper.listProductionDetails(queryDto, page); |
| | | } |
| | | |
| | |
| | | ProductionAccountDto queryDto = normalizeDateQuery(dto); |
| | | LambdaQueryWrapper<ProductionProductMain> queryWrapper = Wrappers.<ProductionProductMain>lambdaQuery() |
| | | .eq(ProductionProductMain::getAuditStatus, 1) |
| | | .eq(ProductionProductMain::getReportType, 0); |
| | | .in(ProductionProductMain::getReportType, Arrays.asList(0, 1)); |
| | | if (queryDto.getSchedulingUserId() != null) { |
| | | queryWrapper.eq(ProductionProductMain::getUserId, queryDto.getSchedulingUserId()); |
| | | } |
| | |
| | | productionAccountDelete(productionProductMainId); |
| | | return Boolean.FALSE; |
| | | } |
| | | if (productionProductMain.getReportType() == null || productionProductMain.getReportType() != 0) { |
| | | if (productionProductMain.getReportType() == null |
| | | || (!Integer.valueOf(0).equals(productionProductMain.getReportType()) |
| | | && !Integer.valueOf(1).equals(productionProductMain.getReportType()))) { |
| | | productionAccountDelete(productionProductMainId); |
| | | return Boolean.FALSE; |
| | | } |