Browse Source

修改自动生成工单代码

tags/v1.0.0^2
chengwang 1 year ago
parent
commit
96a3d01f1f
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/workorder/generate/GenerateWorkorderByAutoService.java

+ 3
- 3
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/workorder/generate/GenerateWorkorderByAutoService.java View File

@@ -56,13 +56,13 @@ public class GenerateWorkorderByAutoService {
public JsonResult generate(Inspection inspection, List<InspectionFile> inspectionFileList) {
log.info("进入自动生成工单业务");

List<String> inspectionIdList = inspectionFileList.stream().map(o -> o.getInspectionId()).collect(Collectors.toList());
List<String> inspectionFileIdList = inspectionFileList.stream().map(o -> o.getId()).collect(Collectors.toList());

WorkOrder workOrder = this.insertWorkOrder(inspection);

this.insertWorkOrderFile(workOrder, inspectionIdList);
this.insertWorkOrderFile(workOrder, inspectionFileIdList);

this.updateInspectionFileStatus(inspectionIdList);
this.updateInspectionFileStatus(inspectionFileIdList);

return JsonResult.success();
}

Loading…
Cancel
Save