|
|
|
@ -603,21 +603,23 @@ public class TaskQuestServiceImpl extends BaseServiceImpl<TaskQuestMapper, TaskQ
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
boolean save = this.save(taskQuest); |
|
|
|
|
//存入子表
|
|
|
|
|
if (!taskQuest.getList().isEmpty()) { |
|
|
|
|
// List<TaskQuestChildEntity> list = taskQuest.getList();
|
|
|
|
|
// for (TaskQuestChildEntity taskQuestChildEntity : list) {
|
|
|
|
|
// taskQuestChildEntity.setWarehouseId(id);
|
|
|
|
|
// taskQuestChildEntity.setQuestId(taskQuest.getId());
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// taskQuestChildService.saveBatch(list);
|
|
|
|
|
// //添加包件信息
|
|
|
|
|
// List<Long> collect = list.stream().map(TaskQuestChildEntity::getRefId).collect(Collectors.toList());
|
|
|
|
|
// addQuestDetail(myCurrentWarehouse.getId(), collect, questNum, taskQuest.getId());
|
|
|
|
|
} else { |
|
|
|
|
addQuestDetail(myCurrentWarehouse.getId(), null, questNum, taskQuest.getId()); |
|
|
|
|
} |
|
|
|
|
// 存入子表 todo 暂时不要商场
|
|
|
|
|
// if (!taskQuest.getList().isEmpty()) {
|
|
|
|
|
//// List<TaskQuestChildEntity> list = taskQuest.getList();
|
|
|
|
|
//// for (TaskQuestChildEntity taskQuestChildEntity : list) {
|
|
|
|
|
//// taskQuestChildEntity.setWarehouseId(id);
|
|
|
|
|
//// taskQuestChildEntity.setQuestId(taskQuest.getId());
|
|
|
|
|
////
|
|
|
|
|
//// }
|
|
|
|
|
//// taskQuestChildService.saveBatch(list);
|
|
|
|
|
//// //添加包件信息
|
|
|
|
|
//// List<Long> collect = list.stream().map(TaskQuestChildEntity::getRefId).collect(Collectors.toList());
|
|
|
|
|
//// addQuestDetail(myCurrentWarehouse.getId(), collect, questNum, taskQuest.getId());
|
|
|
|
|
// } else {
|
|
|
|
|
// addQuestDetail(myCurrentWarehouse.getId(), null, questNum, taskQuest.getId());
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
addQuestDetail(myCurrentWarehouse.getId(), null, questNum, taskQuest.getId()); |
|
|
|
|
|
|
|
|
|
return save ? R.success("添加成功") : R.fail("添加失败"); |
|
|
|
|
} |
|
|
|
|