Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
c84f277f
提交
c84f277f
authored
2月 02, 2024
作者:
huyufan
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/v10.7_borrowing_and_repayment_20240118'…
Merge remote-tracking branch 'origin/v10.7_borrowing_and_repayment_20240118' into v10.7_borrowing_and_repayment_20240118
上级
cad22df2
3c6b5ce7
显示空白字符变更
内嵌
并排
正在显示
33 个修改的文件
包含
471 行增加
和
136 行删除
+471
-136
NbBankStatusEnum.java
...va/com/clx/performance/enums/nbbank/NbBankStatusEnum.java
+37
-0
CashierInfoVO.java
...com/clx/performance/vo/pc/loan/carrier/CashierInfoVO.java
+46
-0
OrderPaymentDetailVO.java
.../performance/vo/pc/loan/carrier/OrderPaymentDetailVO.java
+63
-0
OwnerLoanAccountVO.java
...lx/performance/vo/pc/loan/carrier/OwnerLoanAccountVO.java
+0
-1
OwnerLoanRecordVO.java
...clx/performance/vo/pc/loan/carrier/OwnerLoanRecordVO.java
+6
-0
OwnerRepaymentVO.java
.../clx/performance/vo/pc/loan/carrier/OwnerRepaymentVO.java
+5
-4
TransferPaymentDetailVO.java
...rformance/vo/pc/loan/carrier/TransferPaymentDetailVO.java
+64
-0
OrderPaymentDetailVO.java
...lx/performance/vo/pc/loan/owner/OrderPaymentDetailVO.java
+5
-3
OwnerLoanRecordDetail.java
...x/performance/vo/pc/loan/owner/OwnerLoanRecordDetail.java
+7
-4
NbBankOrderPayResultVO.java
.../clx/performance/vo/pc/nbbank/NbBankOrderPayResultVO.java
+2
-1
NbBankOrderResultVO.java
...com/clx/performance/vo/pc/nbbank/NbBankOrderResultVO.java
+2
-1
PaymentFromConfig.java
...va/com/clx/performance/config/loan/PaymentFromConfig.java
+4
-3
CarrierOwnerLoanAccountController.java
...er/pc/loan/carrier/CarrierOwnerLoanAccountController.java
+2
-0
CarrierOwnerLoanAccountWaterRecordController.java
...carrier/CarrierOwnerLoanAccountWaterRecordController.java
+3
-1
CarrierOwnerLoanRecordController.java
...ler/pc/loan/carrier/CarrierOwnerLoanRecordController.java
+42
-4
CarrierOwnerRepaymentController.java
...ller/pc/loan/carrier/CarrierOwnerRepaymentController.java
+1
-0
OwnerLoanRecordController.java
...e/controller/pc/loan/owner/OwnerLoanRecordController.java
+12
-5
TempBankController.java
...m/clx/performance/controller/temp/TempBankController.java
+1
-1
OwnerLoanRecord.java
.../java/com/clx/performance/model/loan/OwnerLoanRecord.java
+14
-0
OwnerRepayment.java
...n/java/com/clx/performance/model/loan/OwnerRepayment.java
+4
-5
OwnerLoanAccountServiceImpl.java
...rmance/service/impl/loan/OwnerLoanAccountServiceImpl.java
+2
-0
OwnerLoanRecordServiceImpl.java
...ormance/service/impl/loan/OwnerLoanRecordServiceImpl.java
+74
-3
OwnerRepaymentServiceImpl.java
...formance/service/impl/loan/OwnerRepaymentServiceImpl.java
+6
-8
NbBankServiceImpl.java
...nce/service/impl/thirdparty/nbbank/NbBankServiceImpl.java
+25
-45
OwnerLoanRecordService.java
.../clx/performance/service/loan/OwnerLoanRecordService.java
+12
-0
BorrowerConfigSqlProvider.java
...mance/sqlProvider/borrower/BorrowerConfigSqlProvider.java
+1
-1
BorrowerSqlProvider.java
...performance/sqlProvider/borrower/BorrowerSqlProvider.java
+1
-1
OwnerLoanAccountRunningWaterRecordSqlProvider.java
...rrower/OwnerLoanAccountRunningWaterRecordSqlProvider.java
+2
-1
OwnerLoanAccountSqlProvider.java
...nce/sqlProvider/borrower/OwnerLoanAccountSqlProvider.java
+1
-1
OwnerLoanRecordSqlProvider.java
...ance/sqlProvider/borrower/OwnerLoanRecordSqlProvider.java
+11
-6
OwnerRepaymentSqlProvider.java
...mance/sqlProvider/borrower/OwnerRepaymentSqlProvider.java
+9
-5
OwnerLoanRecordStruct.java
...om/clx/performance/struct/loan/OwnerLoanRecordStruct.java
+7
-0
config-nbbank.json
performance-web/src/main/resources/bank/config-nbbank.json
+0
-32
没有找到文件。
performance-api/src/main/java/com/clx/performance/enums/nbbank/NbBankStatusEnum.java
0 → 100644
浏览文件 @
c84f277f
package
com
.
clx
.
performance
.
enums
.
nbbank
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
java.util.Arrays
;
import
java.util.Optional
;
public
enum
NbBankStatusEnum
{
;
@Getter
@AllArgsConstructor
public
enum
Status
{
TEMP
(
0
,
"中间态"
),
SUCCESS
(
1
,
"交易成功"
),
FAIL
(
2
,
"交易失败"
),
ACCEPT
(
3
,
"交易已受理"
),
INIT
(
4
,
"订单初始状态"
),
NOT_FOUND
(
5
,
"交易不存在"
),
TIMEOUT
(
6
,
"交易超时,须发起交易结果查询"
),
;
private
final
Integer
code
;
private
final
String
msg
;
public
static
Optional
<
Status
>
getByCode
(
int
code
)
{
return
Arrays
.
stream
(
values
()).
filter
(
e
->
e
.
code
==
code
).
findFirst
();
}
public
static
String
getMsgByCode
(
int
code
)
{
return
getByCode
(
code
).
map
(
Status:
:
getMsg
).
orElse
(
null
);
}
}
}
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/CashierInfoVO.java
0 → 100644
浏览文件 @
c84f277f
package
com
.
clx
.
performance
.
vo
.
pc
.
loan
.
carrier
;
import
com.msl.common.convertor.type.MoneyOutConvert
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.*
;
import
java.math.BigDecimal
;
import
java.util.List
;
/**
* @ClassName CashierInfoVO
* @Description
* @Author kavin
* @Date 2024/1/24 16:24
* @Version 1.0
*/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public
class
CashierInfoVO
{
@ApiModelProperty
(
"借款单号"
)
private
Long
loanNo
;
@ApiModelProperty
(
"货物名称"
)
private
String
goodsName
;
@ApiModelProperty
(
"交易流水号(第三方)"
)
private
String
runningWaterOpenNo
;
@MoneyOutConvert
@ApiModelProperty
(
"订单金额"
)
private
BigDecimal
loanBalance
;
@ApiModelProperty
(
"支付方式"
)
private
List
<
Integer
>
payWay
;
@ApiModelProperty
(
"付款账户"
)
private
String
payAccount
;
}
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/OrderPaymentDetailVO.java
0 → 100644
浏览文件 @
c84f277f
package
com
.
clx
.
performance
.
vo
.
pc
.
loan
.
carrier
;
import
com.clx.performance.enums.loan.OwnerLoanRecordEnum
;
import
com.clx.performance.enums.loan.OwnerRePaymentEnum
;
import
com.msl.common.convertor.type.MoneyOutConvert
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.*
;
import
java.math.BigDecimal
;
/**
* @ClassName OrderPaymentDetailVO
* @Description
* @Author kavin
* @Date 2024/1/24 16:45
* @Version 1.0
*/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public
class
OrderPaymentDetailVO
{
@ApiModelProperty
(
"借款单号"
)
private
Long
loanNo
;
@ApiModelProperty
(
"付款方"
)
private
String
lendingParty
;
@ApiModelProperty
(
"付款账户"
)
private
String
lendingPartyAccount
;
@ApiModelProperty
(
"收款方"
)
private
String
borrower
;
@ApiModelProperty
(
"收款账户"
)
private
String
borrowerAccount
;
@MoneyOutConvert
@ApiModelProperty
(
"订单金额"
)
private
BigDecimal
loanBalance
;
@ApiModelProperty
(
"10 待审批 20 审批通过 30 审批拒绝 40 付款中 50 付款成功 60 付款失败 "
)
private
Integer
status
;
@ApiModelProperty
(
"订单支付状态 10 待付款 40 付款中 50 付款成功 60 付款失败"
)
private
String
statusMsg
;
public
String
getStatusMsg
(){
return
OwnerLoanRecordEnum
.
Status
.
getMsgByCode
(
status
);
}
@ApiModelProperty
(
"付款最终时间"
)
public
String
finalPaymentTime
;
@ApiModelProperty
(
"订单创建时间"
)
public
String
createTime
;
}
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/OwnerLoanAccountVO.java
浏览文件 @
c84f277f
...
@@ -34,7 +34,6 @@ public class OwnerLoanAccountVO {
...
@@ -34,7 +34,6 @@ public class OwnerLoanAccountVO {
@ApiModelProperty
(
value
=
"默认 3:借款账户"
,
example
=
"3"
)
@ApiModelProperty
(
value
=
"默认 3:借款账户"
,
example
=
"3"
)
private
Integer
accountType
;
private
Integer
accountType
;
@ApiModelProperty
(
value
=
"账户余额 (元) "
,
example
=
"1.23"
)
@ApiModelProperty
(
value
=
"账户余额 (元) "
,
example
=
"1.23"
)
private
BigDecimal
amount
;
private
BigDecimal
amount
;
public
BigDecimal
getAmount
()
{
public
BigDecimal
getAmount
()
{
...
...
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/OwnerLoanRecordVO.java
浏览文件 @
c84f277f
...
@@ -37,6 +37,12 @@ public class OwnerLoanRecordVO {
...
@@ -37,6 +37,12 @@ public class OwnerLoanRecordVO {
@ApiModelProperty
(
"交易流水号(第三方)"
)
@ApiModelProperty
(
"交易流水号(第三方)"
)
private
Long
runningWaterOpenNo
;
private
Long
runningWaterOpenNo
;
@ApiModelProperty
(
"商户流水号"
)
private
String
merchantRunningWaterNo
;
@ApiModelProperty
(
"汇款识别码"
)
private
String
remittanceIdentificationCode
;
@ApiModelProperty
(
"借款单号"
)
@ApiModelProperty
(
"借款单号"
)
private
Long
loanNo
;
private
Long
loanNo
;
...
...
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/OwnerRepaymentVO.java
浏览文件 @
c84f277f
...
@@ -57,9 +57,6 @@ public class OwnerRepaymentVO {
...
@@ -57,9 +57,6 @@ public class OwnerRepaymentVO {
@ApiModelProperty
(
"付款账户"
)
@ApiModelProperty
(
"付款账户"
)
private
String
paymentAccount
;
private
String
paymentAccount
;
@ApiModelProperty
(
"生成付款申请单时间"
)
private
String
paymentApplicationFormTime
;
@ApiModelProperty
(
"汇款识别码"
)
@ApiModelProperty
(
"汇款识别码"
)
private
String
remittanceIdentificationCode
;
private
String
remittanceIdentificationCode
;
...
@@ -74,6 +71,10 @@ public class OwnerRepaymentVO {
...
@@ -74,6 +71,10 @@ public class OwnerRepaymentVO {
private
String
payeeAccount
;
private
String
payeeAccount
;
@ApiModelProperty
(
"货物名称"
)
private
String
goodsName
;
@ApiModelProperty
(
"借款单号"
)
@ApiModelProperty
(
"借款单号"
)
private
Long
loanNo
;
private
Long
loanNo
;
...
@@ -128,7 +129,7 @@ public class OwnerRepaymentVO {
...
@@ -128,7 +129,7 @@ public class OwnerRepaymentVO {
private
String
createBy
;
private
String
createBy
;
@ApiModelProperty
(
"
创建
时间"
)
@ApiModelProperty
(
"
生成付款申请单
时间"
)
private
String
createTime
;
private
String
createTime
;
...
...
performance-api/src/main/java/com/clx/performance/vo/pc/loan/carrier/TransferPaymentDetailVO.java
0 → 100644
浏览文件 @
c84f277f
package
com
.
clx
.
performance
.
vo
.
pc
.
loan
.
carrier
;
import
com.clx.performance.enums.loan.OwnerLoanRecordEnum
;
import
com.clx.performance.enums.loan.OwnerRePaymentEnum
;
import
com.msl.common.convertor.type.MoneyOutConvert
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.*
;
import
java.math.BigDecimal
;
/**
* @ClassName TransferPaymentDetailVO
* @Description
* @Author kavin
* @Date 2024/1/24 16:57
* @Version 1.0
*/
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public
class
TransferPaymentDetailVO
{
@ApiModelProperty
(
"收款户名"
)
private
String
payee
;
@ApiModelProperty
(
"收款账号"
)
private
String
payeeAccount
;
@ApiModelProperty
(
"汇款识别码"
)
private
String
remittanceIdentificationCode
;
@ApiModelProperty
(
"收款银行"
)
private
String
payeeBank
;
@ApiModelProperty
(
"收款行号"
)
private
String
payeeBankNo
;
@MoneyOutConvert
@ApiModelProperty
(
"订单金额"
)
private
BigDecimal
loanBalance
;
@ApiModelProperty
(
"订单支付状态 10 待付款 40 付款中 50 付款成功 60 付款失败"
)
private
Integer
status
;
@ApiModelProperty
(
"订单支付状态 10 待付款 40 付款中 50 付款成功 60 付款失败"
)
private
String
statusMsg
;
public
String
getStatusMsg
(){
return
OwnerLoanRecordEnum
.
Status
.
getMsgByCode
(
status
);
}
@ApiModelProperty
(
"付款最后时间"
)
public
String
finalPaymentTime
;
}
performance-api/src/main/java/com/clx/performance/vo/pc/loan/owner/OrderPaymentDetailVO.java
浏览文件 @
c84f277f
...
@@ -23,12 +23,10 @@ import java.time.LocalDateTime;
...
@@ -23,12 +23,10 @@ import java.time.LocalDateTime;
@Builder
@Builder
public
class
OrderPaymentDetailVO
{
public
class
OrderPaymentDetailVO
{
@ApiModelProperty
(
"还款单号"
)
@ApiModelProperty
(
"还款单号"
)
private
Long
repaymentNo
;
private
Long
repaymentNo
;
@ApiModelProperty
(
"订单创建时间"
)
private
LocalDateTime
paymentApplicationFormTime
;
@ApiModelProperty
(
"付款方"
)
@ApiModelProperty
(
"付款方"
)
private
String
payment
;
private
String
payment
;
...
@@ -60,4 +58,8 @@ public class OrderPaymentDetailVO {
...
@@ -60,4 +58,8 @@ public class OrderPaymentDetailVO {
@ApiModelProperty
(
"付款最终时间"
)
@ApiModelProperty
(
"付款最终时间"
)
public
String
finalPaymentTime
;
public
String
finalPaymentTime
;
@ApiModelProperty
(
"订单创建时间"
)
public
String
createTime
;
}
}
performance-api/src/main/java/com/clx/performance/vo/pc/loan/owner/OwnerLoanRecordDetail.java
浏览文件 @
c84f277f
...
@@ -18,14 +18,17 @@ import java.util.List;
...
@@ -18,14 +18,17 @@ import java.util.List;
@Setter
@Setter
public
class
OwnerLoanRecordDetail
{
public
class
OwnerLoanRecordDetail
{
@ApiModelProperty
(
"借款方下拉选"
)
@ApiModelProperty
(
"公司名称(借款方)"
)
private
String
companyName
;
@ApiModelProperty
(
"借出方下拉选"
)
private
List
<
BorrowerSelectVO
>
borrowerList
;
private
List
<
BorrowerSelectVO
>
borrowerList
;
@ApiModelProperty
(
"
借款方下拉选
"
)
@ApiModelProperty
(
"
收款方
"
)
private
List
<
PayeeVO
>
payeeList
;
private
List
<
PayeeVO
>
payeeList
;
@ApiModelProperty
(
"公司名称"
)
private
String
companyName
;
...
...
performance-api/src/main/java/com/clx/performance/vo/pc/nbbank/NbBankOrderPayResultVO.java
浏览文件 @
c84f277f
...
@@ -31,7 +31,7 @@ public class NbBankOrderPayResultVO {
...
@@ -31,7 +31,7 @@ public class NbBankOrderPayResultVO {
private
String
transSeqNo
;
private
String
transSeqNo
;
@ApiModelProperty
(
value
=
"转账编号 (转账专用)"
,
example
=
"123456"
)
@ApiModelProperty
(
value
=
"转账编号 (转账专用)"
,
example
=
"123456"
)
private
String
signNo
;
private
String
signNo
;
@ApiModelProperty
(
value
=
"关单时间
(转账专用)
"
,
example
=
""
)
@ApiModelProperty
(
value
=
"关单时间"
,
example
=
""
)
private
String
closeDtTm
;
private
String
closeDtTm
;
}
}
\ No newline at end of file
performance-api/src/main/java/com/clx/performance/vo/pc/nbbank/NbBankOrderResultVO.java
浏览文件 @
c84f277f
...
@@ -34,6 +34,6 @@ public class NbBankOrderResultVO {
...
@@ -34,6 +34,6 @@ public class NbBankOrderResultVO {
private
String
signNo
;
private
String
signNo
;
@ApiModelProperty
(
value
=
"交易状态:1交易成功 2交易失败 3交易已受理 4订单初始状态 5交易不存在 6交易超时"
,
example
=
"1"
)
@ApiModelProperty
(
value
=
"交易状态:1交易成功 2交易失败 3交易已受理 4订单初始状态 5交易不存在 6交易超时"
,
example
=
"1"
)
private
Integer
transS
tatus
;
private
Integer
s
tatus
;
}
}
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/config/loan/PaymentFromConfig.java
浏览文件 @
c84f277f
...
@@ -11,8 +11,9 @@ import org.springframework.context.annotation.Configuration;
...
@@ -11,8 +11,9 @@ import org.springframework.context.annotation.Configuration;
@ConfigurationProperties
(
prefix
=
"payment.form"
)
@ConfigurationProperties
(
prefix
=
"payment.form"
)
public
class
PaymentFromConfig
{
public
class
PaymentFromConfig
{
//模版编号
//借款模版编号
private
Long
templateNo
;
private
Long
loanTemplateNo
;
//还款模版编号
private
Long
repaymentTemplateNo
;
}
}
performance-web/src/main/java/com/clx/performance/controller/pc/loan/carrier/CarrierOwnerLoanAccountController.java
浏览文件 @
c84f277f
...
@@ -5,6 +5,7 @@ import com.clx.performance.param.pc.loan.carrier.PageOwnerLoanAccountParam;
...
@@ -5,6 +5,7 @@ import com.clx.performance.param.pc.loan.carrier.PageOwnerLoanAccountParam;
import
com.clx.performance.service.loan.OwnerLoanAccountService
;
import
com.clx.performance.service.loan.OwnerLoanAccountService
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanAccountVO
;
import
com.msl.common.base.PageData
;
import
com.msl.common.base.PageData
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -29,6 +30,7 @@ public class CarrierOwnerLoanAccountController {
...
@@ -29,6 +30,7 @@ public class CarrierOwnerLoanAccountController {
@ApiOperation
(
value
=
"分页搜索货主借款账户列表"
,
notes
=
"<br>By:艾庆国"
)
@ApiOperation
(
value
=
"分页搜索货主借款账户列表"
,
notes
=
"<br>By:艾庆国"
)
@PostMapping
(
"/pageOwnerLoanAccount"
)
@PostMapping
(
"/pageOwnerLoanAccount"
)
@UnitCovert
(
param
=
false
)
public
Result
<
PageData
<
OwnerLoanAccountVO
>>
pageOwnerLoanAccount
(
@RequestBody
@Validated
PageOwnerLoanAccountParam
param
)
{
public
Result
<
PageData
<
OwnerLoanAccountVO
>>
pageOwnerLoanAccount
(
@RequestBody
@Validated
PageOwnerLoanAccountParam
param
)
{
IPage
<
OwnerLoanAccountVO
>
page
=
ownerLoanAccountService
.
pageOwnerLoanAccount
(
param
);
IPage
<
OwnerLoanAccountVO
>
page
=
ownerLoanAccountService
.
pageOwnerLoanAccount
(
param
);
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
...
...
performance-web/src/main/java/com/clx/performance/controller/pc/loan/carrier/CarrierOwnerLoanAccountWaterRecordController.java
浏览文件 @
c84f277f
...
@@ -5,6 +5,7 @@ import com.clx.performance.param.pc.loan.carrier.PageOwnerLoanAccountWaterRecord
...
@@ -5,6 +5,7 @@ import com.clx.performance.param.pc.loan.carrier.PageOwnerLoanAccountWaterRecord
import
com.clx.performance.service.loan.OwnerLoanAccountRunningWaterRecordService
;
import
com.clx.performance.service.loan.OwnerLoanAccountRunningWaterRecordService
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanAccountRunningWaterRecordVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanAccountRunningWaterRecordVO
;
import
com.msl.common.base.PageData
;
import
com.msl.common.base.PageData
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -20,13 +21,14 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -20,13 +21,14 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RestController
@RequestMapping
(
value
=
"/pc/carrier/ownerLoanAccountWaterRecord"
)
@RequestMapping
(
value
=
"/pc/carrier/ownerLoanAccountWaterRecord"
)
@Validated
@Validated
@Api
(
tags
=
"承运端-借款账户"
)
@Api
(
tags
=
"承运端-借款账户
流水
"
)
public
class
CarrierOwnerLoanAccountWaterRecordController
{
public
class
CarrierOwnerLoanAccountWaterRecordController
{
@Autowired
@Autowired
private
OwnerLoanAccountRunningWaterRecordService
ownerLoanAccountRunningWaterRecordService
;
private
OwnerLoanAccountRunningWaterRecordService
ownerLoanAccountRunningWaterRecordService
;
@ApiOperation
(
value
=
"分页搜索货主借款账户流水列表"
,
notes
=
"<br>By:艾庆国"
)
@ApiOperation
(
value
=
"分页搜索货主借款账户流水列表"
,
notes
=
"<br>By:艾庆国"
)
@PostMapping
(
"/pageOwnerLoanAccountWaterOfOwner"
)
@PostMapping
(
"/pageOwnerLoanAccountWaterOfOwner"
)
@UnitCovert
(
param
=
false
)
public
Result
<
PageData
<
OwnerLoanAccountRunningWaterRecordVO
>>
pageOwnerLoanAccountWaterOfOwner
(
@RequestBody
@Validated
PageOwnerLoanAccountWaterRecordOfOwnerParam
param
)
{
public
Result
<
PageData
<
OwnerLoanAccountRunningWaterRecordVO
>>
pageOwnerLoanAccountWaterOfOwner
(
@RequestBody
@Validated
PageOwnerLoanAccountWaterRecordOfOwnerParam
param
)
{
IPage
<
OwnerLoanAccountRunningWaterRecordVO
>
page
=
ownerLoanAccountRunningWaterRecordService
.
pageOwnerLoanAccountWaterOfOwner
(
param
);
IPage
<
OwnerLoanAccountRunningWaterRecordVO
>
page
=
ownerLoanAccountRunningWaterRecordService
.
pageOwnerLoanAccountWaterOfOwner
(
param
);
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
...
...
performance-web/src/main/java/com/clx/performance/controller/pc/loan/carrier/CarrierOwnerLoanRecordController.java
浏览文件 @
c84f277f
...
@@ -4,8 +4,12 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
...
@@ -4,8 +4,12 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.clx.performance.param.pc.loan.carrier.CarrierOwnerLoanRecordApproveParam
;
import
com.clx.performance.param.pc.loan.carrier.CarrierOwnerLoanRecordApproveParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerLoanRecordParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerLoanRecordParam
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerLoanRecordOfOwner
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerLoanRecordOfOwner
;
import
com.clx.performance.param.pc.loan.owner.ExportPaymentApplicationFormParam
;
import
com.clx.performance.service.loan.OwnerLoanRecordService
;
import
com.clx.performance.service.loan.OwnerLoanRecordService
;
import
com.clx.performance.vo.pc.loan.carrier.CashierInfoVO
;
import
com.clx.performance.vo.pc.loan.carrier.OrderPaymentDetailVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanRecordVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanRecordVO
;
import
com.clx.performance.vo.pc.loan.carrier.TransferPaymentDetailVO
;
import
com.msl.common.base.PageData
;
import
com.msl.common.base.PageData
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
...
@@ -13,11 +17,11 @@ import io.swagger.annotations.Api;
...
@@ -13,11 +17,11 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
javax.validation.constraints.NotNull
;
import
org.springframework.web.bind.annotation.RestController
;
@Slf4j
@Slf4j
@RestController
@RestController
...
@@ -47,9 +51,43 @@ public class CarrierOwnerLoanRecordController {
...
@@ -47,9 +51,43 @@ public class CarrierOwnerLoanRecordController {
@ApiOperation
(
value
=
"分页搜索货主借款列表"
,
notes
=
"<br>By:艾庆国"
)
@ApiOperation
(
value
=
"分页搜索货主借款列表"
,
notes
=
"<br>By:艾庆国"
)
@PostMapping
(
"/pageOwnerLoanRecordOfOwner"
)
@PostMapping
(
"/pageOwnerLoanRecordOfOwner"
)
@UnitCovert
(
param
=
false
)
public
Result
<
PageData
<
OwnerLoanRecordVO
>>
pageOwnerLoanRecordOfOwner
(
@RequestBody
@Validated
PageOwnerLoanRecordOfOwner
param
)
{
public
Result
<
PageData
<
OwnerLoanRecordVO
>>
pageOwnerLoanRecordOfOwner
(
@RequestBody
@Validated
PageOwnerLoanRecordOfOwner
param
)
{
IPage
<
OwnerLoanRecordVO
>
page
=
ownerLoanRecordService
.
pageOwnerLoanRecordOfOwner
(
param
);
IPage
<
OwnerLoanRecordVO
>
page
=
ownerLoanRecordService
.
pageOwnerLoanRecordOfOwner
(
param
);
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
}
}
@ApiOperation
(
value
=
"收银台信息"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/getCashierInfo"
)
@UnitCovert
(
param
=
false
)
public
Result
<
CashierInfoVO
>
getCashierInfo
(
@Param
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
CashierInfoVO
vo
=
ownerLoanRecordService
.
getCashierInfo
(
id
);
return
Result
.
ok
(
vo
);
}
@ApiOperation
(
value
=
"订单支付详情"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/getOrderPaymentDetail"
)
@UnitCovert
(
param
=
false
)
public
Result
<
OrderPaymentDetailVO
>
getOrderPaymentDetail
(
@Param
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
OrderPaymentDetailVO
vo
=
ownerLoanRecordService
.
getOrderPaymentDetail
(
id
);
return
Result
.
ok
(
vo
);
}
@ApiOperation
(
value
=
"转账支付详情"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/getTransferPaymentDetail"
)
@UnitCovert
(
param
=
false
)
public
Result
<
TransferPaymentDetailVO
>
getTransferPaymentDetail
(
@Param
(
"id"
)
@NotNull
(
message
=
"id不能为空"
)
Integer
id
)
{
TransferPaymentDetailVO
vo
=
ownerLoanRecordService
.
getTransferPaymentDetail
(
id
);
return
Result
.
ok
(
vo
);
}
@ApiOperation
(
value
=
"生成付款申请单"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/savePaymentApplicationForm"
)
public
Result
<
String
>
savePaymentApplicationForm
(
@RequestBody
@Validated
ExportPaymentApplicationFormParam
param
)
{
String
url
=
ownerLoanRecordService
.
savePaymentApplicationForm
(
param
);
return
Result
.
ok
(
url
);
}
}
}
performance-web/src/main/java/com/clx/performance/controller/pc/loan/carrier/CarrierOwnerRepaymentController.java
浏览文件 @
c84f277f
...
@@ -40,6 +40,7 @@ public class CarrierOwnerRepaymentController {
...
@@ -40,6 +40,7 @@ public class CarrierOwnerRepaymentController {
@ApiOperation
(
value
=
"分页搜索货主还款列表"
,
notes
=
"<br>By:艾庆国"
)
@ApiOperation
(
value
=
"分页搜索货主还款列表"
,
notes
=
"<br>By:艾庆国"
)
@PostMapping
(
"/pageOwnerRepaymentOfOwner"
)
@PostMapping
(
"/pageOwnerRepaymentOfOwner"
)
@UnitCovert
(
param
=
false
)
public
Result
<
PageData
<
OwnerRepaymentVO
>>
pageOwnerRepaymentOfOwner
(
@RequestBody
@Validated
PageOwnerRepaymentOfOwner
param
)
{
public
Result
<
PageData
<
OwnerRepaymentVO
>>
pageOwnerRepaymentOfOwner
(
@RequestBody
@Validated
PageOwnerRepaymentOfOwner
param
)
{
IPage
<
OwnerRepaymentVO
>
page
=
ownerRepaymentService
.
pageOwnerRepaymentOfOwner
(
param
);
IPage
<
OwnerRepaymentVO
>
page
=
ownerRepaymentService
.
pageOwnerRepaymentOfOwner
(
param
);
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
return
Result
.
page
(
page
.
getRecords
(),
page
.
getTotal
(),
page
.
getPages
());
...
...
performance-web/src/main/java/com/clx/performance/controller/pc/loan/owner/OwnerLoanRecordController.java
浏览文件 @
c84f277f
...
@@ -2,9 +2,13 @@ package com.clx.performance.controller.pc.loan.owner;
...
@@ -2,9 +2,13 @@ package com.clx.performance.controller.pc.loan.owner;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerLoanRecordOfOwner
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerLoanRecordOfOwner
;
import
com.clx.performance.param.pc.loan.owner.ExportPaymentApplicationFormParam
;
import
com.clx.performance.service.loan.OwnerLoanRecordService
;
import
com.clx.performance.service.loan.OwnerLoanRecordService
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanRecordVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanRecordVO
;
import
com.clx.performance.vo.pc.loan.carrier.CashierInfoVO
;
import
com.clx.performance.vo.pc.loan.carrier.OrderPaymentDetailVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerLoanRecordDetail
;
import
com.clx.performance.vo.pc.loan.owner.OwnerLoanRecordDetail
;
import
com.clx.performance.vo.pc.loan.carrier.TransferPaymentDetailVO
;
import
com.msl.common.base.PageData
;
import
com.msl.common.base.PageData
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.common.result.Result
;
import
com.msl.common.result.Result
;
...
@@ -14,11 +18,11 @@ import io.swagger.annotations.Api;
...
@@ -14,11 +18,11 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
javax.validation.constraints.NotNull
;
import
org.springframework.web.bind.annotation.RestController
;
@Slf4j
@Slf4j
@RestController
@RestController
...
@@ -44,10 +48,13 @@ public class OwnerLoanRecordController {
...
@@ -44,10 +48,13 @@ public class OwnerLoanRecordController {
@ApiOperation
(
value
=
"借款详情"
,
notes
=
"<br>By:刘海泉"
)
@ApiOperation
(
value
=
"借款详情"
,
notes
=
"<br>By:刘海泉"
)
@
Pos
tMapping
(
"/getOwnerLoanRecordDetail"
)
@
Ge
tMapping
(
"/getOwnerLoanRecordDetail"
)
public
Result
<
OwnerLoanRecordDetail
>
getOwnerLoanRecordDetail
()
{
public
Result
<
OwnerLoanRecordDetail
>
getOwnerLoanRecordDetail
()
{
OwnerLoanRecordDetail
detail
=
ownerLoanRecordService
.
getOwnerLoanRecordDetail
();
OwnerLoanRecordDetail
detail
=
ownerLoanRecordService
.
getOwnerLoanRecordDetail
();
return
Result
.
ok
(
detail
);
return
Result
.
ok
(
detail
);
}
}
}
}
performance-web/src/main/java/com/clx/performance/controller/temp/TempBankController.java
浏览文件 @
c84f277f
...
@@ -76,7 +76,7 @@ public class TempBankController {
...
@@ -76,7 +76,7 @@ public class TempBankController {
@RequestMapping
(
value
=
"/notify"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/notify"
,
method
=
RequestMethod
.
POST
)
public
Result
notify
(
NbBankOrderResultVO
param
)
{
public
Result
notify
(
NbBankOrderResultVO
param
)
{
bankService
.
orderPayCallback
(
param
.
getMerSeqNo
(),
param
.
getTransSeqNo
(),
bankService
.
orderPayCallback
(
param
.
getMerSeqNo
(),
param
.
getTransSeqNo
(),
param
.
getAmount
(),
param
.
getAmount
(),
param
.
get
Trans
Status
(),
param
.
getSignNo
());
param
.
getAmount
(),
param
.
getAmount
(),
param
.
getStatus
(),
param
.
getSignNo
());
return
Result
.
ok
();
return
Result
.
ok
();
}
}
...
...
performance-web/src/main/java/com/clx/performance/model/loan/OwnerLoanRecord.java
浏览文件 @
c84f277f
...
@@ -40,6 +40,10 @@ public class OwnerLoanRecord implements HasKey<Integer> {
...
@@ -40,6 +40,10 @@ public class OwnerLoanRecord implements HasKey<Integer> {
@ApiModelProperty
(
"联系电话"
)
@ApiModelProperty
(
"联系电话"
)
private
String
mobile
;
private
String
mobile
;
@TableField
(
"goods_name"
)
@ApiModelProperty
(
"货物名称"
)
private
String
goodsName
;
@TableField
(
"running_water_open_no"
)
@TableField
(
"running_water_open_no"
)
@ApiModelProperty
(
"交易流水号(第三方)"
)
@ApiModelProperty
(
"交易流水号(第三方)"
)
private
String
runningWaterOpenNo
;
private
String
runningWaterOpenNo
;
...
@@ -68,6 +72,10 @@ public class OwnerLoanRecord implements HasKey<Integer> {
...
@@ -68,6 +72,10 @@ public class OwnerLoanRecord implements HasKey<Integer> {
@TableField
(
"borrower_account"
)
@TableField
(
"borrower_account"
)
private
String
borrowerAccount
;
private
String
borrowerAccount
;
@TableField
(
"remittance_identification_code"
)
@ApiModelProperty
(
"汇款识别码"
)
private
String
remittanceIdentificationCode
;
@TableField
(
"lending_party"
)
@TableField
(
"lending_party"
)
@ApiModelProperty
(
"借出方"
)
@ApiModelProperty
(
"借出方"
)
private
String
lendingParty
;
private
String
lendingParty
;
...
@@ -109,6 +117,12 @@ public class OwnerLoanRecord implements HasKey<Integer> {
...
@@ -109,6 +117,12 @@ public class OwnerLoanRecord implements HasKey<Integer> {
@ApiModelProperty
(
"支付渠道 10 订单支付 20 转账支付"
)
@ApiModelProperty
(
"支付渠道 10 订单支付 20 转账支付"
)
private
Integer
payChannel
;
private
Integer
payChannel
;
@TableField
(
"close_order_time"
)
@ApiModelProperty
(
"[转账支付]时有关单时间字段 yyyy-MM-dd HH:mm:ss"
)
private
String
closeOrderTime
;
@TableField
(
"create_by"
)
@TableField
(
"create_by"
)
@ApiModelProperty
(
"创建人"
)
@ApiModelProperty
(
"创建人"
)
private
String
createBy
;
private
String
createBy
;
...
...
performance-web/src/main/java/com/clx/performance/model/loan/OwnerRepayment.java
浏览文件 @
c84f277f
...
@@ -65,11 +65,6 @@ public class OwnerRepayment implements HasKey<Integer> {
...
@@ -65,11 +65,6 @@ public class OwnerRepayment implements HasKey<Integer> {
private
String
paymentAccount
;
private
String
paymentAccount
;
@TableField
(
"payment_application_form_time"
)
@ApiModelProperty
(
"生成付款申请单时间"
)
private
LocalDateTime
paymentApplicationFormTime
;
@TableField
(
"remittance_identification_code"
)
@TableField
(
"remittance_identification_code"
)
@ApiModelProperty
(
"汇款识别码"
)
@ApiModelProperty
(
"汇款识别码"
)
private
String
remittanceIdentificationCode
;
private
String
remittanceIdentificationCode
;
...
@@ -107,6 +102,10 @@ public class OwnerRepayment implements HasKey<Integer> {
...
@@ -107,6 +102,10 @@ public class OwnerRepayment implements HasKey<Integer> {
@ApiModelProperty
(
"借款归还时间"
)
@ApiModelProperty
(
"借款归还时间"
)
private
LocalDateTime
loanRepaymentTime
;
private
LocalDateTime
loanRepaymentTime
;
@TableField
(
"close_order_time"
)
@ApiModelProperty
(
"[转账支付]时有关单时间字段 yyyy-MM-dd HH:mm:ss"
)
private
String
closeOrderTime
;
@TableField
(
"operate_time"
)
@TableField
(
"operate_time"
)
@ApiModelProperty
(
"操作时间"
)
@ApiModelProperty
(
"操作时间"
)
private
LocalDateTime
operateTime
;
private
LocalDateTime
operateTime
;
...
...
performance-web/src/main/java/com/clx/performance/service/impl/loan/OwnerLoanAccountServiceImpl.java
浏览文件 @
c84f277f
...
@@ -8,6 +8,7 @@ import com.clx.performance.param.pc.loan.carrier.PageOwnerLoanAccountParam;
...
@@ -8,6 +8,7 @@ import com.clx.performance.param.pc.loan.carrier.PageOwnerLoanAccountParam;
import
com.clx.performance.service.loan.OwnerLoanAccountService
;
import
com.clx.performance.service.loan.OwnerLoanAccountService
;
import
com.clx.performance.struct.loan.OwnerLoanAccountStruct
;
import
com.clx.performance.struct.loan.OwnerLoanAccountStruct
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanAccountVO
;
import
com.msl.common.convertor.aspect.UnitCovert
;
import
com.msl.user.data.UserSessionData
;
import
com.msl.user.data.UserSessionData
;
import
com.msl.user.utils.TokenUtil
;
import
com.msl.user.utils.TokenUtil
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
...
@@ -51,6 +52,7 @@ public class OwnerLoanAccountServiceImpl implements OwnerLoanAccountService {
...
@@ -51,6 +52,7 @@ public class OwnerLoanAccountServiceImpl implements OwnerLoanAccountService {
}
}
@Override
@Override
@UnitCovert
(
param
=
false
)
public
IPage
<
OwnerLoanAccountVO
>
pageOwnerLoanAccount
(
PageOwnerLoanAccountParam
param
)
{
public
IPage
<
OwnerLoanAccountVO
>
pageOwnerLoanAccount
(
PageOwnerLoanAccountParam
param
)
{
return
ownerLoanAccountDao
.
pageByParam
(
param
);
return
ownerLoanAccountDao
.
pageByParam
(
param
);
}
}
...
...
performance-web/src/main/java/com/clx/performance/service/impl/loan/OwnerLoanRecordServiceImpl.java
浏览文件 @
c84f277f
package
com
.
clx
.
performance
.
service
.
impl
.
loan
;
package
com
.
clx
.
performance
.
service
.
impl
.
loan
;
import
cn.hutool.json.JSONUtil
;
import
com.alibaba.fastjson.JSON
;
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.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.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
;
import
com.clx.performance.dao.loan.OwnerLoanAccountRunningWaterRecordDao
;
import
com.clx.performance.dao.loan.OwnerLoanAccountRunningWaterRecordDao
;
import
com.clx.performance.dao.loan.OwnerLoanRecordDao
;
import
com.clx.performance.dao.loan.OwnerLoanRecordDao
;
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.RunningWaterTypeEnum
;
import
com.clx.performance.enums.RunningWaterTypeEnum
;
import
com.clx.performance.enums.loan.OwnerLoanRecordEnum
;
import
com.clx.performance.enums.loan.OwnerLoanRecordEnum
;
import
com.clx.performance.enums.loan.OwnerRePaymentEnum
;
import
com.clx.performance.enums.loan.OwnerRePaymentEnum
;
...
@@ -21,20 +25,26 @@ import com.clx.performance.model.loan.OwnerRepayment;
...
@@ -21,20 +25,26 @@ import com.clx.performance.model.loan.OwnerRepayment;
import
com.clx.performance.param.pc.loan.carrier.CarrierOwnerLoanRecordApproveParam
;
import
com.clx.performance.param.pc.loan.carrier.CarrierOwnerLoanRecordApproveParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerLoanRecordParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerLoanRecordParam
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerLoanRecordOfOwner
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerLoanRecordOfOwner
;
import
com.clx.performance.param.pc.loan.owner.ExportPaymentApplicationFormParam
;
import
com.clx.performance.param.pc.loan.owner.OwnerLoanRecordParam
;
import
com.clx.performance.param.pc.loan.owner.OwnerLoanRecordParam
;
import
com.clx.performance.service.loan.OwnerLoanRecordService
;
import
com.clx.performance.service.loan.OwnerLoanRecordService
;
import
com.clx.performance.service.thirdparty.nbbank.NbBankService
;
import
com.clx.performance.service.thirdparty.nbbank.NbBankService
;
import
com.clx.performance.struct.loan.OwnerLoanRecordStruct
;
import
com.clx.performance.struct.loan.OwnerLoanRecordStruct
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanRecordVO
;
import
com.clx.performance.vo.pc.loan.carrier.*
;
import
com.clx.performance.vo.pc.loan.carrier.PayeeVO
;
import
com.clx.performance.vo.pc.loan.owner.BorrowerSelectVO
;
import
com.clx.performance.vo.pc.loan.owner.BorrowerSelectVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerLoanRecordDetail
;
import
com.clx.performance.vo.pc.loan.owner.OwnerLoanRecordDetail
;
import
com.clx.performance.vo.pc.loan.carrier.TransferPaymentDetailVO
;
import
com.clx.performance.vo.pc.nbbank.NbBankOrderPayResultVO
;
import
com.clx.performance.vo.pc.nbbank.NbBankOrderPayResultVO
;
import
com.clx.user.feign.OwnerFeign
;
import
com.clx.user.feign.OwnerFeign
;
import
com.clx.user.vo.feign.OwnerInfoFeignVO
;
import
com.clx.user.vo.feign.OwnerInfoFeignVO
;
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
;
import
com.msl.common.utils.DateUtils
;
import
com.msl.document.api.feign.ContractEvidenceFeign
;
import
com.msl.document.api.feign.ContractTemplateFeign
;
import
com.msl.document.api.param.GenerateContractParam
;
import
com.msl.document.api.vo.ContractEvidenceRecordVo
;
import
com.msl.user.data.UserSessionData
;
import
com.msl.user.data.UserSessionData
;
import
com.msl.user.utils.TokenUtil
;
import
com.msl.user.utils.TokenUtil
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
...
@@ -77,6 +87,10 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
...
@@ -77,6 +87,10 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
private
final
OwnerFeign
ownerFeign
;
private
final
OwnerFeign
ownerFeign
;
private
final
ContractEvidenceFeign
contractEvidenceFeign
;
private
final
ContractTemplateFeign
contractTemplateFeign
;
private
final
PaymentFromConfig
paymentFromConfig
;
@Override
@Override
public
IPage
<
OwnerLoanRecordVO
>
pageOwnerLoanRecord
(
PageCarrierOwnerLoanRecordParam
param
)
{
public
IPage
<
OwnerLoanRecordVO
>
pageOwnerLoanRecord
(
PageCarrierOwnerLoanRecordParam
param
)
{
IPage
<
OwnerLoanRecord
>
page
=
ownerLoanRecordDao
.
pageOwnerLoanRecord
(
param
);
IPage
<
OwnerLoanRecord
>
page
=
ownerLoanRecordDao
.
pageOwnerLoanRecord
(
param
);
...
@@ -242,7 +256,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
...
@@ -242,7 +256,7 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
Result:
:
succeed
).
map
(
Result:
:
getData
).
orElseThrow
(
ResultCodeEnum
.
FAIL
);
Result:
:
succeed
).
map
(
Result:
:
getData
).
orElseThrow
(
ResultCodeEnum
.
FAIL
);
detail
.
setCompanyName
(
ownerInfoFeignVO
.
getCompanyName
());
detail
.
setCompanyName
(
ownerInfoFeignVO
.
getCompanyName
());
//
借
款方
//
收
款方
List
<
PayeeVO
>
payeeList
=
ClxPayeeConfig
.
payeeList
.
stream
().
map
(
List
<
PayeeVO
>
payeeList
=
ClxPayeeConfig
.
payeeList
.
stream
().
map
(
item
->
PayeeVO
.
builder
().
name
(
item
.
getName
()).
account
(
item
.
getAccount
()).
id
(
item
.
getId
()).
build
()
item
->
PayeeVO
.
builder
().
name
(
item
.
getName
()).
account
(
item
.
getAccount
()).
id
(
item
.
getId
()).
build
()
).
collect
(
Collectors
.
toList
());
).
collect
(
Collectors
.
toList
());
...
@@ -250,4 +264,61 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
...
@@ -250,4 +264,61 @@ public class OwnerLoanRecordServiceImpl implements OwnerLoanRecordService {
return
detail
;
return
detail
;
}
}
@Override
public
CashierInfoVO
getCashierInfo
(
Integer
id
)
{
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getEntityByKey
(
id
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
CashierInfoVO
vo
=
ownerLoanRecordStruct
.
convertCashierInfo
(
ownerLoanRecord
);
//TODO 设置支付方式和付款账户 ,宇帆提供
return
vo
;
}
@Override
public
OrderPaymentDetailVO
getOrderPaymentDetail
(
Integer
id
)
{
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getEntityByKey
(
id
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
OrderPaymentDetailVO
vo
=
ownerLoanRecordStruct
.
convertOrderPaymentDetail
(
ownerLoanRecord
);
//计算倒计时时间,下单时间 + 30天 为截止时间
LocalDateTime
endTime
=
ownerLoanRecord
.
getCreateTime
().
plusDays
(
30
);
vo
.
setFinalPaymentTime
(
DateUtils
.
formatDateTime
(
endTime
).
get
());
return
vo
;
}
@Override
public
TransferPaymentDetailVO
getTransferPaymentDetail
(
Integer
id
)
{
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getEntityByKey
(
id
).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
ClxPayeeConfig
.
PayeeConfig
payeeMap
=
ClxPayeeConfig
.
getPayeeMap
(
ClxPayeeConfig
.
XXH_ID
);
return
TransferPaymentDetailVO
.
builder
().
payee
(
payeeMap
.
getName
())
.
payeeAccount
(
payeeMap
.
getAccount
()).
payeeBank
(
payeeMap
.
getBank
()).
payeeBankNo
(
payeeMap
.
getBankNo
())
.
loanBalance
(
ownerLoanRecord
.
getLoanBalance
())
.
remittanceIdentificationCode
(
ownerLoanRecord
.
getRemittanceIdentificationCode
())
.
status
(
ownerLoanRecord
.
getStatus
()).
finalPaymentTime
(
ownerLoanRecord
.
getCloseOrderTime
()).
build
();
}
@Override
public
String
savePaymentApplicationForm
(
ExportPaymentApplicationFormParam
param
)
{
OwnerLoanRecord
ownerLoanRecord
=
ownerLoanRecordDao
.
getEntityByKey
(
param
.
getId
()).
orElseThrow
(
PerformanceResultEnum
.
DATA_NOT_FIND
);
OwnerLoanRecordVO
ownerLoanRecordVO
=
ownerLoanRecordStruct
.
convert
(
ownerLoanRecord
);
//货主借款: 收款方鑫祥和 付款方为诚联信 借款方为货主
Map
<
String
,
String
>
map
=
JSON
.
parseObject
(
JSONUtil
.
parse
(
ownerLoanRecordVO
).
toString
(),
Map
.
class
);
// 创建合同
GenerateContractParam
feignParam
=
new
GenerateContractParam
();
if
(
Objects
.
equals
(
OwnerRePaymentEnum
.
Channel
.
ORDER
.
getCode
(),
param
.
getPayWay
())){
feignParam
.
setTemplateNo
(
paymentFromConfig
.
getLoanTemplateNo
());
}
else
{
feignParam
.
setTemplateNo
(
paymentFromConfig
.
getLoanTemplateNo
());
}
feignParam
.
setParametersValueMap
(
map
);
Result
<
Long
>
longResult
=
contractTemplateFeign
.
generateContract
(
feignParam
);
Result
<
ContractEvidenceRecordVo
>
contractEvidenceDetail
=
contractEvidenceFeign
.
getContractEvidenceDetail
(
longResult
.
getData
());
return
contractEvidenceDetail
.
getData
().
getFileUrl
();
}
}
}
performance-web/src/main/java/com/clx/performance/service/impl/loan/OwnerRepaymentServiceImpl.java
浏览文件 @
c84f277f
...
@@ -79,8 +79,9 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
...
@@ -79,8 +79,9 @@ 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
);
OrderPaymentDetailVO
vo
=
ownerRepaymentStruct
.
convertOrderPaymentDetail
(
ownerRepayment
);
OrderPaymentDetailVO
vo
=
ownerRepaymentStruct
.
convertOrderPaymentDetail
(
ownerRepayment
);
//TODO 设置付款倒计时
//计算倒计时时间,下单时间 + 30天 为截止时间
vo
.
setFinalPaymentTime
(
null
);
LocalDateTime
endTime
=
ownerRepayment
.
getCreateTime
().
plusDays
(
30
);
vo
.
setFinalPaymentTime
(
DateUtils
.
formatDateTime
(
endTime
).
get
());
return
vo
;
return
vo
;
}
}
...
@@ -89,14 +90,11 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
...
@@ -89,14 +90,11 @@ 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
);
ClxPayeeConfig
.
PayeeConfig
payeeMap
=
ClxPayeeConfig
.
getPayeeMap
(
ClxPayeeConfig
.
XXH_ID
);
ClxPayeeConfig
.
PayeeConfig
payeeMap
=
ClxPayeeConfig
.
getPayeeMap
(
ClxPayeeConfig
.
XXH_ID
);
//计算倒计时时间,下单时间 + 30天 为截止时间
LocalDateTime
endTime
=
ownerRepayment
.
getPaymentApplicationFormTime
().
plusDays
(
30
);
return
TransferPaymentDetailVO
.
builder
().
payee
(
payeeMap
.
getName
())
return
TransferPaymentDetailVO
.
builder
().
payee
(
payeeMap
.
getName
())
.
payeeAccount
(
payeeMap
.
getAccount
()).
payeeBank
(
payeeMap
.
getBank
()).
payeeBankNo
(
payeeMap
.
getBankNo
())
.
payeeAccount
(
payeeMap
.
getAccount
()).
payeeBank
(
payeeMap
.
getBank
()).
payeeBankNo
(
payeeMap
.
getBankNo
())
.
repaymentBalance
(
ownerRepayment
.
getRepaymentBalance
())
.
repaymentBalance
(
ownerRepayment
.
getRepaymentBalance
())
.
remittanceIdentificationCode
(
ownerRepayment
.
getRemittanceIdentificationCode
())
.
remittanceIdentificationCode
(
ownerRepayment
.
getRemittanceIdentificationCode
())
.
status
(
ownerRepayment
.
getStatus
()).
finalPaymentTime
(
DateUtils
.
formatDateTime
(
endTime
).
get
()).
build
();
.
status
(
ownerRepayment
.
getStatus
()).
finalPaymentTime
(
ownerRepayment
.
getCloseOrderTime
()).
build
();
}
}
@Override
@Override
...
@@ -108,9 +106,9 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
...
@@ -108,9 +106,9 @@ public class OwnerRepaymentServiceImpl implements OwnerRepaymentService {
// 创建合同
// 创建合同
GenerateContractParam
feignParam
=
new
GenerateContractParam
();
GenerateContractParam
feignParam
=
new
GenerateContractParam
();
if
(
Objects
.
equals
(
OwnerRePaymentEnum
.
Channel
.
ORDER
.
getCode
(),
param
.
getPayWay
())){
if
(
Objects
.
equals
(
OwnerRePaymentEnum
.
Channel
.
ORDER
.
getCode
(),
param
.
getPayWay
())){
feignParam
.
setTemplateNo
(
paymentFromConfig
.
getTemplateNo
());
feignParam
.
setTemplateNo
(
paymentFromConfig
.
get
Repayment
TemplateNo
());
}
else
{
}
else
{
feignParam
.
setTemplateNo
(
paymentFromConfig
.
getTemplateNo
());
feignParam
.
setTemplateNo
(
paymentFromConfig
.
get
Repayment
TemplateNo
());
}
}
feignParam
.
setParametersValueMap
(
map
);
feignParam
.
setParametersValueMap
(
map
);
...
...
performance-web/src/main/java/com/clx/performance/service/impl/thirdparty/nbbank/NbBankServiceImpl.java
浏览文件 @
c84f277f
...
@@ -3,6 +3,7 @@ package com.clx.performance.service.impl.thirdparty.nbbank;
...
@@ -3,6 +3,7 @@ package com.clx.performance.service.impl.thirdparty.nbbank;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.clx.performance.component.IdGenerateSnowFlake
;
import
com.clx.performance.component.IdGenerateSnowFlake
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.PerformanceResultEnum
;
import
com.clx.performance.enums.nbbank.NbBankStatusEnum
;
import
com.clx.performance.service.thirdparty.nbbank.NbBankService
;
import
com.clx.performance.service.thirdparty.nbbank.NbBankService
;
import
com.clx.performance.service.thirdparty.nbbank.NbBankThirdpartyService
;
import
com.clx.performance.service.thirdparty.nbbank.NbBankThirdpartyService
;
import
com.clx.performance.utils.LocalDateTimeUtils
;
import
com.clx.performance.utils.LocalDateTimeUtils
;
...
@@ -15,8 +16,6 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -15,8 +16,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.time.LocalDateTime
;
import
java.time.format.DateTimeFormatter
;
/**
/**
* 易付通
* 易付通
...
@@ -73,6 +72,7 @@ public class NbBankServiceImpl implements NbBankService {
...
@@ -73,6 +72,7 @@ public class NbBankServiceImpl implements NbBankService {
String
merSeqNo
=
idGenerateSnowFlake
.
nextIdToString
(
3L
);
String
merSeqNo
=
idGenerateSnowFlake
.
nextIdToString
(
3L
);
String
merDtTm
=
LocalDateTimeUtils
.
formatTime
();
String
merDtTm
=
LocalDateTimeUtils
.
formatTime
();
String
closeDtTm
=
LocalDateTimeUtils
.
formatTime
(
LocalDateTimeUtils
.
parseTime
(
merDtTm
).
plusDays
(
30
));
JSONObject
data
=
bankThirdpartyService
.
unionPayDirectOrder
(
merSeqNo
,
merDtTm
,
amount
,
JSONObject
data
=
bankThirdpartyService
.
unionPayDirectOrder
(
merSeqNo
,
merDtTm
,
amount
,
payAcctOpenBankId
,
payAcctNo
,
payAcctNm
);
payAcctOpenBankId
,
payAcctNo
,
payAcctNm
);
...
@@ -86,6 +86,7 @@ public class NbBankServiceImpl implements NbBankService {
...
@@ -86,6 +86,7 @@ public class NbBankServiceImpl implements NbBankService {
result
.
setMerDtTm
(
merDtTm
);
result
.
setMerDtTm
(
merDtTm
);
result
.
setMerSeqNo
(
merSeqNo
);
result
.
setMerSeqNo
(
merSeqNo
);
result
.
setTransSeqNo
(
transSeqNo
);
result
.
setTransSeqNo
(
transSeqNo
);
result
.
setCloseDtTm
(
closeDtTm
);
return
result
;
return
result
;
}
}
...
@@ -101,20 +102,14 @@ public class NbBankServiceImpl implements NbBankService {
...
@@ -101,20 +102,14 @@ public class NbBankServiceImpl implements NbBankService {
NbBankOrderResultVO
result
=
new
NbBankOrderResultVO
();
NbBankOrderResultVO
result
=
new
NbBankOrderResultVO
();
String
transStatus
=
data
.
getString
(
"transStatus"
);
String
transStatus
=
data
.
getString
(
"transStatus"
);
if
(
StringUtils
.
equals
(
transStatus
,
"00"
)){
result
.
setTransStatus
(
1
);}
//交易成功
else
if
(
StringUtils
.
equals
(
transStatus
,
"01"
)){
result
.
setTransStatus
(
2
);}
//交易失败
else
if
(
StringUtils
.
equals
(
transStatus
,
"02"
)){
result
.
setTransStatus
(
3
);}
//交易已受理
else
if
(
StringUtils
.
equals
(
transStatus
,
"80"
)){
result
.
setTransStatus
(
4
);}
//订单初始状态
else
if
(
StringUtils
.
equals
(
transStatus
,
"90"
)){
result
.
setTransStatus
(
5
);}
//交易不存在
else
if
(
StringUtils
.
equals
(
transStatus
,
"99"
)){
result
.
setTransStatus
(
6
);}
//交易超时,须发起交易结果查询
BigDecimal
trxAmt
=
data
.
getBigDecimal
(
"trxAmt"
);
BigDecimal
trxAmt
=
data
.
getBigDecimal
(
"trxAmt"
);
BigDecimal
realTrxAmt
=
data
.
getBigDecimal
(
"realTrxAmt"
);
BigDecimal
realTrxAmt
=
data
.
getBigDecimal
(
"realTrxAmt"
);
String
transSeqNo
=
data
.
getString
(
"transSeqNo"
);
String
transSeqNo
=
data
.
getString
(
"transSeqNo"
);
String
signNo
=
data
.
getString
(
"signNo"
);
String
signNo
=
data
.
getString
(
"signNo"
);
result
.
setStatus
(
getStatus
(
transStatus
));
result
.
setAmount
(
trxAmt
==
null
?
null
:
trxAmt
.
movePointLeft
(
2
).
intValue
());
result
.
setAmount
(
trxAmt
==
null
?
null
:
trxAmt
.
movePointLeft
(
2
).
intValue
());
result
.
setRealAmount
(
t
rxAmt
==
null
?
null
:
realTrxAmt
.
movePointLeft
(
2
).
intValue
());
result
.
setRealAmount
(
realT
rxAmt
==
null
?
null
:
realTrxAmt
.
movePointLeft
(
2
).
intValue
());
result
.
setMerSeqNo
(
orgMerSeqNo
);
result
.
setMerSeqNo
(
orgMerSeqNo
);
result
.
setTransSeqNo
(
transSeqNo
);
result
.
setTransSeqNo
(
transSeqNo
);
result
.
setSignNo
(
signNo
);
result
.
setSignNo
(
signNo
);
...
@@ -137,15 +132,9 @@ public class NbBankServiceImpl implements NbBankService {
...
@@ -137,15 +132,9 @@ public class NbBankServiceImpl implements NbBankService {
NbBankOrderResultVO
result
=
new
NbBankOrderResultVO
();
NbBankOrderResultVO
result
=
new
NbBankOrderResultVO
();
String
transStatus
=
data
.
getString
(
"transStatus"
);
String
transStatus
=
data
.
getString
(
"transStatus"
);
if
(
StringUtils
.
equals
(
transStatus
,
"00"
)){
result
.
setTransStatus
(
1
);}
//交易成功
else
if
(
StringUtils
.
equals
(
transStatus
,
"01"
)){
result
.
setTransStatus
(
2
);}
//交易失败
else
if
(
StringUtils
.
equals
(
transStatus
,
"02"
)){
result
.
setTransStatus
(
3
);}
//交易已受理
else
if
(
StringUtils
.
equals
(
transStatus
,
"80"
)){
result
.
setTransStatus
(
4
);}
//订单初始状态
else
if
(
StringUtils
.
equals
(
transStatus
,
"90"
)){
result
.
setTransStatus
(
5
);}
//交易不存在
else
if
(
StringUtils
.
equals
(
transStatus
,
"99"
)){
result
.
setTransStatus
(
6
);}
//交易超时,须发起交易结果查询
String
transSeqNo
=
data
.
getString
(
"transSeqNo"
);
String
transSeqNo
=
data
.
getString
(
"transSeqNo"
);
result
.
setStatus
(
getStatus
(
transStatus
));
result
.
setAmount
(
amount
);
result
.
setAmount
(
amount
);
result
.
setRealAmount
(
amount
);
result
.
setRealAmount
(
amount
);
result
.
setMerDtTm
(
merDtTm
);
result
.
setMerDtTm
(
merDtTm
);
...
@@ -157,7 +146,7 @@ public class NbBankServiceImpl implements NbBankService {
...
@@ -157,7 +146,7 @@ public class NbBankServiceImpl implements NbBankService {
/**
/**
* 退款
* 退款
* @Param type: 1普通退款
2银行转账退款 3银联订单支付撤单
* @Param type: 1普通退款
(忽略) 2银行转账退款(支付成功) 3银联订单支付撤单(未支付)
* @param orgMerSeqNo 商户流水号(原)
* @param orgMerSeqNo 商户流水号(原)
* @param amount 金额分
* @param amount 金额分
* @param orgTransSeqNo 第三方流水号 (原)
* @param orgTransSeqNo 第三方流水号 (原)
...
@@ -173,15 +162,9 @@ public class NbBankServiceImpl implements NbBankService {
...
@@ -173,15 +162,9 @@ public class NbBankServiceImpl implements NbBankService {
NbBankOrderResultVO
result
=
new
NbBankOrderResultVO
();
NbBankOrderResultVO
result
=
new
NbBankOrderResultVO
();
String
transStatus
=
data
.
getString
(
"transStatus"
);
String
transStatus
=
data
.
getString
(
"transStatus"
);
if
(
StringUtils
.
equals
(
transStatus
,
"00"
)){
result
.
setTransStatus
(
1
);}
//交易成功
else
if
(
StringUtils
.
equals
(
transStatus
,
"01"
)){
result
.
setTransStatus
(
2
);}
//交易失败
else
if
(
StringUtils
.
equals
(
transStatus
,
"02"
)){
result
.
setTransStatus
(
3
);}
//交易已受理
else
if
(
StringUtils
.
equals
(
transStatus
,
"80"
)){
result
.
setTransStatus
(
4
);}
//订单初始状态
else
if
(
StringUtils
.
equals
(
transStatus
,
"90"
)){
result
.
setTransStatus
(
5
);}
//交易不存在
else
if
(
StringUtils
.
equals
(
transStatus
,
"99"
)){
result
.
setTransStatus
(
6
);}
//交易超时,须发起交易结果查询
String
transSeqNo
=
data
.
getString
(
"transSeqNo"
);
String
transSeqNo
=
data
.
getString
(
"transSeqNo"
);
result
.
setStatus
(
getStatus
(
transStatus
));
result
.
setAmount
(
amount
);
result
.
setAmount
(
amount
);
result
.
setRealAmount
(
amount
);
result
.
setRealAmount
(
amount
);
result
.
setMerDtTm
(
merDtTm
);
result
.
setMerDtTm
(
merDtTm
);
...
@@ -209,29 +192,11 @@ public class NbBankServiceImpl implements NbBankService {
...
@@ -209,29 +192,11 @@ public class NbBankServiceImpl implements NbBankService {
merSeqNo
,
transSeqNo
,
trxAmt
,
realTrxAmt
,
transStatus
,
signNo
);
merSeqNo
,
transSeqNo
,
trxAmt
,
realTrxAmt
,
transStatus
,
signNo
);
NbBankOrderResultVO
result
=
new
NbBankOrderResultVO
();
NbBankOrderResultVO
result
=
new
NbBankOrderResultVO
();
if
(
StringUtils
.
equals
(
transStatus
,
"00"
)){
//交易成功
result
.
setStatus
(
getStatus
(
transStatus
));
result
.
setTransStatus
(
1
);
}
if
(
StringUtils
.
equals
(
transStatus
,
"01"
)){
//交易失败
result
.
setTransStatus
(
2
);
}
if
(
StringUtils
.
equals
(
transStatus
,
"02"
)){
//交易已受理
result
.
setTransStatus
(
3
);
}
if
(
StringUtils
.
equals
(
transStatus
,
"80"
)){
//订单初始状态
result
.
setTransStatus
(
4
);
}
if
(
StringUtils
.
equals
(
transStatus
,
"90"
)){
//交易不存在
result
.
setTransStatus
(
5
);
}
if
(
StringUtils
.
equals
(
transStatus
,
"99"
)){
//交易超时,须发起交易结果查询
result
.
setTransStatus
(
6
);
}
orderPayCallback
(
merSeqNo
,
transSeqNo
,
trxAmt
,
realTrxAmt
,
result
.
get
Trans
Status
(),
signNo
);
orderPayCallback
(
merSeqNo
,
transSeqNo
,
trxAmt
,
realTrxAmt
,
result
.
getStatus
(),
signNo
);
}
}
/**
/**
* 银行回调
* 银行回调
* @param merSeqNo 商户流水号
* @param merSeqNo 商户流水号
...
@@ -258,4 +223,19 @@ public class NbBankServiceImpl implements NbBankService {
...
@@ -258,4 +223,19 @@ public class NbBankServiceImpl implements NbBankService {
return
StringUtils
.
isBlank
(
signNo
)?
StringUtils
.
right
(
cardNo
,
7
)
:
signNo
;
return
StringUtils
.
isBlank
(
signNo
)?
StringUtils
.
right
(
cardNo
,
7
)
:
signNo
;
}
}
/**
* 获取订单状态
*/
private
Integer
getStatus
(
String
transStatus
){
if
(
StringUtils
.
equals
(
transStatus
,
"00"
)){
return
NbBankStatusEnum
.
Status
.
SUCCESS
.
getCode
();}
//交易成功
else
if
(
StringUtils
.
equals
(
transStatus
,
"01"
)){
return
NbBankStatusEnum
.
Status
.
FAIL
.
getCode
();}
//交易失败
else
if
(
StringUtils
.
equals
(
transStatus
,
"02"
)){
return
NbBankStatusEnum
.
Status
.
ACCEPT
.
getCode
();}
//交易已受理
else
if
(
StringUtils
.
equals
(
transStatus
,
"80"
)){
return
NbBankStatusEnum
.
Status
.
INIT
.
getCode
();}
//订单初始状态
else
if
(
StringUtils
.
equals
(
transStatus
,
"90"
)){
return
NbBankStatusEnum
.
Status
.
NOT_FOUND
.
getCode
();}
//交易不存在
else
if
(
StringUtils
.
equals
(
transStatus
,
"99"
)){
return
NbBankStatusEnum
.
Status
.
TIMEOUT
.
getCode
();}
//交易超时,须发起交易结果查询
return
NbBankStatusEnum
.
Status
.
TEMP
.
getCode
();
}
}
}
performance-web/src/main/java/com/clx/performance/service/loan/OwnerLoanRecordService.java
浏览文件 @
c84f277f
...
@@ -4,9 +4,13 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
...
@@ -4,9 +4,13 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.clx.performance.param.pc.loan.carrier.CarrierOwnerLoanRecordApproveParam
;
import
com.clx.performance.param.pc.loan.carrier.CarrierOwnerLoanRecordApproveParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerLoanRecordParam
;
import
com.clx.performance.param.pc.loan.carrier.PageCarrierOwnerLoanRecordParam
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerLoanRecordOfOwner
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerLoanRecordOfOwner
;
import
com.clx.performance.param.pc.loan.owner.ExportPaymentApplicationFormParam
;
import
com.clx.performance.param.pc.loan.owner.OwnerLoanRecordParam
;
import
com.clx.performance.param.pc.loan.owner.OwnerLoanRecordParam
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanRecordVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanRecordVO
;
import
com.clx.performance.vo.pc.loan.carrier.CashierInfoVO
;
import
com.clx.performance.vo.pc.loan.carrier.OrderPaymentDetailVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerLoanRecordDetail
;
import
com.clx.performance.vo.pc.loan.owner.OwnerLoanRecordDetail
;
import
com.clx.performance.vo.pc.loan.carrier.TransferPaymentDetailVO
;
/**
/**
* @author kavin
* @author kavin
...
@@ -23,4 +27,12 @@ public interface OwnerLoanRecordService {
...
@@ -23,4 +27,12 @@ public interface OwnerLoanRecordService {
IPage
<
OwnerLoanRecordVO
>
pageOwnerLoanRecordOfOwner
(
PageOwnerLoanRecordOfOwner
param
);
IPage
<
OwnerLoanRecordVO
>
pageOwnerLoanRecordOfOwner
(
PageOwnerLoanRecordOfOwner
param
);
OwnerLoanRecordDetail
getOwnerLoanRecordDetail
();
OwnerLoanRecordDetail
getOwnerLoanRecordDetail
();
CashierInfoVO
getCashierInfo
(
Integer
id
);
OrderPaymentDetailVO
getOrderPaymentDetail
(
Integer
id
);
TransferPaymentDetailVO
getTransferPaymentDetail
(
Integer
id
);
String
savePaymentApplicationForm
(
ExportPaymentApplicationFormParam
param
);
}
}
performance-web/src/main/java/com/clx/performance/sqlProvider/borrower/BorrowerConfigSqlProvider.java
浏览文件 @
c84f277f
...
@@ -25,7 +25,7 @@ public class BorrowerConfigSqlProvider {
...
@@ -25,7 +25,7 @@ public class BorrowerConfigSqlProvider {
FROM
(
"borrower_config"
);
FROM
(
"borrower_config"
);
WHERE
(
"delete_status = 0"
);
WHERE
(
"delete_status = 0"
);
if
(
StringUtils
.
isNotBlank
(
param
.
getBorrowerName
()))
{
WHERE
(
"borrower_name
=
like CONCAT(#{param.borrowerName},'%')"
);}
if
(
StringUtils
.
isNotBlank
(
param
.
getBorrowerName
()))
{
WHERE
(
"borrower_name like CONCAT(#{param.borrowerName},'%')"
);}
if
(
Objects
.
nonNull
(
param
.
getStatus
()))
{
WHERE
(
"status = #{param.status}"
);}
if
(
Objects
.
nonNull
(
param
.
getStatus
()))
{
WHERE
(
"status = #{param.status}"
);}
ORDER_BY
(
"create_time desc"
);
ORDER_BY
(
"create_time desc"
);
...
...
performance-web/src/main/java/com/clx/performance/sqlProvider/borrower/BorrowerSqlProvider.java
浏览文件 @
c84f277f
...
@@ -24,7 +24,7 @@ public class BorrowerSqlProvider {
...
@@ -24,7 +24,7 @@ public class BorrowerSqlProvider {
FROM
(
"borrower"
);
FROM
(
"borrower"
);
WHERE
(
"delete_status = 0"
);
WHERE
(
"delete_status = 0"
);
if
(
StringUtils
.
isNotBlank
(
param
.
getName
()))
{
WHERE
(
"name
=
like CONCAT(#{param.name},'%')"
);}
if
(
StringUtils
.
isNotBlank
(
param
.
getName
()))
{
WHERE
(
"name like CONCAT(#{param.name},'%')"
);}
ORDER_BY
(
"create_time desc"
);
ORDER_BY
(
"create_time desc"
);
}}.
toString
();
}}.
toString
();
...
...
performance-web/src/main/java/com/clx/performance/sqlProvider/borrower/OwnerLoanAccountRunningWaterRecordSqlProvider.java
浏览文件 @
c84f277f
...
@@ -16,7 +16,8 @@ public class OwnerLoanAccountRunningWaterRecordSqlProvider {
...
@@ -16,7 +16,8 @@ public class OwnerLoanAccountRunningWaterRecordSqlProvider {
SELECT
(
" id, owner_user_no as ownerUserNo, owner_user_name as ownerUserName, mobile, "
+
SELECT
(
" id, owner_user_no as ownerUserNo, owner_user_name as ownerUserName, mobile, "
+
" running_water_no as runningWaterNo, loan_no as loanNo, child_no as childNo, "
+
" running_water_no as runningWaterNo, loan_no as loanNo, child_no as childNo, "
+
" running_water_type as runningWaterType, alteration_balance as alterationBalance, account_balance as accountBalance, "
+
" running_water_type as runningWaterType, "
+
" alteration_balance as alterationBalance, useable_balance as useableBalance, frozen_balance as frozenBalance, account_balance as accountBalance, "
+
" create_by as createBy, "
+
" create_by as createBy, "
+
" date_format(create_time, '%Y-%m-%d %H:%i:%s') as createTime, "
+
" date_format(create_time, '%Y-%m-%d %H:%i:%s') as createTime, "
+
" date_format(modified_time, '%Y-%m-%d %H:%i:%s') as modifiedTime "
" date_format(modified_time, '%Y-%m-%d %H:%i:%s') as modifiedTime "
...
...
performance-web/src/main/java/com/clx/performance/sqlProvider/borrower/OwnerLoanAccountSqlProvider.java
浏览文件 @
c84f277f
...
@@ -25,7 +25,7 @@ public class OwnerLoanAccountSqlProvider {
...
@@ -25,7 +25,7 @@ public class OwnerLoanAccountSqlProvider {
FROM
(
"owner_loan_account"
);
FROM
(
"owner_loan_account"
);
if
(
Objects
.
nonNull
(
param
.
getOwnerUserNo
()))
{
WHERE
(
"owner_user_no = #{param.ownerUserNo}"
);}
if
(
Objects
.
nonNull
(
param
.
getOwnerUserNo
()))
{
WHERE
(
"owner_user_no = #{param.ownerUserNo}"
);}
if
(
StringUtils
.
isNotBlank
(
param
.
getOwnerUserName
()))
{
WHERE
(
"owner_user_name
=
like CONCAT(#{param.ownerUserName},'%')"
);}
if
(
StringUtils
.
isNotBlank
(
param
.
getOwnerUserName
()))
{
WHERE
(
"owner_user_name like CONCAT(#{param.ownerUserName},'%')"
);}
if
(
StringUtils
.
isNotBlank
(
param
.
getMobile
()))
{
WHERE
(
"mobile = #{param.mobile}"
);}
if
(
StringUtils
.
isNotBlank
(
param
.
getMobile
()))
{
WHERE
(
"mobile = #{param.mobile}"
);}
ORDER_BY
(
"create_time desc"
);
ORDER_BY
(
"create_time desc"
);
...
...
performance-web/src/main/java/com/clx/performance/sqlProvider/borrower/OwnerLoanRecordSqlProvider.java
浏览文件 @
c84f277f
...
@@ -15,14 +15,19 @@ public class OwnerLoanRecordSqlProvider {
...
@@ -15,14 +15,19 @@ public class OwnerLoanRecordSqlProvider {
return
new
SQL
(){{
return
new
SQL
(){{
SELECT
(
" id, owner_user_no as ownerUserNo, owner_user_name as ownerUserName, mobile, "
+
SELECT
(
" id, owner_user_no as ownerUserNo, owner_user_name as ownerUserName, mobile, "
+
" running_water_open_no as runningWaterOpenNo, "
+
" goods_name as goodsName, "
+
" loan_no as loanNo, loan_type as loanType, loan_balance as loanBalance, borrower, borrower_account as borrowerAccount, "
+
" running_water_open_no as runningWaterOpenNo, merchant_running_water_no as merchantRunningWaterNo, "
+
" lending_party as lendingParty, lending_party_account as lendingPartyAccount, payee, payee_account as payeeAccount, "
+
" loan_no as loanNo, loan_type as loanType, loan_balance as loanBalance, "
+
" status, date_format(approve_time, '%Y-%m-%d %H:%i:%s') as approveTime, approve_by as approveBy, "
+
" borrower, borrower_account as borrowerAccount, remittance_identification_code as remittanceIdentificationCode, "
+
" lending_party as lendingParty, lending_party_account as lendingPartyAccount, "
+
" payee, payee_account as payeeAccount, "
+
" status, "
+
" date_format(approve_time, '%Y-%m-%d %H:%i:%s') as approveTime, approve_by as approveBy, "
+
" reject_reason as rejectReason, date_format(loan_repayment_time, '%Y-%m-%d %H:%i:%s') as loanRepaymentTime, "
+
" reject_reason as rejectReason, date_format(loan_repayment_time, '%Y-%m-%d %H:%i:%s') as loanRepaymentTime, "
+
" pay_channel as payChannel, close_order_time as closeOrderTime, "
+
" create_by as createBy, "
+
" create_by as createBy, "
+
"date_format(create_time, '%Y-%m-%d %H:%i:%s') as createTime, "
+
"
date_format(create_time, '%Y-%m-%d %H:%i:%s') as createTime, "
+
"date_format(modified_time, '%Y-%m-%d %H:%i:%s') as modifiedTime "
"
date_format(modified_time, '%Y-%m-%d %H:%i:%s') as modifiedTime "
);
);
FROM
(
"owner_loan_record"
);
FROM
(
"owner_loan_record"
);
...
...
performance-web/src/main/java/com/clx/performance/sqlProvider/borrower/OwnerRepaymentSqlProvider.java
浏览文件 @
c84f277f
...
@@ -15,11 +15,15 @@ public class OwnerRepaymentSqlProvider {
...
@@ -15,11 +15,15 @@ public class OwnerRepaymentSqlProvider {
return
new
SQL
(){{
return
new
SQL
(){{
SELECT
(
" id, owner_user_no as ownerUserNo, owner_user_name as ownerUserName, mobile, "
+
SELECT
(
" id, owner_user_no as ownerUserNo, owner_user_name as ownerUserName, mobile, "
+
" running_water_open_no as runningWaterOpenNo, repayment_no as repaymentNo, "
+
" running_water_open_no as runningWaterOpenNo, merchant_running_water_no as merchantRunningWaterNo, "
+
" repayment_balance as repaymentBalance, payment, payment_account as paymentAccount, "
+
" repayment_no as repaymentNo, repayment_balance as repaymentBalance, "
+
" payee, payee_account as payeeAccount, loan_no as loanNo, status, pay_channel as payChannel, "
+
" payment, payment_account as paymentAccount, remittance_identification_code as remittanceIdentificationCode, "
+
" be_overdue as beOverdue, date_format(loan_repayment_time, '%Y-%m-%d %H:%i:%s') as loanRepaymentTime, "
+
" goods_name as goodsName, "
+
" date_format(operate_time, '%Y-%m-%d %H:%i:%s') as operateTime, operate_by as operateBy, create_by as createBy, "
+
" payee, payee_account as payeeAccount, "
+
" loan_no as loanNo, status, "
+
" pay_channel as payChannel, be_overdue as beOverdue, date_format(loan_repayment_time, '%Y-%m-%d %H:%i:%s') as loanRepaymentTime, "
+
" close_order_time as closeOrderTime, date_format(operate_time, '%Y-%m-%d %H:%i:%s') as operateTime, "
+
" operate_by as operateBy, create_by as createBy, "
+
" date_format(create_time, '%Y-%m-%d %H:%i:%s') as createTime, "
+
" date_format(create_time, '%Y-%m-%d %H:%i:%s') as createTime, "
+
" date_format(modified_time, '%Y-%m-%d %H:%i:%s') as modifiedTime "
" date_format(modified_time, '%Y-%m-%d %H:%i:%s') as modifiedTime "
);
);
...
...
performance-web/src/main/java/com/clx/performance/struct/loan/OwnerLoanRecordStruct.java
浏览文件 @
c84f277f
package
com
.
clx
.
performance
.
struct
.
loan
;
package
com
.
clx
.
performance
.
struct
.
loan
;
import
com.clx.performance.model.loan.OwnerLoanRecord
;
import
com.clx.performance.model.loan.OwnerLoanRecord
;
import
com.clx.performance.vo.pc.loan.carrier.CashierInfoVO
;
import
com.clx.performance.vo.pc.loan.carrier.OrderPaymentDetailVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanRecordVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanRecordVO
;
import
com.msl.common.utils.DateStructUtil
;
import
com.msl.common.utils.DateStructUtil
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.Mapper
;
...
@@ -14,4 +16,9 @@ public interface OwnerLoanRecordStruct {
...
@@ -14,4 +16,9 @@ public interface OwnerLoanRecordStruct {
List
<
OwnerLoanRecordVO
>
convertList
(
List
<
OwnerLoanRecord
>
list
);
List
<
OwnerLoanRecordVO
>
convertList
(
List
<
OwnerLoanRecord
>
list
);
CashierInfoVO
convertCashierInfo
(
OwnerLoanRecord
ownerLoanRecord
);
OrderPaymentDetailVO
convertOrderPaymentDetail
(
OwnerLoanRecord
ownerLoanRecord
);
OwnerLoanRecordVO
convert
(
OwnerLoanRecord
ownerLoanRecord
);
}
}
performance-web/src/main/resources/bank/config-nbbank.json
deleted
100644 → 0
浏览文件 @
cad22df2
{
"api"
:
[
{
"appKey"
:
"77667c76_3503_4c04_95f7_fc10938c7942"
,
"publicUrl"
:
"https://open-test.nbcb.com.cn/sit/nbcb/api"
,
"platfromPublicKeyPath"
:
"/app/nbbank/bankPubKey.cer"
,
"merchantPrivateKeyPath"
:
"/app/nbbank/bankPrivateKey.sm2"
,
"merchantPrivateKeyPwd"
:
"cfca"
,
"connectTimeout"
:
10000
,
"readTimeout"
:
30000
,
"merchantName"
:
""
,
"subMerchantName"
:
""
,
"subMerchantId"
:
""
,
"isProxy"
:
false
,
"proxyIp"
:
""
,
"proxyPort"
:
80
}
],
"file"
:
[
{
"uid"
:
"TEST"
,
"publicFileUrl"
:
"https://file-test.nbcb.com.cn/sit"
,
"clientIp"
:
"127.0.0.1"
,
"passwd"
:
"nbcb123456"
,
"apiVersion"
:
"201809101526"
,
"isProxy"
:
false
,
"proxyIp"
:
""
,
"proxyPort"
:
80
}
]
}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论