pdi工单关闭修改
This commit is contained in:
parent
9250322266
commit
3b3f37703b
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue