Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
f21abe0f
提交
f21abe0f
authored
8月 02, 2024
作者:
杨启发
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'refs/heads/v20.4_exception_report_20240802' into dev
上级
791fde8b
38b891a9
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
23 行增加
和
1 行删除
+23
-1
PerformanceSDKFeign.java
...n/java/com/clx/performance/feign/PerformanceSDKFeign.java
+7
-0
PerformanceSdkFeignController.java
...mance/controller/feign/PerformanceSdkFeignController.java
+11
-0
PerformanceProgressService.java
...m/clx/performance/service/PerformanceProgressService.java
+1
-1
PerformanceProgressServiceImpl.java
...formance/service/impl/PerformanceProgressServiceImpl.java
+4
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/feign/PerformanceSDKFeign.java
浏览文件 @
f21abe0f
...
@@ -2,9 +2,12 @@ package com.clx.performance.feign;
...
@@ -2,9 +2,12 @@ package com.clx.performance.feign;
import
com.clx.open.sdk.request.action.GetOrderBreakContractOwnerRuleFileAction
;
import
com.clx.open.sdk.request.action.GetOrderBreakContractOwnerRuleFileAction
;
import
com.clx.open.sdk.request.action.GetOwnerAccountInfoAction
;
import
com.clx.open.sdk.request.action.GetOwnerAccountInfoAction
;
import
com.clx.open.sdk.request.action.QueryPerformanceProgressAction
;
import
com.clx.open.sdk.request.dto.OwnerCancelResidueWeightDTO
;
import
com.clx.open.sdk.request.dto.OwnerCancelResidueWeightDTO
;
import
com.clx.performance.param.pc.OrderCancelParam
;
import
com.clx.performance.param.pc.OrderCancelParam
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.PerformanceProgressDetailVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
com.clx.performance.vo.pc.breakcontract.carrier.BreakContractOwnerRuleFileVO
;
import
com.clx.performance.vo.pc.breakcontract.carrier.BreakContractOwnerRuleFileVO
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
...
@@ -13,6 +16,8 @@ import org.springframework.web.bind.annotation.PostMapping;
...
@@ -13,6 +16,8 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
java.util.List
;
@FeignClient
(
name
=
"clx-performance"
,
configuration
=
PerformanceClientConfiguration
.
class
)
@FeignClient
(
name
=
"clx-performance"
,
configuration
=
PerformanceClientConfiguration
.
class
)
public
interface
PerformanceSDKFeign
{
public
interface
PerformanceSDKFeign
{
...
@@ -34,4 +39,6 @@ public interface PerformanceSDKFeign {
...
@@ -34,4 +39,6 @@ public interface PerformanceSDKFeign {
@PostMapping
(
"clx-performance/feign/sdk/getOwnerRuleFile"
)
@PostMapping
(
"clx-performance/feign/sdk/getOwnerRuleFile"
)
Result
<
BreakContractOwnerRuleFileVO
>
getOwnerRuleFile
(
@RequestBody
GetOrderBreakContractOwnerRuleFileAction
action
);
Result
<
BreakContractOwnerRuleFileVO
>
getOwnerRuleFile
(
@RequestBody
GetOrderBreakContractOwnerRuleFileAction
action
);
@GetMapping
(
"clx-performance/feign/sdk/queryPerformanceProgress"
)
Result
<
List
<
PerformanceProgressVO
>>
queryPerformanceProgress
(
@RequestBody
QueryPerformanceProgressAction
action
);
}
}
performance-web/src/main/java/com/clx/performance/controller/feign/PerformanceSdkFeignController.java
浏览文件 @
f21abe0f
...
@@ -2,13 +2,16 @@ package com.clx.performance.controller.feign;
...
@@ -2,13 +2,16 @@ package com.clx.performance.controller.feign;
import
com.clx.open.sdk.request.action.GetOrderBreakContractOwnerRuleFileAction
;
import
com.clx.open.sdk.request.action.GetOrderBreakContractOwnerRuleFileAction
;
import
com.clx.open.sdk.request.action.GetOwnerAccountInfoAction
;
import
com.clx.open.sdk.request.action.GetOwnerAccountInfoAction
;
import
com.clx.open.sdk.request.action.QueryPerformanceProgressAction
;
import
com.clx.open.sdk.request.dto.OwnerCancelResidueWeightDTO
;
import
com.clx.open.sdk.request.dto.OwnerCancelResidueWeightDTO
;
import
com.clx.performance.param.pc.OrderCancelParam
;
import
com.clx.performance.param.pc.OrderCancelParam
;
import
com.clx.performance.service.OrderCancelService
;
import
com.clx.performance.service.OrderCancelService
;
import
com.clx.performance.service.OrderGoodsService
;
import
com.clx.performance.service.OrderGoodsService
;
import
com.clx.performance.service.OwnerAccountService
;
import
com.clx.performance.service.OwnerAccountService
;
import
com.clx.performance.service.PerformanceProgressService
;
import
com.clx.performance.service.breakcontract.BreakContractOwnerRuleService
;
import
com.clx.performance.service.breakcontract.BreakContractOwnerRuleService
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.OwnerAccountAllVO
;
import
com.clx.performance.vo.pc.PerformanceProgressVO
;
import
com.clx.performance.vo.pc.breakcontract.carrier.BreakContractOwnerRuleFileVO
;
import
com.clx.performance.vo.pc.breakcontract.carrier.BreakContractOwnerRuleFileVO
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
import
com.msl.user.utils.TokenUtil
;
import
com.msl.user.utils.TokenUtil
;
...
@@ -20,6 +23,7 @@ import org.springframework.validation.annotation.Validated;
...
@@ -20,6 +23,7 @@ import org.springframework.validation.annotation.Validated;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Slf4j
@Slf4j
@RestController
@RestController
...
@@ -38,6 +42,8 @@ public class PerformanceSdkFeignController {
...
@@ -38,6 +42,8 @@ public class PerformanceSdkFeignController {
private
final
BreakContractOwnerRuleService
breakContractOwnerRuleService
;
private
final
BreakContractOwnerRuleService
breakContractOwnerRuleService
;
private
final
PerformanceProgressService
performanceProgressService
;
@ApiOperation
(
value
=
"货主端取消订单"
,
notes
=
"<br>By:胡宇帆"
)
@ApiOperation
(
value
=
"货主端取消订单"
,
notes
=
"<br>By:胡宇帆"
)
@PostMapping
(
"/ownCancelOrderPre"
)
@PostMapping
(
"/ownCancelOrderPre"
)
...
@@ -67,4 +73,9 @@ public class PerformanceSdkFeignController {
...
@@ -67,4 +73,9 @@ public class PerformanceSdkFeignController {
return
Result
.
ok
(
breakContractOwnerRuleService
.
getRuleFile
(
action
.
getId
()));
return
Result
.
ok
(
breakContractOwnerRuleService
.
getRuleFile
(
action
.
getId
()));
}
}
@ApiOperation
(
value
=
"查询履约进度"
,
notes
=
"<br>By:杨启发"
)
@GetMapping
(
"/queryPerformanceProgress"
)
Result
<
List
<
PerformanceProgressVO
>>
queryPerformanceProgress
(
@RequestBody
QueryPerformanceProgressAction
action
){
return
Result
.
ok
(
performanceProgressService
.
queryPerformanceProgress
(
action
.
getOrderNoList
()));
}
}
}
performance-web/src/main/java/com/clx/performance/service/PerformanceProgressService.java
浏览文件 @
f21abe0f
...
@@ -34,7 +34,7 @@ public interface PerformanceProgressService {
...
@@ -34,7 +34,7 @@ public interface PerformanceProgressService {
void
dealPerformanceProgress4OrderInfo
(
OrderInfoMessage
data
);
void
dealPerformanceProgress4OrderInfo
(
OrderInfoMessage
data
);
List
<
PerformanceProgressVO
>
queryPerformanceProgress
(
List
<
String
>
orderNoList
);
void
dealPerformanceProgress4OrderGoods
(
OrderGoods
data
);
void
dealPerformanceProgress4OrderGoods
(
OrderGoods
data
);
...
...
performance-web/src/main/java/com/clx/performance/service/impl/PerformanceProgressServiceImpl.java
浏览文件 @
f21abe0f
...
@@ -492,6 +492,10 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
...
@@ -492,6 +492,10 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
performanceProgressDao
.
updateEntityByKey
(
update
);
performanceProgressDao
.
updateEntityByKey
(
update
);
}
}
@Override
public
List
<
PerformanceProgressVO
>
queryPerformanceProgress
(
List
<
String
>
orderNoList
)
{
return
performanceProgressStruct
.
convertList
(
performanceProgressDao
.
listInField
(
PerformanceProgress:
:
getOrderNo
,
orderNoList
));
}
// 计算接单率
// 计算接单率
public
BigDecimal
calcOrderedRate
(
BigDecimal
orderedWeight
,
BigDecimal
pendingWeight
){
public
BigDecimal
calcOrderedRate
(
BigDecimal
orderedWeight
,
BigDecimal
pendingWeight
){
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论