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