pdi工单关闭修改

This commit is contained in:
yf001217 2026-06-15 21:30:19 +08:00
parent 9250322266
commit 3b3f37703b
1 changed files with 0 additions and 18 deletions

View File

@ -70,9 +70,6 @@ public class QmsIssueTicketControllerService {
@Resource
private IQmsPdiInspectionResultsService pdiInspectionResultsService;
@Resource
private IQmsPdiInspectionResultsLoadingImageService pdiInspectionResultsLoadingImageService;
@Resource
private IQmsPdiDetectionRulesStatusItemService pdiStatusItemService;
@ -3564,21 +3561,6 @@ public class QmsIssueTicketControllerService {
pdiInspectionResultsService.saveBatch(newResults);
}
// 4. 复制装车前图片
List<QmsPdiInspectionResultsLoadingImage> oldImages = pdiInspectionResultsLoadingImageService.lambdaQuery()
.eq(QmsPdiInspectionResultsLoadingImage::getTaskId, originalTaskId)
.list();
if (!oldImages.isEmpty()) {
List<QmsPdiInspectionResultsLoadingImage> newImages = new ArrayList<>();
for (QmsPdiInspectionResultsLoadingImage old : oldImages) {
QmsPdiInspectionResultsLoadingImage newImage = new QmsPdiInspectionResultsLoadingImage()
.setTaskId(newTask.getId())
.setLoadingImage(old.getLoadingImage());
newImages.add(newImage);
}
pdiInspectionResultsLoadingImageService.saveBatch(newImages);
}
return originalTask;
}
}