Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
AutogeneralShanghai
yd-backend
Commits
63aa54bc
Commit
63aa54bc
authored
Dec 24, 2021
by
hongzhong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_20210330' into dev_20210330
parents
fd414431
e615d12e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
yd-api/src/main/java/com/yd/api/commission/service/impl/LifeCommissionServiceImpl.java
+11
-5
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
+2
-2
No files found.
yd-api/src/main/java/com/yd/api/commission/service/impl/LifeCommissionServiceImpl.java
View file @
63aa54bc
...
@@ -363,18 +363,24 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
...
@@ -363,18 +363,24 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
private
void
updateFortune
(
Long
commissionId
,
String
status
,
String
loginId
,
String
checkBatch
)
{
private
void
updateFortune
(
Long
commissionId
,
String
status
,
String
loginId
,
String
checkBatch
)
{
// 查询对应的fortune记录
// 查询对应的fortune记录
List
<
AclCustomerFortune
>
fortuneList
=
customerFortuneDalService
.
queryLifeFortuneListByCommissionId
(
commissionId
);
List
<
AclCustomerFortune
>
fortuneList
=
customerFortuneDalService
.
queryLifeFortuneListByCommissionId
(
commissionId
);
// 更新fortune记录是否可发放
// 更新fortune记录是否可发放
String
fortuneCommissionPayoutStatus
=
"2"
.
equals
(
status
)
?
"2"
:
"0"
;
//旧发佣检核状态字段
String
fortuneCommissionPayoutStatus
=
"0"
;
//旧发佣检核状态字段
if
(
"1"
.
equals
(
status
))
{
fortuneCommissionPayoutStatus
=
"0"
;
}
else
if
(
"2"
.
equals
(
status
))
{
fortuneCommissionPayoutStatus
=
"2"
;
}
else
if
(
"3"
.
equals
(
status
))
{
fortuneCommissionPayoutStatus
=
"1"
;
}
if
(
fortuneList
.
size
()
>
0
)
{
if
(
fortuneList
.
size
()
>
0
)
{
// 批量设置fortune为可发佣
// 批量设置fortune为可发佣
for
tuneList
.
forEach
(
f
->
{
for
(
AclCustomerFortune
f
:
fortuneList
)
{
f
.
setCommissionPayoutStatus
(
fortuneCommissionPayoutStatus
);
f
.
setCommissionPayoutStatus
(
fortuneCommissionPayoutStatus
);
f
.
setStatus
(
"
2"
.
equals
(
fortuneCommissionPayoutStatus
)
?
"2"
:
"1"
);
//新发佣检核状态字段
f
.
setStatus
(
"
3"
.
equals
(
status
)
?
"0"
:
status
);
//新发佣检核状态字段
f
.
setCommissionPayoutAt
(
new
Date
());
f
.
setCommissionPayoutAt
(
new
Date
());
f
.
setCommissionPayoutBy
(
Long
.
valueOf
(
loginId
));
f
.
setCommissionPayoutBy
(
Long
.
valueOf
(
loginId
));
}
);
}
customerFortuneDalService
.
updateBatch
(
fortuneList
);
customerFortuneDalService
.
updateBatch
(
fortuneList
);
}
}
}
}
...
...
yd-api/src/main/resources/mapper/agms/AgmsFortuneMapper.xml
View file @
63aa54bc
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
LEFT JOIN ag_md_drop_master mas ON mas.id = op.drop_master_id
LEFT JOIN ag_md_drop_master mas ON mas.id = op.drop_master_id
LEFT JOIN ag_md_drop_options op1 ON op1.id = setting.practitioner_level
LEFT JOIN ag_md_drop_options op1 ON op1.id = setting.practitioner_level
LEFT JOIN ag_md_drop_master mas1 ON mas1.id = op1.drop_master_id
LEFT JOIN ag_md_drop_master mas1 ON mas1.id = op1.drop_master_id
WHERE t.settlement_type = '1'
AND t.status != '4'
WHERE t.settlement_type = '1'
AND mas.drop_code = 'Fortune_Payout_Status'
AND mas.drop_code = 'Fortune_Payout_Status'
AND mas1.scenario_code = 'practitioner_level'
AND mas1.scenario_code = 'practitioner_level'
AND oc.commission_status = '2'
AND oc.commission_status = '2'
...
@@ -161,7 +161,7 @@
...
@@ -161,7 +161,7 @@
LEFT JOIN ag_md_drop_master mas ON mas.id = op.drop_master_id
LEFT JOIN ag_md_drop_master mas ON mas.id = op.drop_master_id
LEFT JOIN ag_md_drop_options op1 ON op1.id = setting.practitioner_level
LEFT JOIN ag_md_drop_options op1 ON op1.id = setting.practitioner_level
LEFT JOIN ag_md_drop_master mas1 ON mas1.id = op1.drop_master_id
LEFT JOIN ag_md_drop_master mas1 ON mas1.id = op1.drop_master_id
WHERE t.settlement_type = '2'
AND t.status != '4'
WHERE t.settlement_type = '2'
AND mas.drop_code = 'Fortune_Payout_Status'
AND mas.drop_code = 'Fortune_Payout_Status'
AND mas1.scenario_code = 'practitioner_level'
AND mas1.scenario_code = 'practitioner_level'
and setting.practitioner_type_id = 28
and setting.practitioner_type_id = 28
...
...
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