diff --git a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceRouteServiceImpl.java b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceRouteServiceImpl.java index 4bacbfd67..d66ab63fc 100644 --- a/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceRouteServiceImpl.java +++ b/blade-service/logpm-basicdata/src/main/java/com/logpm/basicdata/service/impl/BasicdataPriceRouteServiceImpl.java @@ -20,6 +20,7 @@ import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.util.ObjectUtil; import com.baomidou.mybatisplus.core.conditions.Wrapper; +import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.logpm.basicdata.entity.BasicdataClientEntity; @@ -96,7 +97,19 @@ public class BasicdataPriceRouteServiceImpl extends BaseServiceImpl().lambda() + .eq(BasicdataPriceRouteEntity::getId, route.getId()) + .set(BasicdataPriceRouteEntity::getStartProvinceId, route.getStartProvinceId()) + .set(BasicdataPriceRouteEntity::getStartCityId, route.getStartCityId()) + .set(BasicdataPriceRouteEntity::getStartProvinceId, route.getStartProvinceId()) + .set(BasicdataPriceRouteEntity::getEndProvinceId, route.getEndProvinceId()) + .set(BasicdataPriceRouteEntity::getEndCityId, route.getEndCityId()) + .set(BasicdataPriceRouteEntity::getEndCountyId, route.getEndCountyId()) + ); + }else{ + this.saveOrUpdate(route); + } List fullVehicleEntities = new ArrayList<>(); FullVehicleTypeEnums fullVehicleTypeEnums = null; GeneralServiceTypeEnums generalServiceTypeEnums = null;