@ -1,6 +1,7 @@
@@ -1,6 +1,7 @@
package com.cloud.kicc.commonbiz.service.impl ;
import cn.hutool.core.util.ObjectUtil ;
import cn.hutool.core.util.StrUtil ;
import com.baomidou.mybatisplus.core.toolkit.Wrappers ;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl ;
import com.cloud.kicc.commonbiz.api.entity.MapLogistic ;
@ -46,7 +47,7 @@ public class MapLogisticServiceImpl extends ServiceImpl<MapLogisticMapper, MapLo
@@ -46,7 +47,7 @@ public class MapLogisticServiceImpl extends ServiceImpl<MapLogisticMapper, MapLo
iMapTaskService . save ( mapTask ) ;
// 匹配查找跟地图任务关联的地图标记点数据,不需要包含其他收养样员的交接任务标记点,他们已经与自己的任务进行了id绑定
mapLogistic . getMapLogisticPoint ( ) . stream ( )
. filter ( item - > item . getKey ( ) . equals ( mapTask . getKey ( ) ) ) . forEach ( item - > item . setMapTaskId ( mapTask . getId ( ) ) ) ;
. filter ( item - > StrUtil . equals ( item . getKey ( ) , mapTask . getKey ( ) ) ) . forEach ( item - > item . setMapTaskId ( mapTask . getId ( ) ) ) ;
if ( ObjectUtil . isNotEmpty ( mapTask . getMapTaskPreset ( ) ) ) {
mapTask . getMapTaskPreset ( ) . forEach ( mapTaskPreset - > {
mapTaskPreset . setMapLogisticId ( mapLogistic . getId ( ) ) ;