From b86b08b159221352751936c692581e9b4c83c535 Mon Sep 17 00:00:00 2001 From: zhaoqiaobo <583671871@qq.com> Date: Wed, 17 Jul 2024 15:28:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(all):=20=E4=BF=AE=E6=94=B9=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E5=8C=BA=E5=88=86=E8=B7=AF=E5=BE=84=E6=97=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=B7=AF=E5=BE=84=E4=B8=8D=E7=94=9F=E6=95=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/BasicdataPriceRouteServiceImpl.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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;