|
|
@ -20,6 +20,7 @@ import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper; |
|
|
|
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.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.logpm.basicdata.entity.BasicdataClientEntity; |
|
|
|
import com.logpm.basicdata.entity.BasicdataClientEntity; |
|
|
@ -96,7 +97,19 @@ public class BasicdataPriceRouteServiceImpl extends BaseServiceImpl<BasicdataPri |
|
|
|
route.setEndCityId(vo.getEndCityId()); |
|
|
|
route.setEndCityId(vo.getEndCityId()); |
|
|
|
route.setEndProvinceId(vo.getEndProvinceId()); |
|
|
|
route.setEndProvinceId(vo.getEndProvinceId()); |
|
|
|
route.setEndCountyId(vo.getEndCountyId()); |
|
|
|
route.setEndCountyId(vo.getEndCountyId()); |
|
|
|
this.saveOrUpdate(route); |
|
|
|
if(ObjectUtil.isEmpty(vo.getId())){ |
|
|
|
|
|
|
|
baseMapper.update(route,new UpdateWrapper<BasicdataPriceRouteEntity>().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<BasicdataPriceFullVehicleEntity> fullVehicleEntities = new ArrayList<>(); |
|
|
|
List<BasicdataPriceFullVehicleEntity> fullVehicleEntities = new ArrayList<>(); |
|
|
|
FullVehicleTypeEnums fullVehicleTypeEnums = null; |
|
|
|
FullVehicleTypeEnums fullVehicleTypeEnums = null; |
|
|
|
GeneralServiceTypeEnums generalServiceTypeEnums = null; |
|
|
|
GeneralServiceTypeEnums generalServiceTypeEnums = null; |
|
|
|