Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
58fe02dc
提交
58fe02dc
authored
6月 19, 2024
作者:
艾庆国
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
承运与无车承运对接
上级
e36d173a
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
77 行增加
和
3 行删除
+77
-3
PerformanceFeign.java
...main/java/com/clx/performance/feign/PerformanceFeign.java
+7
-1
PlatformServiceFeeConfigFeignVO.java
...performance/vo/feign/PlatformServiceFeeConfigFeignVO.java
+25
-0
OrderGoodsFeignController.java
...rformance/controller/feign/OrderGoodsFeignController.java
+3
-2
PlatformServiceFeeFeignController.java
...e/controller/feign/PlatformServiceFeeFeignController.java
+29
-0
PlatformServiceFeeConfigService.java
.../performance/service/PlatformServiceFeeConfigService.java
+3
-0
PlatformServiceFeeConfigServiceImpl.java
...nce/service/impl/PlatformServiceFeeConfigServiceImpl.java
+7
-0
PlatformServiceFeeConfigStruct.java
...lx/performance/struct/PlatformServiceFeeConfigStruct.java
+3
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/feign/PerformanceFeign.java
浏览文件 @
58fe02dc
...
...
@@ -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.feign.FreightEstimateVO
;
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.OwnerAccountArrearsVO
;
import
com.clx.performance.vo.pc.OwnerLoanAccountVO
;
...
...
@@ -125,7 +126,12 @@ public interface PerformanceFeign {
/**
* 更新挂单运费
*/
@
Ge
tMapping
(
value
=
{
"clx-performance/feign/orderGoods/updatePendingOrderFright"
})
@
Pos
tMapping
(
value
=
{
"clx-performance/feign/orderGoods/updatePendingOrderFright"
})
Result
<
Void
>
updatePendingOrderFright
(
@RequestParam
(
"orderGoodsNo"
)
String
orderGoodsNo
,
@RequestParam
(
"pendingOrderFreight"
)
BigDecimal
pendingOrderFreight
);
/**
* 获取平台服务费配置
*/
@GetMapping
(
value
=
{
"clx-performance/feign/platformServiceFee/getPlatformServiceFeeConfig"
})
Result
<
PlatformServiceFeeConfigFeignVO
>
getPlatformServiceFeeConfig
();
}
performance-api/src/main/java/com/clx/performance/vo/feign/PlatformServiceFeeConfigFeignVO.java
0 → 100644
浏览文件 @
58fe02dc
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
;
}
performance-web/src/main/java/com/clx/performance/controller/feign/OrderGoodsFeignController.java
浏览文件 @
58fe02dc
...
...
@@ -49,8 +49,9 @@ public class OrderGoodsFeignController {
}
@ApiOperation
(
value
=
"更新挂单运费"
,
notes
=
"<br>By:艾庆国"
)
@GetMapping
(
value
=
{
"/updatePendingOrderFright"
})
Result
<
Void
>
updatePendingOrderFright
(
@RequestParam
(
"orderGoodsNo"
)
String
orderGoodsNo
,
@RequestParam
(
"pendingOrderFreight"
)
BigDecimal
pendingOrderFreight
){
@PostMapping
(
value
=
{
"/updatePendingOrderFright"
})
Result
<
Void
>
updatePendingOrderFright
(
@RequestParam
(
"orderGoodsNo"
)
String
orderGoodsNo
,
@RequestParam
(
"pendingOrderFreight"
)
BigDecimal
pendingOrderFreight
){
orderGoodsService
.
updateFrightPrice
(
orderGoodsNo
,
pendingOrderFreight
);
return
Result
.
ok
();
...
...
performance-web/src/main/java/com/clx/performance/controller/feign/PlatformServiceFeeFeignController.java
0 → 100644
浏览文件 @
58fe02dc
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
());
}
}
performance-web/src/main/java/com/clx/performance/service/PlatformServiceFeeConfigService.java
浏览文件 @
58fe02dc
package
com
.
clx
.
performance
.
service
;
import
com.clx.performance.param.pc.carrier.SavePlatformServiceFeeConfigParam
;
import
com.clx.performance.vo.feign.PlatformServiceFeeConfigFeignVO
;
import
com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformServiceFeeConfigVO
;
...
...
@@ -14,4 +15,6 @@ public interface PlatformServiceFeeConfigService {
CarrierPagePlatformServiceFeeConfigVO
getPlatformServiceFeeConfigDetail
(
int
id
);
void
updatePlatformServiceFeeConfig
(
SavePlatformServiceFeeConfigParam
config
);
PlatformServiceFeeConfigFeignVO
getConfig
();
}
performance-web/src/main/java/com/clx/performance/service/impl/PlatformServiceFeeConfigServiceImpl.java
浏览文件 @
58fe02dc
...
...
@@ -6,6 +6,7 @@ import com.clx.performance.model.PlatformServiceFeeConfig;
import
com.clx.performance.param.pc.carrier.SavePlatformServiceFeeConfigParam
;
import
com.clx.performance.service.PlatformServiceFeeConfigService
;
import
com.clx.performance.struct.PlatformServiceFeeConfigStruct
;
import
com.clx.performance.vo.feign.PlatformServiceFeeConfigFeignVO
;
import
com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformServiceFeeConfigVO
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -45,4 +46,10 @@ public class PlatformServiceFeeConfigServiceImpl implements PlatformServiceFeeCo
config
.
setServiceFeeRate
(
param
.
getServiceFeeRate
());
platformServiceFeeConfigDao
.
updatePlatformServiceFeeConfig
(
config
);
}
@Override
public
PlatformServiceFeeConfigFeignVO
getConfig
()
{
return
platformServiceFeeConfigStruct
.
convertPlatformServiceFeeConfigFeignVO
(
platformServiceFeeConfigDao
.
listPlatformServiceFeeConfig
());
}
}
performance-web/src/main/java/com/clx/performance/struct/PlatformServiceFeeConfigStruct.java
浏览文件 @
58fe02dc
...
...
@@ -2,6 +2,7 @@ package com.clx.performance.struct;
import
com.clx.performance.enums.PlatformServiceFeeConfigEnum
;
import
com.clx.performance.model.PlatformServiceFeeConfig
;
import
com.clx.performance.vo.feign.PlatformServiceFeeConfigFeignVO
;
import
com.clx.performance.vo.pc.carrier.settle.CarrierPagePlatformServiceFeeConfigVO
;
import
com.msl.common.utils.DateStructUtil
;
import
com.msl.common.utils.DateUtils
;
...
...
@@ -15,4 +16,6 @@ public interface PlatformServiceFeeConfigStruct {
@Mapping
(
target
=
"orderQuotationTypeMsg"
,
expression
=
"java(Objects.isNull(config.getOrderQuotationType()) ? null : PlatformServiceFeeConfigEnum.getMsgByCode(config.getOrderQuotationType()))"
)
CarrierPagePlatformServiceFeeConfigVO
convertToDetail
(
PlatformServiceFeeConfig
config
);
PlatformServiceFeeConfigFeignVO
convertPlatformServiceFeeConfigFeignVO
(
PlatformServiceFeeConfig
config
);
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论