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
7d44251d
Commit
7d44251d
authored
Sep 30, 2025
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fna接口55
parent
76068e92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionServiceImpl.java
+14
-11
No files found.
yd-csf-service/src/main/java/com/yd/csf/service/service/impl/CommissionServiceImpl.java
View file @
7d44251d
...
@@ -23,6 +23,7 @@ import com.yd.csf.service.service.PolicyBrokerService;
...
@@ -23,6 +23,7 @@ import com.yd.csf.service.service.PolicyBrokerService;
import
com.yd.csf.service.service.PolicyService
;
import
com.yd.csf.service.service.PolicyService
;
import
com.yd.csf.service.vo.CommissionVO
;
import
com.yd.csf.service.vo.CommissionVO
;
import
com.yd.csf.service.vo.FnaVO
;
import
com.yd.csf.service.vo.FnaVO
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -145,17 +146,19 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
...
@@ -145,17 +146,19 @@ public class CommissionServiceImpl extends ServiceImpl<CommissionMapper, Commiss
String
policyNo
=
commission
.
getPolicyNo
();
String
policyNo
=
commission
.
getPolicyNo
();
List
<
PolicyBroker
>
policyBrokers
=
brokerMap
.
get
(
policyNo
);
List
<
PolicyBroker
>
policyBrokers
=
brokerMap
.
get
(
policyNo
);
for
(
PolicyBroker
policyBroker
:
policyBrokers
)
{
if
(
CollectionUtils
.
isNotEmpty
(
policyBrokers
))
{
Fortune
fortune
=
new
Fortune
();
for
(
PolicyBroker
policyBroker
:
policyBrokers
)
{
fortune
.
setFortuneBizId
(
RandomStringGenerator
.
generateBizId16
(
CommonEnum
.
UID_TYPE_FORTUNE
.
getCode
()));
Fortune
fortune
=
new
Fortune
();
fortune
.
setPolicyNo
(
policyNo
);
fortune
.
setFortuneBizId
(
RandomStringGenerator
.
generateBizId16
(
CommonEnum
.
UID_TYPE_FORTUNE
.
getCode
()));
fortune
.
setBroker
(
policyBroker
.
getBrokerName
());
fortune
.
setPolicyNo
(
policyNo
);
fortune
.
setStatus
(
FortuneStatusEnum
.
IN_PROCESS
.
getItemValue
());
fortune
.
setBroker
(
policyBroker
.
getBrokerName
());
fortune
.
setStatus
(
FortuneStatusEnum
.
IN_PROCESS
.
getItemValue
());
fortune
.
setCreateTime
(
new
Date
());
fortune
.
setUpdateTime
(
new
Date
());
fortune
.
setCreateTime
(
new
Date
());
fortune
.
setUpdateTime
(
new
Date
());
newFortuneList
.
add
(
fortune
);
newFortuneList
.
add
(
fortune
);
}
}
}
}
}
// 5. 保存发佣记录
// 5. 保存发佣记录
...
...
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