| | |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.ZoneId; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public PageRespMp<Check> listCheckInfoRecords(Integer planId, Integer creatorId, PageReq pageReq) { |
| | | Page<Check> page = lambdaQuery().eq(Check::getPlanId, planId).eq(Objects.nonNull(creatorId), Check::getCreatorId, creatorId) |
| | | 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) |
| | | .page(new Page<>(pageReq.getPage(), pageReq.getSize())); |
| | | // 将 Spring Data Page 转换为自定义 PageResp |
| | | return PageRespMp.of(page); |
| | |
| | | check.setIntegrityNotification(request.getIntegrityNotification()); |
| | | |
| | | // 3. 设置关联字段 |
| | | check.setPlanId(request.getPlanId()); |
| | | check.setProjectId(request.getProjectId()); |
| | | check.setClientId(request.getClientId()); |
| | | check.setCheckTaskId(request.getCheckTaskIdId()); |
| | | |
| | | // 4. 设置创建者ID(MyBatis Plus 使用 creatorId 字段) |
| | | check.setCreatorId(creator.getId()); |