Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
a95d3261
提交
a95d3261
authored
3月 05, 2024
作者:
huyufan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
bug修复
上级
1495fddb
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
30 行增加
和
1 行删除
+30
-1
PerformanceResultEnum.java
...java/com/clx/performance/enums/PerformanceResultEnum.java
+11
-1
CarrierOwnerPaymentController.java
...roller/pc/loan/carrier/CarrierOwnerPaymentController.java
+8
-0
OwnerPaymentServiceImpl.java
...erformance/service/impl/loan/OwnerPaymentServiceImpl.java
+9
-0
OwnerPaymentService.java
...com/clx/performance/service/loan/OwnerPaymentService.java
+2
-0
没有找到文件。
performance-api/src/main/java/com/clx/performance/enums/PerformanceResultEnum.java
浏览文件 @
a95d3261
...
@@ -44,6 +44,8 @@ public enum PerformanceResultEnum implements ResultEnum {
...
@@ -44,6 +44,8 @@ public enum PerformanceResultEnum implements ResultEnum {
ORDER_CHILD_CANCELED
(
1303
,
"运单状态已取消"
),
ORDER_CHILD_CANCELED
(
1303
,
"运单状态已取消"
),
ORDER_CHILD_COMPLETE
(
1304
,
"运单状态已完成"
),
ORDER_CHILD_COMPLETE
(
1304
,
"运单状态已完成"
),
ORDER_CHILD_OPERATION_FORBID
(
1305
,
"没有权限操作"
),
ORDER_CHILD_OPERATION_FORBID
(
1305
,
"没有权限操作"
),
ORDER_CHILD_LOAD_NET_ERROR
(
1306
,
"净重不能大于99吨"
),
ORDER_CHILD_TRACE_GT_ROUGH
(
1306
,
"皮重不能大于毛重"
),
ORDER_CHILD_SAVE_FAIL
(
1321
,
"接单失败,请稍后再试"
),
ORDER_CHILD_SAVE_FAIL
(
1321
,
"接单失败,请稍后再试"
),
ORDER_CHILD_SAVE_FREQUENCY_ERROR
(
1322
,
"请误频繁点击"
),
ORDER_CHILD_SAVE_FREQUENCY_ERROR
(
1322
,
"请误频繁点击"
),
...
@@ -111,8 +113,8 @@ public enum PerformanceResultEnum implements ResultEnum {
...
@@ -111,8 +113,8 @@ public enum PerformanceResultEnum implements ResultEnum {
PASSWORD_RESET_IS_FAIL
(
1909
,
"重置密码出现异常"
),
PASSWORD_RESET_IS_FAIL
(
1909
,
"重置密码出现异常"
),
PASSWORD_CHECK_FAIL
(
1910
,
"交易密码填写错误,请重新输入"
),
PASSWORD_CHECK_FAIL
(
1910
,
"交易密码填写错误,请重新输入"
),
SLIDER_CHECK_FAIL
(
1911
,
"滑块验证错误"
),
SLIDER_CHECK_FAIL
(
1911
,
"滑块验证错误"
),
ORDER_CHILD_SYNC_ERROR
(
1912
,
"承运同步网络货运异常"
),
ORDER_CHILD_SYNC_ERROR
(
2001
,
"承运同步网络货运异常"
),
BORROWER_NAME_EXIST
(
1701
,
"数据重复,请核实后重新提交"
),
BORROWER_NAME_EXIST
(
1701
,
"数据重复,请核实后重新提交"
),
BORROWER_DELETE_ENABLE_ERROR
(
1702
,
"无法删除启用数据"
),
BORROWER_DELETE_ENABLE_ERROR
(
1702
,
"无法删除启用数据"
),
BORROWER_CONFIG_BORROWER_ID_EXIST
(
1703
,
"数据重复,请核实后重新提交"
),
BORROWER_CONFIG_BORROWER_ID_EXIST
(
1703
,
"数据重复,请核实后重新提交"
),
...
@@ -127,6 +129,13 @@ public enum PerformanceResultEnum implements ResultEnum {
...
@@ -127,6 +129,13 @@ public enum PerformanceResultEnum implements ResultEnum {
NB_BANK_PAY_TYPE_ERROR
(
1802
,
"支付方式不支持"
),
NB_BANK_PAY_TYPE_ERROR
(
1802
,
"支付方式不支持"
),
NB_BANK_ORDER_PAY_ERROR
(
1803
,
"宁波银行订单支付失败"
),
NB_BANK_ORDER_PAY_ERROR
(
1803
,
"宁波银行订单支付失败"
),
PLATFORM_ACCOUNT_CONFIG_ONLY
(
1913
,
"当前配置已存在"
),
PLATFORM_ACCOUNT_CONFIG_WITHDRAWAL_IS_NULL
(
1914
,
"提现平台账户未配置"
),
PLATFORM_ACCOUNT_CONFIG_WITHDRAWAL_MANY
(
1915
,
"提现平台账户配置不唯一"
),
PLATFORM_ACCOUNT_CONFIG_RECHARGE_IS_NULL
(
1916
,
"充值平台账户未配置"
),
PLATFORM_ACCOUNT_CONFIG_RECHARGE_MANY
(
1917
,
"充值平台账户配置不唯一"
),
PLATFORM_ACCOUNT_CONFIG_IS_NULL
(
1918
,
"平台账户未配置"
),
PLATFORM_ACCOUNT_CONFIG_MANY
(
1919
,
"平台账户配置不唯一"
),
GET_LOAN_RECORD
(
1901
,
"货主借款失败"
),
GET_LOAN_RECORD
(
1901
,
"货主借款失败"
),
OWNER_ACCOUNT_ERROR
(
1902
,
"货主货款不足"
),
OWNER_ACCOUNT_ERROR
(
1902
,
"货主货款不足"
),
...
@@ -137,6 +146,7 @@ public enum PerformanceResultEnum implements ResultEnum {
...
@@ -137,6 +146,7 @@ public enum PerformanceResultEnum implements ResultEnum {
OWNER_LOAN_RECORD_PAY_WAIT_ERROR
(
1853
,
"当前借款单状态不是待付款"
),
OWNER_LOAN_RECORD_PAY_WAIT_ERROR
(
1853
,
"当前借款单状态不是待付款"
),
OWNER_LOAN_PAYMENT_STATUS_ERROR
(
1854
,
"执行借款审批失败,请稍后重试"
),
OWNER_LOAN_PAYMENT_STATUS_ERROR
(
1854
,
"执行借款审批失败,请稍后重试"
),
OWNER_LOAN_PAY_STATUS_ERROR
(
1855
,
"付款失败"
),
OWNER_LOAN_PAY_STATUS_ERROR
(
1855
,
"付款失败"
),
DATA_STATUS_ERROR
(
1856
,
"当前状态有误"
)
;
;
private
final
int
code
;
private
final
int
code
;
...
...
performance-web/src/main/java/com/clx/performance/controller/pc/loan/carrier/CarrierOwnerPaymentController.java
浏览文件 @
a95d3261
...
@@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
...
@@ -15,6 +15,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
javax.validation.constraints.NotNull
;
@Slf4j
@Slf4j
...
@@ -52,5 +53,12 @@ public class CarrierOwnerPaymentController {
...
@@ -52,5 +53,12 @@ public class CarrierOwnerPaymentController {
return
Result
.
ok
();
return
Result
.
ok
();
}
}
@ApiOperation
(
value
=
"借款重新支付(只更改借款状态)"
,
notes
=
"<br>By:胡宇帆"
)
@GetMapping
(
"/ownerPaymentRetryPay"
)
public
Result
<
Object
>
ownerPaymentRetryPay
(
@RequestParam
(
value
=
"id"
)
@NotBlank
Integer
id
)
{
ownerPaymentService
.
ownerPaymentRetryPay
(
id
);
return
Result
.
ok
();
}
}
}
performance-web/src/main/java/com/clx/performance/service/impl/loan/OwnerPaymentServiceImpl.java
浏览文件 @
a95d3261
...
@@ -92,4 +92,13 @@ public class OwnerPaymentServiceImpl implements OwnerPaymentService {
...
@@ -92,4 +92,13 @@ public class OwnerPaymentServiceImpl implements OwnerPaymentService {
ownerPaymentDao
.
updateStatusAndMerchantRunningWaterNo
(
ownerPayment
);
ownerPaymentDao
.
updateStatusAndMerchantRunningWaterNo
(
ownerPayment
);
}
}
@Override
public
void
ownerPaymentRetryPay
(
Integer
id
)
{
OwnerPayment
ownerPayment
=
ownerPaymentDao
.
getEntityByKey
(
id
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
if
(!
OwnerPaymentEnum
.
Status
.
PAY_FAIL
.
getCode
().
equals
(
ownerPayment
.
getStatus
()))
{
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_STATUS_ERROR
);
}
ownerPaymentDao
.
updatePayStatus
(
id
,
OwnerPaymentEnum
.
Status
.
PAY_WAIT
.
getCode
());
}
}
}
performance-web/src/main/java/com/clx/performance/service/loan/OwnerPaymentService.java
浏览文件 @
a95d3261
...
@@ -16,4 +16,6 @@ public interface OwnerPaymentService {
...
@@ -16,4 +16,6 @@ public interface OwnerPaymentService {
CarrierOwnerPaymentVO
getOwnerPaymentDetail
(
Integer
id
);
CarrierOwnerPaymentVO
getOwnerPaymentDetail
(
Integer
id
);
void
pay
(
Integer
id
);
void
pay
(
Integer
id
);
void
ownerPaymentRetryPay
(
Integer
id
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论