Browse Source

修复 task id为空

master
wangxiang 3 years ago
parent
commit
837ebd26ac
  1. 2
      kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/service/impl/MapLogisticServiceImpl.java

2
kicc-platform/kicc-platform-biz/kicc-common-biz/src/main/java/com/cloud/kicc/commonbiz/service/impl/MapLogisticServiceImpl.java

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

Loading…
Cancel
Save