Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
6f017f8f
提交
6f017f8f
authored
6月 19, 2024
作者:
胡宁宁
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
逻辑调整
上级
80923da4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
26 行增加
和
12 行删除
+26
-12
PayNotifyController.java
...x/performance/controller/payment/PayNotifyController.java
+1
-6
OrderPaymentDaoImpl.java
...clx/performance/dao/impl/payment/OrderPaymentDaoImpl.java
+11
-0
OrderPaymentDao.java
...java/com/clx/performance/dao/payment/OrderPaymentDao.java
+4
-0
PaymentServiceImpl.java
.../com/clx/performance/service/impl/PaymentServiceImpl.java
+10
-6
没有找到文件。
performance-web/src/main/java/com/clx/performance/controller/payment/PayNotifyController.java
浏览文件 @
6f017f8f
...
...
@@ -194,9 +194,7 @@ public class PayNotifyController {
}
private
Integer
analysisSuccess
(
String
result
,
Integer
operation
,
String
paymentItem
){
//36:201706050000015794,37:201706050000015838,38:201706050000015992
Integer
id
=
0
;
private
void
analysisSuccess
(
String
result
,
Integer
operation
,
String
paymentItem
){
if
(
result
.
contains
(
","
)){
String
[]
stringFlag
=
result
.
split
(
","
);
if
(
stringFlag
.
length
>
0
){
...
...
@@ -205,7 +203,6 @@ public class PayNotifyController {
String
[]
ress
=
stringFlag
[
i
].
split
(
"="
);
if
(
ress
.
length
==
2
){
//例如 id=serialNo
paymentService
.
updateOrderPaymentSerialNoSuccess
(
ress
[
0
],
ress
[
1
],
operation
,
paymentItem
);
id
=
Integer
.
valueOf
(
ress
[
0
]);
}
}
}
...
...
@@ -213,10 +210,8 @@ public class PayNotifyController {
String
[]
ress
=
result
.
split
(
"="
);
if
(
ress
.
length
==
2
){
//例如 id=serialNo
paymentService
.
updateOrderPaymentSerialNoSuccess
(
ress
[
0
],
ress
[
1
],
operation
,
paymentItem
);
id
=
Integer
.
valueOf
(
ress
[
0
]);
}
}
return
id
;
}
}
performance-web/src/main/java/com/clx/performance/dao/impl/payment/OrderPaymentDaoImpl.java
浏览文件 @
6f017f8f
...
...
@@ -36,6 +36,17 @@ public class OrderPaymentDaoImpl extends BaseDaoImpl<OrderPaymentMapper, OrderPa
.
map
(
super
::
getOne
);
}
@Override
public
Optional
<
OrderPayment
>
selectByOrderNoAndItemIdAndOperation
(
String
orderNo
,
String
paymentItem
,
Integer
operation
)
{
return
Optional
.
of
(
orderNo
)
.
map
(
item
->
lQrWrapper
()
.
eq
(
OrderPayment:
:
getOrderNo
,
item
)
.
eq
(
OrderPayment:
:
getPaymentItem
,
paymentItem
)
.
eq
(
OrderPayment:
:
getOperation
,
operation
)
)
.
map
(
super
::
getOne
);
}
}
performance-web/src/main/java/com/clx/performance/dao/payment/OrderPaymentDao.java
浏览文件 @
6f017f8f
...
...
@@ -20,4 +20,8 @@ public interface OrderPaymentDao extends BaseDao<OrderPaymentMapper, OrderPaymen
@Param
(
"operation"
)
Integer
operation
,
@Param
(
"paymentItem"
)
String
paymentItem
);
Optional
<
OrderPayment
>
selectByOrderNoAndItemIdAndOperation
(
@Param
(
"orderNo"
)
String
orderNo
,
@Param
(
"paymentItem"
)
String
paymentItem
,
@Param
(
"operation"
)
Integer
operation
);
}
performance-web/src/main/java/com/clx/performance/service/impl/PaymentServiceImpl.java
浏览文件 @
6f017f8f
...
...
@@ -220,8 +220,9 @@ public class PaymentServiceImpl implements PaymentService {
public
Result
paymentChangePlatformFee
(
PayPlatformFeeParam
param
)
{
//查询冻结记录
OrderPayment
orderPaymentOptional
=
orderPaymentDao
.
selectByOrderNoAndItemId
(
param
.
getTradeNo
(),
PayUnitTypeEnum
.
FREEZE_PLATFORM_FEE
.
getCode
()
+
""
).
orNull
();
orderPaymentDao
.
selectByOrderNoAndItemIdAndOperation
(
param
.
getTradeNo
(),
PayUnitTypeEnum
.
FREEZE_PLATFORM_FEE
.
getCode
()
+
""
,
PayOperationStatusEnum
.
FREEZE
.
getValue
()).
orNull
();
if
(
null
==
orderPaymentOptional
){
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
,
"数据不存在"
)
;
}
...
...
@@ -230,6 +231,7 @@ public class PaymentServiceImpl implements PaymentService {
.
setAmount
(
param
.
getFigure
())
.
setOrderNo
(
param
.
getTradeNo
())
.
setRelationNo
(
payOrderNoGenerate
())
.
setSerialNo
(
orderPaymentOptional
.
getSerialNo
())
.
setPaymentItem
(
PayUnitTypeEnum
.
FREEZE_PLATFORM_FEE
.
getCode
()
+
""
)
.
setStatus
(
PaymentStatusEnum
.
CREATE
.
getValue
())
.
setOperation
(
PayOperationStatusEnum
.
ADJUSTMENT
.
getValue
());
...
...
@@ -255,8 +257,9 @@ public class PaymentServiceImpl implements PaymentService {
public
Result
paymentCompletePlatformFee
(
PayPlatformFeeParam
param
)
{
//查询冻结记录
OrderPayment
orderPaymentOptional
=
orderPaymentDao
.
selectByOrderNoAndItemId
(
param
.
getTradeNo
(),
PayUnitTypeEnum
.
FREEZE_PLATFORM_FEE
.
getCode
()
+
""
).
orNull
();
orderPaymentDao
.
selectByOrderNoAndItemIdAndOperation
(
param
.
getTradeNo
(),
PayUnitTypeEnum
.
FREEZE_PLATFORM_FEE
.
getCode
()
+
""
,
PayOperationStatusEnum
.
FREEZE
.
getValue
()).
orNull
();
if
(
null
==
orderPaymentOptional
){
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
,
"数据不存在"
)
;
}
...
...
@@ -291,8 +294,9 @@ public class PaymentServiceImpl implements PaymentService {
public
Result
paymentCancelPlatformFee
(
PayPlatformFeeParam
param
)
{
//查询冻结记录
OrderPayment
orderPaymentOptional
=
orderPaymentDao
.
selectByOrderNoAndItemId
(
param
.
getTradeNo
(),
PayUnitTypeEnum
.
FREEZE_PLATFORM_FEE
.
getCode
()
+
""
).
orNull
();
orderPaymentDao
.
selectByOrderNoAndItemIdAndOperation
(
param
.
getTradeNo
(),
PayUnitTypeEnum
.
FREEZE_PLATFORM_FEE
.
getCode
()
+
""
,
PayOperationStatusEnum
.
FREEZE
.
getValue
()).
orNull
();
if
(
null
==
orderPaymentOptional
){
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
,
"数据不存在"
)
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论