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
97d807c4
Commit
97d807c4
authored
Jul 07, 2021
by
jianan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
续年佣金计算-来佣比对检核年月8
parent
25fb738d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
25 deletions
+26
-25
yd-api/src/main/java/com/yd/api/commission/service/impl/LifeCommissionServiceImpl.java
+11
-9
yd-api/src/main/java/com/yd/dal/mapper/commission/AgPoOrderCommissionMapper.java
+2
-1
yd-api/src/main/resources/mapper/commission/AgPoOrderCommissionMapper.xml
+13
-15
No files found.
yd-api/src/main/java/com/yd/api/commission/service/impl/LifeCommissionServiceImpl.java
View file @
97d807c4
...
@@ -152,15 +152,17 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
...
@@ -152,15 +152,17 @@ public class LifeCommissionServiceImpl implements LifeCommissionService {
// 获取批次号(如2020-11的字符串)
// 获取批次号(如2020-11的字符串)
Long
checkBatchId
=
this
.
getOrderCommissionCheckBatch
(
checkBatch
,
loginId
);
Long
checkBatchId
=
this
.
getOrderCommissionCheckBatch
(
checkBatch
,
loginId
);
AgPoOrderCommission
orderCommission
=
new
AgPoOrderCommission
();
for
(
String
commissionNo:
commissionNos
)
{
orderCommission
.
setCommissionCheckId
(
checkBatchId
);
AgPoOrderCommission
orderCommission
=
new
AgPoOrderCommission
();
orderCommission
.
setCommissionStatus
(
status
);
orderCommission
.
setCommissionNo
(
commissionNo
);
orderCommission
.
setCommissionTime
(
checkBatch
);
orderCommission
.
setCommissionCheckId
(
checkBatchId
);
orderCommission
.
setUpdatedBy
(
Long
.
valueOf
(
loginId
));
orderCommission
.
setCommissionStatus
(
status
);
orderCommission
.
setUpdatedAt
(
new
Date
());
orderCommission
.
setCommissionTime
(
checkBatch
);
orderCommission
.
setUpdatedBy
(
Long
.
valueOf
(
loginId
));
orderCommissionMapper
.
updateBatchBycommissionNo
(
commissionNos
,
orderCommission
);
orderCommission
.
setUpdatedAt
(
new
Date
());
orderCommissionMapper
.
updateBycommissionNo
(
orderCommission
);
}
}
}
@Override
@Override
...
...
yd-api/src/main/java/com/yd/dal/mapper/commission/AgPoOrderCommissionMapper.java
View file @
97d807c4
...
@@ -18,5 +18,5 @@ public interface AgPoOrderCommissionMapper {
...
@@ -18,5 +18,5 @@ public interface AgPoOrderCommissionMapper {
int
updateByPrimaryKey
(
AgPoOrderCommission
record
);
int
updateByPrimaryKey
(
AgPoOrderCommission
record
);
void
updateB
atchBycommissionNo
(
@Param
(
"list"
)
List
<
String
>
commissionNos
,
@Param
(
"orderCommission"
)
AgPoOrderCommission
orderCommission
);
void
updateB
ycommissionNo
(
AgPoOrderCommission
orderCommission
);
}
}
\ No newline at end of file
yd-api/src/main/resources/mapper/commission/AgPoOrderCommissionMapper.xml
View file @
97d807c4
...
@@ -322,28 +322,25 @@
...
@@ -322,28 +322,25 @@
where id = #{id,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</update>
<update
id=
"updateB
atchBycommissionNo"
>
<update
id=
"updateB
ycommissionNo"
parameterType=
"com.yd.dal.entity.commission.AgPoOrderCommission"
>
update ag_po_order_commission
update ag_po_order_commission
<set>
<set>
<if
test=
"
orderCommission.
commissionStatus != null"
>
<if
test=
"commissionStatus != null"
>
commission_status = #{
orderCommission.
commissionStatus,jdbcType=BIGINT},
commission_status = #{commissionStatus,jdbcType=BIGINT},
</if>
</if>
<if
test=
"
orderCommission.
commissionTime != null"
>
<if
test=
"commissionTime != null"
>
commission_time = #{
orderCommission.
commissionTime,jdbcType=VARCHAR},
commission_time = #{commissionTime,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
orderCommission.
commissionCheckId != null"
>
<if
test=
"commissionCheckId != null"
>
commission_check_id = #{
orderCommission.
commissionCheckId,jdbcType=VARCHAR},
commission_check_id = #{commissionCheckId,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"
orderCommission.
updatedBy != null"
>
<if
test=
"updatedBy != null"
>
updated_by = #{
orderCommission.
updatedBy,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"
orderCommission.
updatedAt != null"
>
<if
test=
"updatedAt != null"
>
updated_at = #{
orderCommission.
updatedAt,jdbcType=TIMESTAMP},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
</if>
</set>
</set>
where commission_no in
where commission_no = #{commissionNo,jdbcType=VARCHAR}
<foreach
collection=
"list"
index=
"index"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</update>
</update>
</mapper>
</mapper>
\ No newline at end of file
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