Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
c22e344a
提交
c22e344a
authored
7月 01, 2024
作者:
李瑞鑫
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'v17.5_order_child_sync_broker_20240617'
上级
60ec4920
7bec834c
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
3 行删除
+7
-3
WalletResidueDTO.java
...om/clx/performance/param/pc/payment/WalletResidueDTO.java
+2
-2
OrderChildServiceImpl.java
...m/clx/performance/service/impl/OrderChildServiceImpl.java
+1
-1
PaymentServiceImpl.java
.../com/clx/performance/service/impl/PaymentServiceImpl.java
+4
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/param/pc/payment/WalletResidueDTO.java
浏览文件 @
c22e344a
...
@@ -49,7 +49,7 @@ public class WalletResidueDTO {
...
@@ -49,7 +49,7 @@ public class WalletResidueDTO {
}
}
@JsonGetter
(
value
=
"frozen"
)
@JsonGetter
(
value
=
"frozen"
)
public
BigDecimal
frozenFormat
()
{
public
BigDecimal
frozenFormat
()
{
return
new
BigDecimal
(
new
Double
(
this
.
frozen
)/
100
);
return
BigDecimal
.
valueOf
(
new
Double
(
this
.
frozen
)/
100
);
}
}
@JsonGetter
(
value
=
"residue"
)
@JsonGetter
(
value
=
"residue"
)
public
Double
residueFormat
()
{
public
Double
residueFormat
()
{
...
@@ -57,7 +57,7 @@ public class WalletResidueDTO {
...
@@ -57,7 +57,7 @@ public class WalletResidueDTO {
}
}
@JsonGetter
(
value
=
"deposit"
)
@JsonGetter
(
value
=
"deposit"
)
public
Double
depositFormat
()
{
public
Double
depositFormat
()
{
return
new
Double
(
this
.
deposit
)
/
100
;
return
this
.
deposit
/
100
;
}
}
public
Double
getDeposit
()
{
public
Double
getDeposit
()
{
...
...
performance-web/src/main/java/com/clx/performance/service/impl/OrderChildServiceImpl.java
浏览文件 @
c22e344a
...
@@ -480,7 +480,7 @@ public class OrderChildServiceImpl implements OrderChildService {
...
@@ -480,7 +480,7 @@ public class OrderChildServiceImpl implements OrderChildService {
// 新增运单
// 新增运单
orderChildDao
.
saveEntity
(
orderChild
);
orderChildDao
.
saveEntity
(
orderChild
);
// 冻结司机保证金
// 冻结司机保证金
if
(
deposit
.
compareTo
(
BigDecimal
.
ZERO
)
==
1
){
if
(
deposit
.
compareTo
(
BigDecimal
.
ZERO
)
>
0
){
PayPlatformFeeParam
payPlatformFeeParam
=
new
PayPlatformFeeParam
();
PayPlatformFeeParam
payPlatformFeeParam
=
new
PayPlatformFeeParam
();
payPlatformFeeParam
.
setTradeNo
(
childNo
);
payPlatformFeeParam
.
setTradeNo
(
childNo
);
payPlatformFeeParam
.
setFrom
(
checkWalletCode
);
payPlatformFeeParam
.
setFrom
(
checkWalletCode
);
...
...
performance-web/src/main/java/com/clx/performance/service/impl/PaymentServiceImpl.java
浏览文件 @
c22e344a
...
@@ -383,6 +383,7 @@ public class PaymentServiceImpl implements PaymentService {
...
@@ -383,6 +383,7 @@ public class PaymentServiceImpl implements PaymentService {
orderPaymentDao
.
selectByRelationNo
(
orderNo
,
operation
,
paymentItem
).
orNull
();
orderPaymentDao
.
selectByRelationNo
(
orderNo
,
operation
,
paymentItem
).
orNull
();
if
(
null
==
orderPaymentOptional
){
if
(
null
==
orderPaymentOptional
){
log
.
error
(
"数据不存在 {}, {}"
,
orderNo
,
msg
);
log
.
error
(
"数据不存在 {}, {}"
,
orderNo
,
msg
);
return
;
}
}
orderPaymentOptional
.
setStatus
(
PaymentStatusEnum
.
FAIL
.
getValue
());
orderPaymentOptional
.
setStatus
(
PaymentStatusEnum
.
FAIL
.
getValue
());
orderPaymentOptional
.
setReason
(
msg
);
orderPaymentOptional
.
setReason
(
msg
);
...
@@ -396,6 +397,7 @@ public class PaymentServiceImpl implements PaymentService {
...
@@ -396,6 +397,7 @@ public class PaymentServiceImpl implements PaymentService {
orderPaymentDao
.
selectByRelationNo
(
orderNo
,
operation
,
paymentItem
).
orNull
();
orderPaymentDao
.
selectByRelationNo
(
orderNo
,
operation
,
paymentItem
).
orNull
();
if
(
null
==
orderPaymentOptional
){
if
(
null
==
orderPaymentOptional
){
log
.
error
(
"数据不存在 {}, {}"
,
orderNo
);
log
.
error
(
"数据不存在 {}, {}"
,
orderNo
);
return
;
}
}
orderPaymentOptional
.
setStatus
(
PaymentStatusEnum
.
SUCCESS
.
getValue
());
orderPaymentOptional
.
setStatus
(
PaymentStatusEnum
.
SUCCESS
.
getValue
());
orderPaymentDao
.
updateEntityByKey
(
orderPaymentOptional
);
orderPaymentDao
.
updateEntityByKey
(
orderPaymentOptional
);
...
@@ -408,6 +410,7 @@ public class PaymentServiceImpl implements PaymentService {
...
@@ -408,6 +410,7 @@ public class PaymentServiceImpl implements PaymentService {
OrderPayment
orderPaymentOptional
=
orderPaymentDao
.
getEntityByKey
(
Integer
.
valueOf
(
id
)).
orNull
();
OrderPayment
orderPaymentOptional
=
orderPaymentDao
.
getEntityByKey
(
Integer
.
valueOf
(
id
)).
orNull
();
if
(
null
==
orderPaymentOptional
){
if
(
null
==
orderPaymentOptional
){
log
.
error
(
"数据不存在 {}, {}"
,
id
);
log
.
error
(
"数据不存在 {}, {}"
,
id
);
return
;
}
}
orderPaymentOptional
.
setStatus
(
status
);
orderPaymentOptional
.
setStatus
(
status
);
orderPaymentDao
.
updateEntityByKey
(
orderPaymentOptional
);
orderPaymentDao
.
updateEntityByKey
(
orderPaymentOptional
);
...
@@ -419,6 +422,7 @@ public class PaymentServiceImpl implements PaymentService {
...
@@ -419,6 +422,7 @@ public class PaymentServiceImpl implements PaymentService {
orderPaymentDao
.
selectByRelationNo
(
orderNo
,
operation
,
paymentItem
).
orNull
();
orderPaymentDao
.
selectByRelationNo
(
orderNo
,
operation
,
paymentItem
).
orNull
();
if
(
null
==
orderPaymentOptional
){
if
(
null
==
orderPaymentOptional
){
log
.
error
(
"数据不存在 {}, {}"
,
orderNo
);
log
.
error
(
"数据不存在 {}, {}"
,
orderNo
);
return
;
}
}
orderPaymentOptional
.
setStatus
(
PaymentStatusEnum
.
SUCCESS
.
getValue
());
orderPaymentOptional
.
setStatus
(
PaymentStatusEnum
.
SUCCESS
.
getValue
());
orderPaymentOptional
.
setSerialNo
(
serialNo
);
orderPaymentOptional
.
setSerialNo
(
serialNo
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论