Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-csf
Commits
8a909e9e
Commit
8a909e9e
authored
Apr 28, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增应收款,增加入参
parent
d5fa48ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
yd-csf-service/src/main/java/com/yd/csf/service/dto/CommissionExpectedAddDto.java
+6
-0
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionExpectedServiceImpl.java
+7
-3
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/dto/CommissionExpectedAddDto.java
View file @
8a909e9e
...
@@ -94,6 +94,12 @@ public class CommissionExpectedAddDto {
...
@@ -94,6 +94,12 @@ public class CommissionExpectedAddDto {
private
BigDecimal
amount
;
private
BigDecimal
amount
;
/**
/**
* 结算汇率
*/
@Schema
(
description
=
"结算汇率"
)
private
BigDecimal
exchangeRate
;
/**
* 入账日 (估)
* 入账日 (估)
*/
*/
@Schema
(
description
=
"入账日 (估) format:yyyy-MM-dd"
)
@Schema
(
description
=
"入账日 (估) format:yyyy-MM-dd"
)
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionExpectedServiceImpl.java
View file @
8a909e9e
...
@@ -420,7 +420,7 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
...
@@ -420,7 +420,7 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
commissionExpected
.
setPremium
(
policy
.
getPaymentPremium
());
commissionExpected
.
setPremium
(
policy
.
getPaymentPremium
());
}
else
{
}
else
{
BigDecimal
expectedAmount
=
addDto
.
getAmount
()
BigDecimal
expectedAmount
=
addDto
.
getAmount
()
.
multiply
(
commissionExpected
.
getDefaul
tExchangeRate
());
.
multiply
(
addDto
.
ge
tExchangeRate
());
commissionExpected
.
setExpectedAmount
(
expectedAmount
);
commissionExpected
.
setExpectedAmount
(
expectedAmount
);
}
}
...
@@ -462,14 +462,18 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
...
@@ -462,14 +462,18 @@ public class CommissionExpectedServiceImpl extends ServiceImpl<CommissionExpecte
if
(
StringUtils
.
isBlank
(
request
.
getCommissionType
()))
{
if
(
StringUtils
.
isBlank
(
request
.
getCommissionType
()))
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"入账项目类型不能为空"
);
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"入账项目类型不能为空"
);
}
}
// commissionType 只能是数字
if
(!
StringUtils
.
isNumeric
(
request
.
getCommissionType
()))
{
if
(!
StringUtils
.
isNumeric
(
request
.
getCommissionType
()))
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"入账项目类型只能是字典值"
);
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"入账项目类型只能是字典值"
);
}
}
// commissionName 不能为空
if
(
StringUtils
.
isBlank
(
request
.
getCommissionName
()))
{
if
(
StringUtils
.
isBlank
(
request
.
getCommissionName
()))
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"入账项目名称不能为空"
);
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"入账项目名称不能为空"
);
}
}
if
(
StringUtils
.
isBlank
(
request
.
getCurrency
()))
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"入账币种不能为空"
);
}
if
(
request
.
getExchangeRate
()
==
null
)
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"结算汇率不能为空"
);
}
if
(
"R"
.
equals
(
request
.
getCommissionBizType
()))
{
if
(
"R"
.
equals
(
request
.
getCommissionBizType
()))
{
if
(
request
.
getCommissionRatio
()
==
null
)
{
if
(
request
.
getCommissionRatio
()
==
null
)
{
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"关联保单应收单,佣金比例不能为空"
);
throw
new
BusinessException
(
ResultCode
.
PARAMS_ERROR
.
getCode
(),
"关联保单应收单,佣金比例不能为空"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment