提交 58fe02dc authored 作者: 艾庆国's avatar 艾庆国

承运与无车承运对接

上级 e36d173a
...@@ -11,6 +11,7 @@ import com.clx.performance.param.pc.owner.UpdateStatusParam; ...@@ -11,6 +11,7 @@ import com.clx.performance.param.pc.owner.UpdateStatusParam;
import com.clx.performance.vo.app.collect.AppCollectTruckVO; import com.clx.performance.vo.app.collect.AppCollectTruckVO;
import com.clx.performance.vo.feign.FreightEstimateVO; import com.clx.performance.vo.feign.FreightEstimateVO;
import com.clx.performance.vo.feign.OrderGoodsFeignVO; import com.clx.performance.vo.feign.OrderGoodsFeignVO;
import com.clx.performance.vo.feign.PlatformServiceFeeConfigFeignVO;
import com.clx.performance.vo.pc.OwnerAccountAllVO; import com.clx.performance.vo.pc.OwnerAccountAllVO;
import com.clx.performance.vo.pc.OwnerAccountArrearsVO; import com.clx.performance.vo.pc.OwnerAccountArrearsVO;
import com.clx.performance.vo.pc.OwnerLoanAccountVO; import com.clx.performance.vo.pc.OwnerLoanAccountVO;
...@@ -125,7 +126,12 @@ public interface PerformanceFeign { ...@@ -125,7 +126,12 @@ public interface PerformanceFeign {
/** /**
* 更新挂单运费 * 更新挂单运费
*/ */
@GetMapping(value = {"clx-performance/feign/orderGoods/updatePendingOrderFright"}) @PostMapping(value = {"clx-performance/feign/orderGoods/updatePendingOrderFright"})
Result<Void> updatePendingOrderFright(@RequestParam("orderGoodsNo") String orderGoodsNo,@RequestParam("pendingOrderFreight") BigDecimal pendingOrderFreight); Result<Void> updatePendingOrderFright(@RequestParam("orderGoodsNo") String orderGoodsNo,@RequestParam("pendingOrderFreight") BigDecimal pendingOrderFreight);
/**
* 获取平台服务费配置
*/
@GetMapping(value = {"clx-performance/feign/platformServiceFee/getPlatformServiceFeeConfig"})
Result<PlatformServiceFeeConfigFeignVO> getPlatformServiceFeeConfig();
} }
package com.clx.performance.vo.feign;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import java.math.BigDecimal;
@Getter
@Setter
@NoArgsConstructor
public class PlatformServiceFeeConfigFeignVO {
@ApiModelProperty(value = "订单报价方式,1:未税,2:含税")
private Integer orderQuotationType;
@ApiModelProperty(value = "结算方式")
private Integer settlementType;
@ApiModelProperty(value = "接单保证金")
private BigDecimal deposit;
@ApiModelProperty(value = "平台服务费费率")
private BigDecimal serviceFeeRate;
}
...@@ -49,8 +49,9 @@ public class OrderGoodsFeignController { ...@@ -49,8 +49,9 @@ public class OrderGoodsFeignController {
} }
@ApiOperation(value = "更新挂单运费", notes = "<br>By:艾庆国") @ApiOperation(value = "更新挂单运费", notes = "<br>By:艾庆国")
@GetMapping(value = {"/updatePendingOrderFright"}) @PostMapping(value = {"/updatePendingOrderFright"})
Result<Void> updatePendingOrderFright(@RequestParam("orderGoodsNo") String orderGoodsNo,@RequestParam("pendingOrderFreight") BigDecimal pendingOrderFreight){ Result<Void> updatePendingOrderFright(@RequestParam("orderGoodsNo") String orderGoodsNo,
@RequestParam("pendingOrderFreight") BigDecimal pendingOrderFreight){
orderGoodsService.updateFrightPrice(orderGoodsNo, pendingOrderFreight); orderGoodsService.updateFrightPrice(orderGoodsNo, pendingOrderFreight);
return Result.ok(); return Result.ok();
......
package com.clx.performance.controller.feign;
import com.clx.performance.service.PlatformServiceFeeConfigService;
import com.clx.performance.vo.feign.PlatformServiceFeeConfigFeignVO;
import com.msl.common.result.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/feign/platformServiceFee")
@Validated
@Api(tags = "平台服务费Feign")
public class PlatformServiceFeeFeignController {
@Autowired
private PlatformServiceFeeConfigService platformServiceFeeConfigService;
@GetMapping(value = {"/getPlatformServiceFeeConfig"})
Result<PlatformServiceFeeConfigFeignVO> getPlatformServiceFeeConfig(){
return Result.ok(platformServiceFeeConfigService.getConfig());
}
}
package com.clx.performance.service; package com.clx.performance.service;
import com.clx.performance.param.pc.carrier.SavePlatformServiceFeeConfigParam; import com.clx.performance.param.pc.carrier.SavePlatformServiceFeeConfigParam;
import com.clx.performance.vo.feign.PlatformServiceFeeConfigFeignVO;
import com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformServiceFeeConfigVO; import com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformServiceFeeConfigVO;
...@@ -14,4 +15,6 @@ public interface PlatformServiceFeeConfigService { ...@@ -14,4 +15,6 @@ public interface PlatformServiceFeeConfigService {
CarrierPagePlatformServiceFeeConfigVO getPlatformServiceFeeConfigDetail(int id); CarrierPagePlatformServiceFeeConfigVO getPlatformServiceFeeConfigDetail(int id);
void updatePlatformServiceFeeConfig(SavePlatformServiceFeeConfigParam config); void updatePlatformServiceFeeConfig(SavePlatformServiceFeeConfigParam config);
PlatformServiceFeeConfigFeignVO getConfig();
} }
...@@ -6,6 +6,7 @@ import com.clx.performance.model.PlatformServiceFeeConfig; ...@@ -6,6 +6,7 @@ import com.clx.performance.model.PlatformServiceFeeConfig;
import com.clx.performance.param.pc.carrier.SavePlatformServiceFeeConfigParam; import com.clx.performance.param.pc.carrier.SavePlatformServiceFeeConfigParam;
import com.clx.performance.service.PlatformServiceFeeConfigService; import com.clx.performance.service.PlatformServiceFeeConfigService;
import com.clx.performance.struct.PlatformServiceFeeConfigStruct; import com.clx.performance.struct.PlatformServiceFeeConfigStruct;
import com.clx.performance.vo.feign.PlatformServiceFeeConfigFeignVO;
import com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformServiceFeeConfigVO; import com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformServiceFeeConfigVO;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
...@@ -45,4 +46,10 @@ public class PlatformServiceFeeConfigServiceImpl implements PlatformServiceFeeCo ...@@ -45,4 +46,10 @@ public class PlatformServiceFeeConfigServiceImpl implements PlatformServiceFeeCo
config.setServiceFeeRate(param.getServiceFeeRate()); config.setServiceFeeRate(param.getServiceFeeRate());
platformServiceFeeConfigDao.updatePlatformServiceFeeConfig(config); platformServiceFeeConfigDao.updatePlatformServiceFeeConfig(config);
} }
@Override
public PlatformServiceFeeConfigFeignVO getConfig() {
return platformServiceFeeConfigStruct
.convertPlatformServiceFeeConfigFeignVO(platformServiceFeeConfigDao.listPlatformServiceFeeConfig());
}
} }
...@@ -2,6 +2,7 @@ package com.clx.performance.struct; ...@@ -2,6 +2,7 @@ package com.clx.performance.struct;
import com.clx.performance.enums.PlatformServiceFeeConfigEnum; import com.clx.performance.enums.PlatformServiceFeeConfigEnum;
import com.clx.performance.model.PlatformServiceFeeConfig; import com.clx.performance.model.PlatformServiceFeeConfig;
import com.clx.performance.vo.feign.PlatformServiceFeeConfigFeignVO;
import com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformServiceFeeConfigVO; import com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformServiceFeeConfigVO;
import com.msl.common.utils.DateStructUtil; import com.msl.common.utils.DateStructUtil;
import com.msl.common.utils.DateUtils; import com.msl.common.utils.DateUtils;
...@@ -15,4 +16,6 @@ public interface PlatformServiceFeeConfigStruct { ...@@ -15,4 +16,6 @@ public interface PlatformServiceFeeConfigStruct {
@Mapping(target = "orderQuotationTypeMsg", expression = "java(Objects.isNull(config.getOrderQuotationType()) ? null : PlatformServiceFeeConfigEnum.getMsgByCode(config.getOrderQuotationType()))") @Mapping(target = "orderQuotationTypeMsg", expression = "java(Objects.isNull(config.getOrderQuotationType()) ? null : PlatformServiceFeeConfigEnum.getMsgByCode(config.getOrderQuotationType()))")
CarrierPagePlatformServiceFeeConfigVO convertToDetail(PlatformServiceFeeConfig config); CarrierPagePlatformServiceFeeConfigVO convertToDetail(PlatformServiceFeeConfig config);
PlatformServiceFeeConfigFeignVO convertPlatformServiceFeeConfigFeignVO(PlatformServiceFeeConfig config);
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论