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
859dade9
Commit
859dade9
authored
May 14, 2026
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出账检核-增加币种59
parent
884d8ccf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
21 deletions
+13
-21
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
+13
-21
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/FortuneServiceImpl.java
View file @
859dade9
...
@@ -384,41 +384,33 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
...
@@ -384,41 +384,33 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
// 校验发佣记录状态
// 校验发佣记录状态
StringBuilder
validateMsg
=
new
StringBuilder
();
StringBuilder
validateMsg
=
new
StringBuilder
();
for
(
Fortune
fortune
:
fortuneList
)
{
for
(
Fortune
fortune
:
fortuneList
)
{
// 统一加一个换行符开始
validateMsg
.
append
(
"<br>"
);
if
(
StringUtils
.
isNotBlank
(
fortune
.
getFortuneAccountBizId
()))
{
if
(
StringUtils
.
isNotBlank
(
fortune
.
getFortuneAccountBizId
()))
{
validateMsg
.
append
(
"保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
validateMsg
.
append
(
"
➖ "
).
append
(
"
保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
.
append
(
":已发薪资,不能重复生成"
).
append
(
"
<br>
"
);
.
append
(
":已发薪资,不能重复生成"
).
append
(
"
"
);
}
}
if
(
StringUtils
.
equals
(
fortune
.
getStatus
(),
FortuneStatusEnum
.
WAIT
.
getItemValue
()))
{
if
(
StringUtils
.
equals
(
fortune
.
getStatus
(),
FortuneStatusEnum
.
WAIT
.
getItemValue
()))
{
validateMsg
.
append
(
"保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
validateMsg
.
append
(
"
➖ "
).
append
(
"
保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
.
append
(
":待出账状态不能直接改为'可出账, 检核完成'"
).
append
(
"
<br>
"
);
.
append
(
":待出账状态不能直接改为'可出账, 检核完成'"
).
append
(
"
"
);
}
}
if
(
StringUtils
.
equals
(
fortune
.
getStatus
(),
FortuneStatusEnum
.
SENT
.
getItemValue
()))
{
if
(
StringUtils
.
equals
(
fortune
.
getStatus
(),
FortuneStatusEnum
.
SENT
.
getItemValue
()))
{
validateMsg
.
append
(
"保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
validateMsg
.
append
(
"
➖ "
).
append
(
"
保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
.
append
(
":已完成出账"
).
append
(
"
<br>
"
);
.
append
(
":已完成出账"
).
append
(
"
"
);
}
}
if
(
fortune
.
getActualPayoutDate
()
==
null
)
{
if
(
fortune
.
getActualPayoutDate
()
==
null
)
{
validateMsg
.
append
(
"保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
validateMsg
.
append
(
"
➖ "
).
append
(
"
保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
.
append
(
":未设置出账年月(实)"
).
append
(
"
<br>
"
);
.
append
(
":未设置出账年月(实)"
).
append
(
"
"
);
}
}
if
(
ObjectUtils
.
isEmpty
(
fortune
.
getPayoutCurrency
()))
{
if
(
ObjectUtils
.
isEmpty
(
fortune
.
getPayoutCurrency
()))
{
validateMsg
.
append
(
"保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
validateMsg
.
append
(
"
➖ "
).
append
(
"
保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
.
append
(
":未设置发放币种"
).
append
(
"
<br>
"
);
.
append
(
":未设置发放币种"
).
append
(
"
"
);
}
}
if
(
ObjectUtils
.
isEmpty
(
fortune
.
getPayoutAmount
()))
{
if
(
ObjectUtils
.
isEmpty
(
fortune
.
getPayoutAmount
()))
{
validateMsg
.
append
(
"保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
validateMsg
.
append
(
"
➖ "
).
append
(
"
保单"
).
append
(
fortune
.
getPolicyNo
()).
append
(
"-"
).
append
(
fortune
.
getBroker
())
.
append
(
":未设置发放币种金额"
).
append
(
"
<br>
"
);
.
append
(
":未设置发放币种金额"
).
append
(
"
"
);
}
}
}
}
if
(
StringUtils
.
isNotBlank
(
validateMsg
.
toString
()))
{
if
(
StringUtils
.
isNotBlank
(
validateMsg
.
toString
()))
{
// 去掉最开头的那个多余的换行符
throw
new
BusinessException
(
ResultCode
.
FAIL
.
getCode
(),
validateMsg
.
toString
());
String
finalMsg
=
validateMsg
.
toString
();
if
(
finalMsg
.
startsWith
(
"<br>"
))
{
finalMsg
=
finalMsg
.
substring
(
5
);
}
throw
new
BusinessException
(
ResultCode
.
FAIL
.
getCode
(),
finalMsg
);
}
}
if
(
CollUtil
.
isNotEmpty
(
fortuneList
))
{
if
(
CollUtil
.
isNotEmpty
(
fortuneList
))
{
...
...
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