Commit 25b60eef authored by wdy's avatar wdy

获取任务与样品关系

parent 3ec6dbd2
......@@ -147,33 +147,11 @@ public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task>implements Tas
// 构建并保存该任务所关联的审核组信息
saveUserRelation(auditors,task);
// for(TaskUserRelation auditor : auditors) {
// auditor.setTaskId(task.getId());
// }
//
// taskUserRelationService.saveBatch(auditors);
// 保存关联的整车样品信息和零部件样品信息
List<TaskSampleRelation> relations = request.getSample();
List<TaskSampleRelation> partRelations = request.getPartSample();
saveSampleRelation(relations,partRelations,task);
// if (relations.size() != 0 && relations != null) {
// for (TaskSampleRelation sampleRelation : relations) {
// sampleRelation.setTaskId(task.getId());
// }
//
// taskSampleRelationService.saveBatch(relations);
// }
//
// // 保存关联的零部件样品信息
//
// if (partRelations.size() != 0 && partRelations != null) {
// for (TaskSampleRelation sampleRelation : partRelations) {
// sampleRelation.setTaskId(task.getId());
// }
//
// taskSampleRelationService.saveBatch(partRelations);
// }
taskStateFacade.doCreate(task, request.getTaskList());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment