|
|
@ -43,6 +43,7 @@ public class MapLogisticServiceImpl extends ServiceImpl<MapLogisticMapper, MapLo |
|
|
|
super.save(mapLogistic); |
|
|
|
super.save(mapLogistic); |
|
|
|
mapLogistic.getMapTask().forEach(mapTask -> { |
|
|
|
mapLogistic.getMapTask().forEach(mapTask -> { |
|
|
|
mapTask.setMapLogisticId(mapLogistic.getId()); |
|
|
|
mapTask.setMapLogisticId(mapLogistic.getId()); |
|
|
|
|
|
|
|
iMapTaskService.save(mapTask); |
|
|
|
// 匹配查找跟地图任务关联的地图标记点数据,不需要包含其他收养样员的交接任务标记点,他们已经与自己的任务进行了id绑定
|
|
|
|
// 匹配查找跟地图任务关联的地图标记点数据,不需要包含其他收养样员的交接任务标记点,他们已经与自己的任务进行了id绑定
|
|
|
|
mapLogistic.getMapLogisticPoint().stream() |
|
|
|
mapLogistic.getMapLogisticPoint().stream() |
|
|
|
.filter(item -> item.getKey().equals(mapTask.getKey())).forEach(item -> item.setMapTaskId(mapTask.getId())); |
|
|
|
.filter(item -> item.getKey().equals(mapTask.getKey())).forEach(item -> item.setMapTaskId(mapTask.getId())); |
|
|
@ -55,7 +56,6 @@ public class MapLogisticServiceImpl extends ServiceImpl<MapLogisticMapper, MapLo |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
mapLogistic.getMapLogisticPoint().forEach(item -> item.setMapLogisticId(mapLogistic.getId())); |
|
|
|
mapLogistic.getMapLogisticPoint().forEach(item -> item.setMapLogisticId(mapLogistic.getId())); |
|
|
|
iMapTaskService.saveBatch(mapLogistic.getMapTask()); |
|
|
|
|
|
|
|
iMapLogisticPointService.saveBatch(mapLogistic.getMapLogisticPoint()); |
|
|
|
iMapLogisticPointService.saveBatch(mapLogistic.getMapLogisticPoint()); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|