Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
d1be2513
提交
d1be2513
authored
2月 04, 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
上级
d6366c79
0c58215c
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
114 行增加
和
8 行删除
+114
-8
OwnerAccountVO.java
.../com/clx/performance/vo/pc/loan/owner/OwnerAccountVO.java
+97
-0
OwnerLoanAccountController.java
.../controller/pc/loan/owner/OwnerLoanAccountController.java
+4
-3
OwnerLoanAccountServiceImpl.java
...rmance/service/impl/loan/OwnerLoanAccountServiceImpl.java
+9
-3
OwnerLoanAccountService.java
...clx/performance/service/loan/OwnerLoanAccountService.java
+2
-1
OwnerLoanAccountStruct.java
...m/clx/performance/struct/loan/OwnerLoanAccountStruct.java
+2
-1
没有找到文件。
performance-api/src/main/java/com/clx/performance/vo/pc/loan/owner/OwnerAccountVO.java
0 → 100644
浏览文件 @
d1be2513
package
com
.
clx
.
performance
.
vo
.
pc
.
loan
.
owner
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.msl.common.convertor.type.MoneyOutConvert
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.*
;
import
java.math.BigDecimal
;
/**
* @Author: aiqinguo
* @Description: 货主借款账户
* @Date: 2024/01/22 18:17:57
* @Version: 1.0
*/
@ApiModel
(
description
=
"货主借款账户"
)
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public
class
OwnerAccountVO
{
@ApiModelProperty
(
value
=
"货主编码"
,
example
=
"10000000"
)
private
Long
ownerUserNo
;
@ApiModelProperty
(
value
=
"货主名称"
,
example
=
"张三"
)
private
String
ownerUserName
;
@ApiModelProperty
(
value
=
"联系电话"
,
example
=
"13000000000"
)
private
String
mobile
;
@ApiModelProperty
(
value
=
"默认 3:借款账户"
,
example
=
"3"
)
private
Integer
accountType
;
@ApiModelProperty
(
value
=
"是否开通借款账户 0:未开通 1:已开通"
,
example
=
"3"
)
private
Integer
openAccount
;
@ApiModelProperty
(
value
=
"可用余额 (元) "
,
example
=
"1.23"
)
private
BigDecimal
amount
;
public
BigDecimal
getAmount
()
{
return
BigDecimal
.
ZERO
.
add
(
fundingUsableBalance
==
null
?
BigDecimal
.
ZERO
:
fundingUsableBalance
).
add
(
virtuallyUsableBalance
==
null
?
BigDecimal
.
ZERO
:
virtuallyUsableBalance
);
}
@ApiModelProperty
(
value
=
"冻结金额(元) "
,
example
=
"1.23"
)
private
BigDecimal
frozenAmount
;
public
BigDecimal
getFrozenAmount
()
{
return
BigDecimal
.
ZERO
.
add
(
fundingFrozenBalance
==
null
?
BigDecimal
.
ZERO
:
fundingFrozenBalance
).
add
(
virtuallyFrozenBalance
==
null
?
BigDecimal
.
ZERO
:
virtuallyFrozenBalance
);
}
@ApiModelProperty
(
value
=
"欠款金额 (元)"
,
example
=
"1.23"
)
private
BigDecimal
arrears
;
public
BigDecimal
getArrears
()
{
return
BigDecimal
.
ZERO
.
add
(
fundingArrears
==
null
?
BigDecimal
.
ZERO
:
fundingArrears
).
add
(
virtuallyArrears
==
null
?
BigDecimal
.
ZERO
:
virtuallyArrears
);
}
@JsonIgnore
@ApiModelProperty
(
value
=
"资金账户余额"
,
example
=
""
,
hidden
=
true
)
@MoneyOutConvert
private
BigDecimal
fundingAccountBalance
;
@JsonIgnore
@ApiModelProperty
(
value
=
"资金可用余额"
,
example
=
""
,
hidden
=
true
)
@MoneyOutConvert
private
BigDecimal
fundingUsableBalance
;
@JsonIgnore
@ApiModelProperty
(
value
=
"资金冻结余额"
,
example
=
""
,
hidden
=
true
)
@MoneyOutConvert
private
BigDecimal
fundingFrozenBalance
;
@JsonIgnore
@ApiModelProperty
(
value
=
"虚拟币账户余额"
,
example
=
""
,
hidden
=
true
)
@MoneyOutConvert
private
BigDecimal
virtuallyAccountBalance
;
@JsonIgnore
@ApiModelProperty
(
value
=
"虚拟币可用余额"
,
example
=
""
,
hidden
=
true
)
@MoneyOutConvert
private
BigDecimal
virtuallyUsableBalance
;
@JsonIgnore
@ApiModelProperty
(
value
=
"虚拟币冻结余额"
,
example
=
""
,
hidden
=
true
)
@MoneyOutConvert
private
BigDecimal
virtuallyFrozenBalance
;
@JsonIgnore
@ApiModelProperty
(
value
=
"资金欠款"
,
example
=
"1.23"
,
hidden
=
true
)
@MoneyOutConvert
private
BigDecimal
fundingArrears
;
@JsonIgnore
@ApiModelProperty
(
value
=
"虚拟币欠款"
,
example
=
"1.23"
,
hidden
=
true
)
@MoneyOutConvert
private
BigDecimal
virtuallyArrears
;
}
\ No newline at end of file
performance-web/src/main/java/com/clx/performance/controller/pc/loan/owner/OwnerLoanAccountController.java
浏览文件 @
d1be2513
...
@@ -5,6 +5,7 @@ import com.clx.performance.service.loan.OwnerLoanAccountApproveService;
...
@@ -5,6 +5,7 @@ import com.clx.performance.service.loan.OwnerLoanAccountApproveService;
import
com.clx.performance.service.loan.OwnerLoanAccountService
;
import
com.clx.performance.service.loan.OwnerLoanAccountService
;
import
com.clx.performance.service.loan.OwnerLoanRecordService
;
import
com.clx.performance.service.loan.OwnerLoanRecordService
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerAccountVO
;
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
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -49,8 +50,8 @@ public class OwnerLoanAccountController {
...
@@ -49,8 +50,8 @@ public class OwnerLoanAccountController {
@ApiOperation
(
value
=
"货主借款账户信息"
,
notes
=
"<br>By:刘海泉"
)
@ApiOperation
(
value
=
"货主借款账户信息"
,
notes
=
"<br>By:刘海泉"
)
@GetMapping
(
"/getOwnerLoanAccount"
)
@GetMapping
(
"/getOwnerLoanAccount"
)
@UnitCovert
(
param
=
false
)
@UnitCovert
(
param
=
false
)
public
Result
<
Owner
Loan
AccountVO
>
getOwnerLoanAccount
()
{
public
Result
<
OwnerAccountVO
>
getOwnerLoanAccount
()
{
Owner
LoanAccountVO
ownerLoanAccountVO
=
ownerLoanAccountService
.
getOwnerLoanAccount
();
Owner
AccountVO
ownerAccount
=
ownerLoanAccountService
.
getOwnerLoanAccount
();
return
Result
.
ok
(
owner
LoanAccountVO
);
return
Result
.
ok
(
owner
Account
);
}
}
}
}
performance-web/src/main/java/com/clx/performance/service/impl/loan/OwnerLoanAccountServiceImpl.java
浏览文件 @
d1be2513
...
@@ -8,6 +8,8 @@ import com.clx.performance.param.pc.loan.carrier.PageOwnerLoanAccountParam;
...
@@ -8,6 +8,8 @@ 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.clx.performance.vo.pc.loan.owner.OwnerAccountVO
;
import
com.msl.common.base.Optional
;
import
com.msl.common.convertor.aspect.UnitCovert
;
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
;
...
@@ -58,10 +60,14 @@ public class OwnerLoanAccountServiceImpl implements OwnerLoanAccountService {
...
@@ -58,10 +60,14 @@ public class OwnerLoanAccountServiceImpl implements OwnerLoanAccountService {
}
}
@Override
@Override
public
Owner
Loan
AccountVO
getOwnerLoanAccount
()
{
public
OwnerAccountVO
getOwnerLoanAccount
()
{
UserSessionData
loginUserInfo
=
TokenUtil
.
getLoginUserInfo
();
UserSessionData
loginUserInfo
=
TokenUtil
.
getLoginUserInfo
();
OwnerLoanAccount
ownerLoanAccount
=
ownerLoanAccountDao
.
getOneByField
(
OwnerLoanAccount
::
getOwnerUserNo
,
loginUserInfo
.
getUserNo
()).
orElseThrow
(
Optional
<
OwnerLoanAccount
>
optional
=
ownerLoanAccountDao
.
getOneByField
(
OwnerLoanAccount:
:
getOwnerUserNo
,
PerformanceResultEnum
.
DATA_NOT_FIND
);
loginUserInfo
.
getUserNo
());
if
(!
optional
.
isPresent
()){
return
OwnerAccountVO
.
builder
().
openAccount
(
0
).
build
();
}
OwnerLoanAccount
ownerLoanAccount
=
optional
.
get
();
return
ownerLoanAccountStruct
.
convertVO
(
ownerLoanAccount
);
return
ownerLoanAccountStruct
.
convertVO
(
ownerLoanAccount
);
}
}
}
}
performance-web/src/main/java/com/clx/performance/service/loan/OwnerLoanAccountService.java
浏览文件 @
d1be2513
...
@@ -3,6 +3,7 @@ package com.clx.performance.service.loan;
...
@@ -3,6 +3,7 @@ package com.clx.performance.service.loan;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerLoanAccountParam
;
import
com.clx.performance.param.pc.loan.carrier.PageOwnerLoanAccountParam
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.loan.carrier.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerAccountVO
;
/**
/**
* @author kavin
* @author kavin
...
@@ -15,5 +16,5 @@ public interface OwnerLoanAccountService {
...
@@ -15,5 +16,5 @@ public interface OwnerLoanAccountService {
IPage
<
OwnerLoanAccountVO
>
pageOwnerLoanAccount
(
PageOwnerLoanAccountParam
param
);
IPage
<
OwnerLoanAccountVO
>
pageOwnerLoanAccount
(
PageOwnerLoanAccountParam
param
);
Owner
Loan
AccountVO
getOwnerLoanAccount
();
OwnerAccountVO
getOwnerLoanAccount
();
}
}
performance-web/src/main/java/com/clx/performance/struct/loan/OwnerLoanAccountStruct.java
浏览文件 @
d1be2513
...
@@ -2,6 +2,7 @@ package com.clx.performance.struct.loan;
...
@@ -2,6 +2,7 @@ package com.clx.performance.struct.loan;
import
com.clx.performance.model.loan.OwnerLoanAccount
;
import
com.clx.performance.model.loan.OwnerLoanAccount
;
import
com.clx.performance.vo.pc.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.OwnerLoanAccountVO
;
import
com.clx.performance.vo.pc.loan.owner.OwnerAccountVO
;
import
com.msl.common.utils.DateStructUtil
;
import
com.msl.common.utils.DateStructUtil
;
import
org.mapstruct.Mapper
;
import
org.mapstruct.Mapper
;
...
@@ -13,6 +14,6 @@ public interface OwnerLoanAccountStruct {
...
@@ -13,6 +14,6 @@ public interface OwnerLoanAccountStruct {
OwnerLoanAccountVO
convert
(
OwnerLoanAccount
account
);
OwnerLoanAccountVO
convert
(
OwnerLoanAccount
account
);
com
.
clx
.
performance
.
vo
.
pc
.
loan
.
carrier
.
OwnerLoan
AccountVO
convertVO
(
OwnerLoanAccount
account
);
Owner
AccountVO
convertVO
(
OwnerLoanAccount
account
);
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论