| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ycl.platform.domain.dto.ReportImportDTO; |
| | | import com.ycl.platform.domain.entity.*; |
| | |
| | | } |
| | | return Result.ok("操作成功"); |
| | | } |
| | | |
| | | @Override |
| | | public Result getListByGb(String gb) { |
| | | List<ReportVO> list = baseMapper.getListByGb(gb); |
| | | for (ReportVO report : list) { |
| | | List<ReportErrorType> errors = new LambdaQueryChainWrapper<>(reportErrorTypeService.getBaseMapper()) |
| | | .eq(ReportErrorType::getReportId, report.getId()) |
| | | .orderByDesc(ReportErrorType::getCreateTime) |
| | | .list(); |
| | | String err = errors.stream().map(ReportErrorType::getErrorType).collect(Collectors.joining(",")); |
| | | report.setErrorType(err); |
| | | } |
| | | return Result.ok().data(list); |
| | | } |
| | | } |