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
a76a8fa6
Commit
a76a8fa6
authored
Mar 10, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核-设置本期出账金额、完成检核
parent
b7a3bb32
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
yd-csf-service/src/main/java/com/yd/csf/service/dto/FortuneUpdateRequest.java
+8
-2
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
+11
-11
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/dto/FortuneUpdateRequest.java
View file @
a76a8fa6
...
...
@@ -84,8 +84,14 @@ public class FortuneUpdateRequest implements Serializable {
/**
* 本期出账金额
*/
@Schema
(
description
=
"本期出账金额"
)
private
BigDecimal
currentPaymentAmount
;
// @Schema(description = "本期出账金额")
// private BigDecimal currentPaymentAmount;
/**
* 本期出账港币金额
*/
@Schema
(
description
=
"本期出账港币金额"
)
private
BigDecimal
currentPaymentHkdAmount
;
/**
* 出账币种
...
...
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
View file @
a76a8fa6
...
...
@@ -181,13 +181,13 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
if
(
expectedFortune
==
null
)
{
throw
new
BusinessException
(
ResultCode
.
NULL_ERROR
.
getCode
(),
"预计出账数据不存在"
);
}
BigDecimal
currentPayment
Amount
=
fortuneUpdateRequest
.
getCurrentPayment
Amount
();
if
(
currentPaymentAmount
!=
null
)
{
if
(
currentPaymentAmount
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
)
{
throw
new
BusinessException
(
ResultCode
.
PARAM_CHECK_ERROR
.
getCode
(),
"出账金额不能小于0"
);
BigDecimal
currentPayment
HkdAmount
=
fortuneUpdateRequest
.
getCurrentPaymentHkd
Amount
();
if
(
currentPayment
Hkd
Amount
!=
null
)
{
if
(
currentPayment
Hkd
Amount
.
compareTo
(
BigDecimal
.
ZERO
)
<
0
)
{
throw
new
BusinessException
(
ResultCode
.
PARAM_CHECK_ERROR
.
getCode
(),
"出账
港币
金额不能小于0"
);
}
if
(
currentPaymentAmount
.
compareTo
(
expectedFortune
.
getHkdAmount
())
>
0
)
{
throw
new
BusinessException
(
ResultCode
.
PARAM_CHECK_ERROR
.
getCode
(),
"出账
金额不能大于应付款
金额"
);
if
(
currentPayment
Hkd
Amount
.
compareTo
(
expectedFortune
.
getHkdAmount
())
>
0
)
{
throw
new
BusinessException
(
ResultCode
.
PARAM_CHECK_ERROR
.
getCode
(),
"出账
港币金额不能大于应付款港币
金额"
);
}
if
(
StringUtils
.
isBlank
(
fortuneUpdateRequest
.
getCurrency
()))
{
throw
new
BusinessException
(
ResultCode
.
PARAM_CHECK_ERROR
.
getCode
(),
"出账币种不能为空"
);
...
...
@@ -211,8 +211,8 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
fortune
.
setReconciliationOperator
(
currentLoginUser
.
getUsername
());
// 如果传入了金额
if
(
currentPayment
Amount
!=
null
)
{
splitFortune
(
fortune
,
currentPaymentAmount
,
expectedFortune
,
loginUserId
,
fortuneUpdateRequest
);
if
(
currentPayment
HkdAmount
!=
null
&&
currentPaymentHkdAmount
.
compareTo
(
BigDecimal
.
ZERO
)
!=
0
)
{
splitFortune
(
fortune
,
currentPayment
Hkd
Amount
,
expectedFortune
,
loginUserId
,
fortuneUpdateRequest
);
}
else
{
// 如果未传入金额,仅更新预计出账状态为已出帐
expectedFortuneService
.
lambdaUpdate
()
...
...
@@ -360,9 +360,9 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
// 校验发佣记录状态
StringBuilder
validateMsg
=
new
StringBuilder
();
for
(
Fortune
fortune
:
fortuneList
)
{
if
(
StringUtils
.
equals
(
fortune
.
getStatus
(),
FortuneStatusEnum
.
CAN_SEND
.
getItemValue
()))
{
validateMsg
.
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
()).
append
(
"当前未检核,请检核后再生成出账记录; "
);
}
//
if (StringUtils.equals(fortune.getStatus(), FortuneStatusEnum.CAN_SEND.getItemValue())) {
//
validateMsg.append(fortune.getPolicyNo()).append("-").append(fortune.getBroker()).append("当前未检核,请检核后再生成出账记录; ");
//
}
if
(
StringUtils
.
equals
(
fortune
.
getStatus
(),
FortuneStatusEnum
.
SENT
.
getItemValue
()))
{
validateMsg
.
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
()).
append
(
"已完成出账,不能生成出账记录; "
);
}
...
...
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