| | |
| | | @Override |
| | | public PageRespMp<Check> listCheckInfoRecords(Integer checkTaskId, Integer creatorId, PageReq pageReq) { |
| | | Page<Check> page = lambdaQuery().eq(Check::getCheckTaskId, checkTaskId).eq(Objects.nonNull(creatorId), Check::getCreatorId, creatorId) |
| | | .orderByDesc(Check::getCreateTime) |
| | | .page(new Page<>(pageReq.getPage(), pageReq.getSize())); |
| | | // 将 Spring Data Page 转换为自定义 PageResp |
| | | return PageRespMp.of(page); |
| | |
| | | if (Objects.isNull(client)) { |
| | | throw new RuntimeException("委托方不存在"); |
| | | } |
| | | //校验是否已检查 |
| | | Long count = lambdaQuery().eq(Check::getCheckTaskId, request.getCheckTaskIdId()).count(); |
| | | if (count > 0) { |
| | | throw new RuntimeException("已检查不可重复上传"); |
| | | } |
| | | // 1. 创建 Check 实体对象(MyBatis Plus 实体) |
| | | Check check = new Check(); |
| | | |