|
|
|
@ -160,6 +160,7 @@ public class BasicdataPriceTemplateServiceImpl extends BaseServiceImpl<Basicdata
|
|
|
|
|
if (ObjectUtil.isEmpty(warehousePricingType)) { |
|
|
|
|
throw new ServiceException("请选择仓储计价方式"); |
|
|
|
|
} |
|
|
|
|
priceTemplateEntity.setWarehouseIsAddFee(basicdataPriceTemplate.getWarehouseIsAddFee()); |
|
|
|
|
priceTemplateEntity.setWarehousePricingType(basicdataPriceTemplate.getWarehousePricingType()); |
|
|
|
|
priceTemplateEntity.setWarehousePricingMode(basicdataPriceTemplate.getWarehousePricingMode()); |
|
|
|
|
priceTemplateEntity.setWarehouseCalculationBasis(basicdataPriceTemplate.getWarehouseCalculationBasis()); |
|
|
|
@ -177,6 +178,7 @@ public class BasicdataPriceTemplateServiceImpl extends BaseServiceImpl<Basicdata
|
|
|
|
|
if (StrUtil.isEmpty(dispatchPricingType)) { |
|
|
|
|
throw new ServiceException("请选择配送计价方式"); |
|
|
|
|
} |
|
|
|
|
priceTemplateEntity.setDispatchIsAddFee(basicdataPriceTemplate.getDispatchIsAddFee()); |
|
|
|
|
priceTemplateEntity.setDispatchServiceType(basicdataPriceTemplate.getDispatchServiceType()); |
|
|
|
|
priceTemplateEntity.setDispatchPricingType(basicdataPriceTemplate.getDispatchPricingType()); |
|
|
|
|
priceTemplateEntity.setDispatchIsByCategory(basicdataPriceTemplate.getDispatchIsByCategory()); |
|
|
|
@ -270,6 +272,7 @@ public class BasicdataPriceTemplateServiceImpl extends BaseServiceImpl<Basicdata
|
|
|
|
|
templateEntity.setTrunklineMinCostType(MinCostTypeEnums.PRICE.getCode()); |
|
|
|
|
break; |
|
|
|
|
case WAREHOUSE: |
|
|
|
|
templateEntity.setWarehouseIsAddFee(0); |
|
|
|
|
templateEntity.setWarehousePricingType(WarehousePricingTypeEnums.PIECE.getCode()); |
|
|
|
|
templateEntity.setWarehousePricingMode(WarehousePricingModeEnums.SEGMENTED_CHARGING.getCode()); |
|
|
|
|
templateEntity.setWarehouseCalculationBasis(WarehouseCalculationBasisEnums.PIECE_PER_DAY.getCode()); |
|
|
|
@ -283,6 +286,7 @@ public class BasicdataPriceTemplateServiceImpl extends BaseServiceImpl<Basicdata
|
|
|
|
|
templateEntity.setWarehouseSubjoinCategory(""); |
|
|
|
|
break; |
|
|
|
|
case DISPATCH: |
|
|
|
|
templateEntity.setDispatchIsAddFee(0); |
|
|
|
|
templateEntity.setDispatchServiceType(DispatchTypeEnums.COMMERCIAL_DISTRIBUTION.getCode()); |
|
|
|
|
templateEntity.setDispatchPricingType(""); |
|
|
|
|
templateEntity.setDispatchIsByCategory(0); |
|
|
|
|