Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
2f66aff9
提交
2f66aff9
authored
2月 21, 2024
作者:
huyufan
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/v10.7_borrowing_and_repayment_20240118' into test
上级
224d5f0b
b09cb1b3
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
131 行增加
和
9 行删除
+131
-9
NbBankConfig.java
.../java/com/clx/performance/config/nbbank/NbBankConfig.java
+1
-0
CarrierOwnerLoanRecordController.java
...ler/pc/loan/carrier/CarrierOwnerLoanRecordController.java
+11
-3
OwnerLoanRecordDaoImpl.java
...clx/performance/dao/impl/loan/OwnerLoanRecordDaoImpl.java
+8
-2
OwnerInfoService.java
...a/com/clx/performance/extranal/user/OwnerInfoService.java
+4
-0
OwnerInfoServiceImpl.java
.../performance/extranal/user/impl/OwnerInfoServiceImpl.java
+8
-0
OwnerLoanRecordServiceImpl.java
...ormance/service/impl/loan/OwnerLoanRecordServiceImpl.java
+80
-3
OwnerRepaymentServiceImpl.java
...formance/service/impl/loan/OwnerRepaymentServiceImpl.java
+17
-1
OwnerLoanRecordService.java
.../clx/performance/service/loan/OwnerLoanRecordService.java
+2
-0
没有找到文件。
performance-web/src/main/java/com/clx/performance/config/nbbank/NbBankConfig.java
浏览文件 @
2f66aff9
...
@@ -16,5 +16,6 @@ public class NbBankConfig {
...
@@ -16,5 +16,6 @@ public class NbBankConfig {
private
String
configFilePath
;
private
String
configFilePath
;
private
String
publicKeyPath
;
private
String
publicKeyPath
;
private
String
privateKeyPath
;
private
String
privateKeyPath
;
private
String
orderSupportBank
;
}
}
performance-web/src/main/java/com/clx/performance/controller/pc/loan/carrier/CarrierOwnerLoanRecordController.java
浏览文件 @
2f66aff9
...
@@ -19,6 +19,7 @@ import org.apache.ibatis.annotations.Param;
...
@@ -19,6 +19,7 @@ import org.apache.ibatis.annotations.Param;
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
...
@@ -47,6 +48,13 @@ public class CarrierOwnerLoanRecordController {
...
@@ -47,6 +48,13 @@ public class CarrierOwnerLoanRecordController {
return
Result
.
ok
();
return
Result
.
ok
();
}
}
@ApiOperation
(
value
=
"重新支付"
,
notes
=
"<br>By:胡宇帆"
)
@GetMapping
(
"/ownerLoanRecordRetryPay"
)
public
Result
<
Object
>
ownerLoanRecordRetryPay
(
@RequestParam
(
value
=
"loanNo"
)
@NotBlank
String
loanNo
)
{
ownerLoanRecordService
.
ownerLoanRecordRetryPay
(
loanNo
);
return
Result
.
ok
();
}
@ApiOperation
(
value
=
"分页搜索货主借款列表"
,
notes
=
"<br>By:艾庆国"
)
@ApiOperation
(
value
=
"分页搜索货主借款列表"
,
notes
=
"<br>By:艾庆国"
)
@PostMapping
(
"/pageOwnerLoanRecordOfOwner"
)
@PostMapping
(
"/pageOwnerLoanRecordOfOwner"
)
@UnitCovert
(
param
=
false
)
@UnitCovert
(
param
=
false
)
...
@@ -58,7 +66,7 @@ public class CarrierOwnerLoanRecordController {
...
@@ -58,7 +66,7 @@ public class CarrierOwnerLoanRecordController {
@ApiOperation
(
value
=
"收银台信息"
,
notes
=
"<br>By:刘海泉"
)
@ApiOperation
(
value
=
"收银台信息"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/getCashierInfo"
)
@GetMapping
(
"/getCashierInfo"
)
@UnitCovert
(
param
=
false
)
@UnitCovert
(
param
=
false
)
public
Result
<
CarrierCashierInfoVO
>
getCashierInfo
(
@Param
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
public
Result
<
CarrierCashierInfoVO
>
getCashierInfo
(
@
Request
Param
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
CarrierCashierInfoVO
vo
=
ownerLoanRecordService
.
getCashierInfo
(
id
);
CarrierCashierInfoVO
vo
=
ownerLoanRecordService
.
getCashierInfo
(
id
);
return
Result
.
ok
(
vo
);
return
Result
.
ok
(
vo
);
}
}
...
@@ -67,7 +75,7 @@ public class CarrierOwnerLoanRecordController {
...
@@ -67,7 +75,7 @@ public class CarrierOwnerLoanRecordController {
@ApiOperation
(
value
=
"订单支付详情"
,
notes
=
"<br>By:刘海泉"
)
@ApiOperation
(
value
=
"订单支付详情"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/getOrderPaymentDetail"
)
@GetMapping
(
"/getOrderPaymentDetail"
)
@UnitCovert
(
param
=
false
)
@UnitCovert
(
param
=
false
)
public
Result
<
OwnerOrderPaymentDetailVO
>
getOrderPaymentDetail
(
@Param
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
public
Result
<
OwnerOrderPaymentDetailVO
>
getOrderPaymentDetail
(
@
Request
Param
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
OwnerOrderPaymentDetailVO
vo
=
ownerLoanRecordService
.
getOrderPaymentDetail
(
id
);
OwnerOrderPaymentDetailVO
vo
=
ownerLoanRecordService
.
getOrderPaymentDetail
(
id
);
return
Result
.
ok
(
vo
);
return
Result
.
ok
(
vo
);
}
}
...
@@ -75,7 +83,7 @@ public class CarrierOwnerLoanRecordController {
...
@@ -75,7 +83,7 @@ public class CarrierOwnerLoanRecordController {
@ApiOperation
(
value
=
"转账支付详情"
,
notes
=
"<br>By:刘海泉"
)
@ApiOperation
(
value
=
"转账支付详情"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/getTransferPaymentDetail"
)
@GetMapping
(
"/getTransferPaymentDetail"
)
@UnitCovert
(
param
=
false
)
@UnitCovert
(
param
=
false
)
public
Result
<
CarrierTransferPaymentDetailVO
>
getTransferPaymentDetail
(
@Param
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
public
Result
<
CarrierTransferPaymentDetailVO
>
getTransferPaymentDetail
(
@
Request
Param
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
CarrierTransferPaymentDetailVO
vo
=
ownerLoanRecordService
.
getTransferPaymentDetail
(
id
);
CarrierTransferPaymentDetailVO
vo
=
ownerLoanRecordService
.
getTransferPaymentDetail
(
id
);
return
Result
.
ok
(
vo
);
return
Result
.
ok
(
vo
);
}
}
...
...
performance-web/src/main/java/com/clx/performance/dao/impl/loan/OwnerLoanRecordDaoImpl.java
浏览文件 @
2f66aff9
...
@@ -98,12 +98,18 @@ public class OwnerLoanRecordDaoImpl extends BaseDaoImpl<OwnerLoanRecordMapper, O
...
@@ -98,12 +98,18 @@ public class OwnerLoanRecordDaoImpl extends BaseDaoImpl<OwnerLoanRecordMapper, O
@Override
@Override
public
boolean
updatePaySuccess
(
OwnerLoanRecord
item
)
{
public
boolean
updatePaySuccess
(
OwnerLoanRecord
item
)
{
return
false
;
return
update
(
lUdWrapper
()
.
eq
(
OwnerLoanRecord:
:
getId
,
item
.
getId
())
.
set
(
OwnerLoanRecord:
:
getStatus
,
item
.
getStatus
())
);
}
}
@Override
@Override
public
boolean
updatePayFail
(
OwnerLoanRecord
item
)
{
public
boolean
updatePayFail
(
OwnerLoanRecord
item
)
{
return
false
;
return
update
(
lUdWrapper
()
.
eq
(
OwnerLoanRecord:
:
getId
,
item
.
getId
())
.
set
(
OwnerLoanRecord:
:
getStatus
,
item
.
getStatus
())
);
}
}
...
...
performance-web/src/main/java/com/clx/performance/extranal/user/OwnerInfoService.java
浏览文件 @
2f66aff9
package
com
.
clx
.
performance
.
extranal
.
user
;
package
com
.
clx
.
performance
.
extranal
.
user
;
import
com.clx.user.vo.feign.OwnerInfoFeignVO
;
import
com.clx.user.vo.feign.OwnerInfoFeignVO
;
import
com.clx.user.vo.pc.owner.OwnerBindCardVO
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
@@ -9,4 +10,7 @@ public interface OwnerInfoService {
...
@@ -9,4 +10,7 @@ public interface OwnerInfoService {
OwnerInfoFeignVO
getOwnerInfo
(
@RequestParam
(
"userNo"
)
Long
userNo
);
OwnerInfoFeignVO
getOwnerInfo
(
@RequestParam
(
"userNo"
)
Long
userNo
);
OwnerBindCardVO
getOwnerBindCard
(
Long
userNo
);
}
}
performance-web/src/main/java/com/clx/performance/extranal/user/impl/OwnerInfoServiceImpl.java
浏览文件 @
2f66aff9
...
@@ -3,6 +3,7 @@ package com.clx.performance.extranal.user.impl;
...
@@ -3,6 +3,7 @@ package com.clx.performance.extranal.user.impl;
import
com.clx.performance.extranal.user.OwnerInfoService
;
import
com.clx.performance.extranal.user.OwnerInfoService
;
import
com.clx.user.feign.OwnerInfoFeign
;
import
com.clx.user.feign.OwnerInfoFeign
;
import
com.clx.user.vo.feign.OwnerInfoFeignVO
;
import
com.clx.user.vo.feign.OwnerInfoFeignVO
;
import
com.clx.user.vo.pc.owner.OwnerBindCardVO
;
import
com.msl.common.base.Optional
;
import
com.msl.common.base.Optional
;
import
com.msl.common.enums.ResultCodeEnum
;
import
com.msl.common.enums.ResultCodeEnum
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
...
@@ -23,4 +24,11 @@ public class OwnerInfoServiceImpl implements OwnerInfoService {
...
@@ -23,4 +24,11 @@ public class OwnerInfoServiceImpl implements OwnerInfoService {
.
filter
(
Result:
:
succeed
).
map
(
Result:
:
getData
).
orElseThrow
(
ResultCodeEnum
.
FAIL
,
"未查询到对应的货主信息"
);
.
filter
(
Result:
:
succeed
).
map
(
Result:
:
getData
).
orElseThrow
(
ResultCodeEnum
.
FAIL
,
"未查询到对应的货主信息"
);
}
}
@Override
public
OwnerBindCardVO
getOwnerBindCard
(
Long
userNo
)
{
return
Optional
.
ofNullable
(
ownerInfoFeign
.
getOwnerInfoVO
(
userNo
))
.
filter
(
Result:
:
succeed
).
map
(
Result:
:
getData
).
orElseThrow
(
ResultCodeEnum
.
FAIL
,
"未查询到对应的货主绑卡信息"
);
}
}
}
performance-web/src/main/java/com/clx/performance/service/impl/loan/OwnerLoanRecordServiceImpl.java
浏览文件 @
2f66aff9
...
@@ -5,9 +5,11 @@ import com.alibaba.fastjson.JSON;
...
@@ -5,9 +5,11 @@ import com.alibaba.fastjson.JSON;
import
com.alibaba.fastjson.TypeReference
;
import
com.alibaba.fastjson.TypeReference
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.clx.order.enums.DeleteStatusEnum
;
import
com.clx.performance.component.IdGenerateSnowFlake
;
import
com.clx.performance.component.IdGenerateSnowFlake
;
import
com.clx.performance.config.loan.ClxPayeeConfig
;
import
com.clx.performance.config.loan.ClxPayeeConfig
;
import
com.clx.performance.config.loan.PaymentFromConfig
;
import
com.clx.performance.config.loan.PaymentFromConfig
;
import
com.clx.performance.config.nbbank.NbBankConfig
;
import
com.clx.performance.dao.OwnerBindCardRecordDao
;
import
com.clx.performance.dao.OwnerBindCardRecordDao
;
import
com.clx.performance.dao.loan.BorrowerDao
;
import
com.clx.performance.dao.loan.BorrowerDao
;
import
com.clx.performance.dao.loan.OwnerLoanAccountDao
;
import
com.clx.performance.dao.loan.OwnerLoanAccountDao
;
...
@@ -99,6 +101,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
...
@@ -99,6 +101,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
private
final
ContractEvidenceFeign
contractEvidenceFeign
;
private
final
ContractEvidenceFeign
contractEvidenceFeign
;
private
final
ContractTemplateFeign
contractTemplateFeign
;
private
final
ContractTemplateFeign
contractTemplateFeign
;
private
final
PaymentFromConfig
paymentFromConfig
;
private
final
PaymentFromConfig
paymentFromConfig
;
private
final
NbBankConfig
nbBankConfig
;
@Override
@Override
public
IPage
<
OwnerLoanRecordVO
>
pageOwnerLoanRecord
(
PageCarrierOwnerLoanRecordParam
param
)
{
public
IPage
<
OwnerLoanRecordVO
>
pageOwnerLoanRecord
(
PageCarrierOwnerLoanRecordParam
param
)
{
...
@@ -318,7 +321,17 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
...
@@ -318,7 +321,17 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getEntityByKey
(
id
).
orElseThrow
(
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getEntityByKey
(
id
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
PerformanceResultEnum
.
DATA_NOT_FIND
);
CarrierCashierInfoVO
vo
=
ownerLoanRecordStruct
.
convertCashierInfo
(
ownerLoanRecord
);
CarrierCashierInfoVO
vo
=
ownerLoanRecordStruct
.
convertCashierInfo
(
ownerLoanRecord
);
//TODO 设置支付方式和付款账户和银行名称 ,宇帆提供
Borrower
borrower
=
borrowerDao
.
getEntityByKey
(
ownerLoanRecord
.
getBorrowerId
()).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
if
(
Objects
.
equals
(
borrower
.
getDeleteStatus
(),
DeleteStatusEnum
.
NO
.
getCode
())){
throw
new
ServiceSystemException
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
}
vo
.
setOrderPayWay
(
false
);
String
bankName
=
borrower
.
getBankName
();
if
(
nbBankConfig
.
getOrderSupportBank
().
contains
(
bankName
)){
vo
.
setOrderPayWay
(
true
);
}
vo
.
setBankName
(
bankName
);
vo
.
setPayAccount
(
borrower
.
getBankCardNo
());
return
vo
;
return
vo
;
}
}
...
@@ -485,6 +498,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
...
@@ -485,6 +498,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
payFail
(
String
loanNo
){
public
void
payFail
(
String
loanNo
){
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getOneByField
(
OwnerLoanRecord:
:
getLoanNo
,
loanNo
)
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getOneByField
(
OwnerLoanRecord:
:
getLoanNo
,
loanNo
)
.
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
.
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
...
@@ -495,11 +509,12 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
...
@@ -495,11 +509,12 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
ownerLoanRecord
.
setStatus
(
OwnerLoanRecordEnum
.
Status
.
PAY_FAIL
.
getCode
());
ownerLoanRecord
.
setStatus
(
OwnerLoanRecordEnum
.
Status
.
PAY_FAIL
.
getCode
());
ownerLoanRecordDao
.
updatePay
Success
(
ownerLoanRecord
);
ownerLoanRecordDao
.
updatePay
Fail
(
ownerLoanRecord
);
}
}
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
paySuccess
(
String
loanNo
){
public
void
paySuccess
(
String
loanNo
){
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getOneByField
(
OwnerLoanRecord:
:
getLoanNo
,
loanNo
)
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getOneByField
(
OwnerLoanRecord:
:
getLoanNo
,
loanNo
)
.
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
.
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
...
@@ -510,9 +525,71 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
...
@@ -510,9 +525,71 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
}
}
ownerLoanRecord
.
setStatus
(
OwnerLoanRecordEnum
.
Status
.
PAY_SUCCESS
.
getCode
());
ownerLoanRecord
.
setStatus
(
OwnerLoanRecordEnum
.
Status
.
PAY_SUCCESS
.
getCode
());
while
(
true
)
{
OwnerLoanAccount
ownerLoanAccount
=
ownerLoanAccountDao
.
getOneByField
(
OwnerLoanAccount:
:
getOwnerUserNo
,
ownerLoanRecord
.
getOwnerUserNo
()).
get
();
OwnerLoanAccount
entity
=
new
OwnerLoanAccount
();
entity
.
setId
(
ownerLoanAccount
.
getId
());
entity
.
setFundingAccountBalance
(
BigDecimal
.
ZERO
);
entity
.
setFundingFrozenBalance
(
BigDecimal
.
ZERO
);
entity
.
setFundingUsableBalance
(
BigDecimal
.
ZERO
);
entity
.
setVirtuallyAccountBalance
(
ownerLoanRecord
.
getLoanBalance
());
entity
.
setVirtuallyFrozenBalance
(
BigDecimal
.
ZERO
);
entity
.
setVirtuallyUsableBalance
(
ownerLoanRecord
.
getLoanBalance
());
entity
.
setModifiedTime
(
ownerLoanAccount
.
getModifiedTime
());
Integer
flag
=
ownerLoanAccountDao
.
updateAccountCAS
(
entity
,
LocalDateTime
.
now
(),
true
);
if
(
flag
==
1
)
{
//生成借款流水
initOwnerLoanRunningWaterRecord
(
ownerLoanRecord
);
//生成还款记录
initOwnerRepayment
(
ownerLoanRecord
);
ownerLoanRecordDao
.
updatePaySuccess
(
ownerLoanRecord
);
break
;
}
}
}
@Override
public
void
ownerLoanRecordRetryPay
(
String
loanNo
)
{
BankTrade
bankTrade
=
bankTradeDao
.
selectByMerchantRunningWaterNo
(
loanNo
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getOneByField
(
OwnerLoanRecord:
:
getLoanNo
,
loanNo
)
.
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
borrowerConfigDao
.
selectByBorrowerIdAndType
(
ownerLoanRecord
.
getBorrowerId
(),
OwnerLoanRecordEnum
.
LoanType
.
FUND
.
getCode
())
.
orElseThrow
(
PerformanceResultEnum
.
BORROWER_CONFIG_TYPE_NOT_SUPPORT_ERROR
);
Borrower
borrower
=
borrowerDao
.
getEntityByKey
(
ownerLoanRecord
.
getBorrowerId
())
.
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
if
(
BankTradeEnum
.
TradeType
.
ORDER_DIRECT_PAY
.
getCode
().
equals
(
bankTrade
.
getTradeType
()))
{
//资金 TODO 调宁波银企直连的产品,从诚联信账户中给鑫祥和执行转账
// 订单支付
NbBankOrderPayResultVO
orderPayResultVO
=
bankService
.
orderDirectPay
(
Long
.
valueOf
(
loanNo
),
ownerLoanRecord
.
getLoanBalance
().
intValue
(),
borrower
.
getOpenBankId
(),
borrower
.
getBankCardNo
(),
borrower
.
getName
());
ownerLoanRecord
.
setRunningWaterOpenNo
(
orderPayResultVO
.
getTransSeqNo
());
ownerLoanRecord
.
setMerchantRunningWaterNo
(
orderPayResultVO
.
getMerSeqNo
());
ownerLoanRecord
.
setRemittanceIdentificationCode
(
null
);
ownerLoanRecord
.
setStatus
(
OwnerLoanRecordEnum
.
Status
.
PAYING
.
getCode
());
ownerLoanRecord
.
setLoanResidueBalance
(
ownerLoanRecord
.
getLoanBalance
());
ownerLoanRecord
.
setLendingParty
(
borrower
.
getName
());
ownerLoanRecord
.
setLendingPartyAccount
(
borrower
.
getBankCardNo
());
}
else
{
//资金 TODO 调宁波银企直连的产品,从诚联信账户中给鑫祥和执行转账
// 转账支付
NbBankOrderPayResultVO
orderPayResultVO
=
bankService
.
orderTransferPay
(
ownerLoanRecord
.
getLoanBalance
().
intValue
());
ownerLoanRecord
.
setRunningWaterOpenNo
(
orderPayResultVO
.
getTransSeqNo
());
ownerLoanRecord
.
setMerchantRunningWaterNo
(
orderPayResultVO
.
getMerSeqNo
());
ownerLoanRecord
.
setRemittanceIdentificationCode
(
orderPayResultVO
.
getSignNo
());
ownerLoanRecord
.
setStatus
(
OwnerLoanRecordEnum
.
Status
.
PAYING
.
getCode
());
ownerLoanRecord
.
setLoanResidueBalance
(
ownerLoanRecord
.
getLoanBalance
());
ownerLoanRecord
.
setLendingParty
(
null
);
ownerLoanRecord
.
setLendingPartyAccount
(
null
);
}
// 更新借款支付信息
ownerLoanRecordDao
.
updatePay
(
ownerLoanRecord
);
ownerLoanRecordDao
.
updatePaySuccess
(
ownerLoanRecord
);
}
}
public
void
generateFrozenOwnerLoanRunningWater
(
OwnerLoanRecord
ownerLoanRecord
,
String
childNo
,
BigDecimal
orderChildPrice
)
{
public
void
generateFrozenOwnerLoanRunningWater
(
OwnerLoanRecord
ownerLoanRecord
,
String
childNo
,
BigDecimal
orderChildPrice
)
{
...
...
performance-web/src/main/java/com/clx/performance/service/impl/loan/OwnerRepaymentServiceImpl.java
浏览文件 @
2f66aff9
...
@@ -7,9 +7,11 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
...
@@ -7,9 +7,11 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.clx.performance.config.loan.ClxPayeeConfig
;
import
com.clx.performance.config.loan.ClxPayeeConfig
;
import
com.clx.performance.config.loan.PaymentFromConfig
;
import
com.clx.performance.config.loan.PaymentFromConfig
;
import
com.clx.performance.config.nbbank.NbBankConfig
;
import
com.clx.performance.dao.loan.OwnerRepaymentDao
;
import
com.clx.performance.dao.loan.OwnerRepaymentDao
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.loan.OwnerRePaymentEnum
;
import
com.clx.performance.enums.loan.OwnerRePaymentEnum
;
import
com.clx.performance.extranal.user.impl.OwnerInfoServiceImpl
;
import
com.clx.performance.model.loan.OwnerRepayment
;
import
com.clx.performance.model.loan.OwnerRepayment
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerRepaymentParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerRepaymentParam
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerRepaymentOfOwner
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerRepaymentOfOwner
;
...
@@ -21,6 +23,9 @@ import com.clx.performance.vo.pc.loan.owner.ExportOwnerRepaymentVO;
...
@@ -21,6 +23,9 @@ import com.clx.performance.vo.pc.loan.owner.ExportOwnerRepaymentVO;
import
com.clx.performance.vo.pc.loan.owner.OwnerCashierInfoVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerCashierInfoVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerOrderPaymentDetailVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerOrderPaymentDetailVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerTransferPaymentDetailVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerTransferPaymentDetailVO
;
import
com.clx.user.feign.OwnerInfoFeign
;
import
com.clx.user.vo.feign.OwnerInfoFeignVO
;
import
com.clx.user.vo.pc.owner.OwnerBindCardVO
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
import
com.msl.common.utils.DateUtils
;
import
com.msl.common.utils.DateUtils
;
import
com.msl.document.api.feign.ContractEvidenceFeign
;
import
com.msl.document.api.feign.ContractEvidenceFeign
;
...
@@ -51,6 +56,9 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
...
@@ -51,6 +56,9 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
private
final
ContractEvidenceFeign
contractEvidenceFeign
;
private
final
ContractEvidenceFeign
contractEvidenceFeign
;
private
final
ContractTemplateFeign
contractTemplateFeign
;
private
final
ContractTemplateFeign
contractTemplateFeign
;
private
final
PaymentFromConfig
paymentFromConfig
;
private
final
PaymentFromConfig
paymentFromConfig
;
private
final
OwnerInfoServiceImpl
ownerInfoService
;
private
final
NbBankConfig
nbBankConfig
;
@Override
@Override
public
IPage
<
OwnerRepaymentVO
>
pageOwnerRepayment
(
PageCarrierOwnerRepaymentParam
param
)
{
public
IPage
<
OwnerRepaymentVO
>
pageOwnerRepayment
(
PageCarrierOwnerRepaymentParam
param
)
{
IPage
<
OwnerRepayment
>
page
=
ownerRepaymentDao
.
pageOwnerRepayment
(
param
);
IPage
<
OwnerRepayment
>
page
=
ownerRepaymentDao
.
pageOwnerRepayment
(
param
);
...
@@ -72,7 +80,15 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
...
@@ -72,7 +80,15 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
OwnerRepayment
ownerRepayment
=
ownerRepaymentDao
.
getEntityByKey
(
id
).
orElseThrow
(
OwnerRepayment
ownerRepayment
=
ownerRepaymentDao
.
getEntityByKey
(
id
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
PerformanceResultEnum
.
DATA_NOT_FIND
);
OwnerCashierInfoVO
vo
=
ownerRepaymentStruct
.
convertCashierInfo
(
ownerRepayment
);
OwnerCashierInfoVO
vo
=
ownerRepaymentStruct
.
convertCashierInfo
(
ownerRepayment
);
//TODO 设置支付方式和付款账户和银行名称 ,宇帆提供
OwnerBindCardVO
bindCard
=
ownerInfoService
.
getOwnerBindCard
(
ownerRepayment
.
getOwnerUserNo
());
String
ownerAccountBank
=
bindCard
.
getOwnerAccountBank
();
vo
.
setOrderPayWay
(
false
);
if
(
nbBankConfig
.
getOrderSupportBank
().
contains
(
ownerAccountBank
)){
vo
.
setOrderPayWay
(
true
);
}
vo
.
setBankName
(
ownerAccountBank
);
vo
.
setPayAccount
(
bindCard
.
getOwnerBankAccount
());
return
vo
;
return
vo
;
}
}
...
...
performance-web/src/main/java/com/clx/performance/service/loan/OwnerLoanRecordService.java
浏览文件 @
2f66aff9
...
@@ -45,4 +45,6 @@ public interface OwnerLoanRecordService {
...
@@ -45,4 +45,6 @@ public interface OwnerLoanRecordService {
void
payFail
(
String
loanNo
);
void
payFail
(
String
loanNo
);
void
paySuccess
(
String
loanNo
);
void
paySuccess
(
String
loanNo
);
void
ownerLoanRecordRetryPay
(
String
loanNo
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论