Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
afc29cf3
提交
afc29cf3
authored
6月 18, 2024
作者:
胡宁宁
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加司机保证金冻结支付接口 增加测试方法
上级
a103b8ca
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
23 行增加
和
8 行删除
+23
-8
TempController.java
...a/com/clx/performance/controller/temp/TempController.java
+4
-3
TempService.java
...rc/main/java/com/clx/performance/service/TempService.java
+1
-1
TempServiceImpl.java
...ava/com/clx/performance/service/impl/TempServiceImpl.java
+18
-4
没有找到文件。
performance-web/src/main/java/com/clx/performance/controller/temp/TempController.java
浏览文件 @
afc29cf3
...
@@ -57,10 +57,11 @@ public class TempController {
...
@@ -57,10 +57,11 @@ public class TempController {
@ApiOperation
(
value
=
"测试支付划账 (临时接口)"
,
notes
=
"<br>By:胡宁宁"
)
@ApiOperation
(
value
=
"测试支付划账 (临时接口)"
,
notes
=
"<br>By:胡宁宁"
)
@RequestMapping
(
value
=
"/paymentTest"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/paymentTest"
,
method
=
RequestMethod
.
GET
)
public
Result
<
Void
>
paymentTest
(
@RequestParam
(
"fromUser"
)
@NotBlank
(
message
=
"扣款方"
)
String
fromUser
,
public
Result
<
Void
>
paymentTest
(
@RequestParam
(
"fromUser"
)
@NotBlank
(
message
=
"扣款方"
)
String
fromUser
,
@RequestParam
(
"toUser"
)
@NotBlank
(
message
=
"收款方"
)
String
toUser
,
@RequestParam
(
"pwd"
)
@NotBlank
(
message
=
"收款方"
)
String
pwd
,
@RequestParam
(
"figure"
)
@NotBlank
(
message
=
"金额"
)
String
figure
)
{
@RequestParam
(
"tradeNo"
)
@NotBlank
(
message
=
"金额"
)
String
tradeNo
,
@RequestParam
(
"type"
)
@NotBlank
(
message
=
"类型"
)
int
type
)
{
tempService
.
paymentTest
(
fromUser
,
toUser
,
figur
e
);
tempService
.
paymentTest
(
fromUser
,
pwd
,
tradeNo
,
typ
e
);
return
Result
.
ok
();
return
Result
.
ok
();
}
}
...
...
performance-web/src/main/java/com/clx/performance/service/TempService.java
浏览文件 @
afc29cf3
...
@@ -6,6 +6,6 @@ public interface TempService {
...
@@ -6,6 +6,6 @@ public interface TempService {
void
updateBreakContractDriverSettlementFinish
(
String
settlementNo
);
void
updateBreakContractDriverSettlementFinish
(
String
settlementNo
);
void
paymentTest
(
String
fromUser
,
String
toUser
,
String
figure
);
void
paymentTest
(
String
fromUser
,
String
toUser
,
String
figure
,
int
type
);
}
}
performance-web/src/main/java/com/clx/performance/service/impl/TempServiceImpl.java
浏览文件 @
afc29cf3
...
@@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.Objects
;
import
java.util.UUID
;
import
java.util.UUID
;
@Slf4j
@Slf4j
...
@@ -42,7 +43,7 @@ public class TempServiceImpl implements TempService {
...
@@ -42,7 +43,7 @@ public class TempServiceImpl implements TempService {
}
}
@Override
@Override
public
void
paymentTest
(
String
fromUser
,
String
toUser
,
String
figur
e
)
{
public
void
paymentTest
(
String
fromUser
,
String
pwd
,
String
tradeNo
,
int
typ
e
)
{
// PayParam noCheckPwd = PayParam.builder().from(
// PayParam noCheckPwd = PayParam.builder().from(
// Integer.valueOf(fromUser))
// Integer.valueOf(fromUser))
// .to(Integer.valueOf(toUser))
// .to(Integer.valueOf(toUser))
...
@@ -57,10 +58,23 @@ public class TempServiceImpl implements TempService {
...
@@ -57,10 +58,23 @@ public class TempServiceImpl implements TempService {
// paymentService.paymentWallet(noCheckPwd);
// paymentService.paymentWallet(noCheckPwd);
PayPlatformFeeParam
payPlatformFeeParam
=
new
PayPlatformFeeParam
();
PayPlatformFeeParam
payPlatformFeeParam
=
new
PayPlatformFeeParam
();
payPlatformFeeParam
.
setFigure
(
Integer
.
valueOf
(
figure
)
);
payPlatformFeeParam
.
setFigure
(
678
);
payPlatformFeeParam
.
setFrom
(
Integer
.
valueOf
(
fromUser
));
payPlatformFeeParam
.
setFrom
(
Integer
.
valueOf
(
fromUser
));
payPlatformFeeParam
.
setPwd
(
toUser
);
payPlatformFeeParam
.
setPwd
(
pwd
);
payPlatformFeeParam
.
setTradeNo
(
UUID
.
randomUUID
().
toString
().
replaceAll
(
"-"
,
""
));
payPlatformFeeParam
.
setTradeNo
(
tradeNo
);
if
(
Objects
.
equals
(
type
,
1
)){
paymentService
.
paymentPlatformFee
(
payPlatformFeeParam
);
}
if
(
Objects
.
equals
(
type
,
2
)){
paymentService
.
paymentChangePlatformFee
(
payPlatformFeeParam
);
}
if
(
Objects
.
equals
(
type
,
3
)){
paymentService
.
paymentCompletePlatformFee
(
payPlatformFeeParam
);
}
if
(
Objects
.
equals
(
type
,
4
)){
paymentService
.
paymentCancelPlatformFee
(
payPlatformFeeParam
);
}
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论