Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
licc
data-server
Commits
fbe1ff9f
Commit
fbe1ff9f
authored
Mar 02, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
最大进步奖 最终优化
parent
7c421d96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
AccountManager.java
...ain/java/cn/wisenergy/service/Manager/AccountManager.java
+14
-2
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/Manager/AccountManager.java
View file @
fbe1ff9f
...
...
@@ -45,8 +45,6 @@ public class AccountManager {
@Autowired
private
ProgressPrizeMapper
progressPrizeMapper
;
@Autowired
private
TradeRecordMapper
tradeRecordMapper
;
private
static
final
String
PATTERN
=
"yyyy-MM"
;
...
...
@@ -93,6 +91,13 @@ public class AccountManager {
}
}
/**
* 修改 或新增 删除 最大进步奖实体类
*
* @param listVo 最新的进步奖 对象
* @param accountInfoList 要更新的最大进步奖账户收益
* @param prizes 上一次统计的进步奖 对象
*/
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
void
updateOrSavePrize
(
List
<
TeamPerformanceSortVo
>
listVo
,
List
<
AccountInfo
>
accountInfoList
,
List
<
ProgressPrize
>
prizes
)
{
...
...
@@ -162,6 +167,13 @@ public class AccountManager {
//3、添加账户获得的收益
for
(
AccountInfo
accountInfo
:
accountInfoList
)
{
accountMapper
.
edit
(
accountInfo
);
//添加交易流水记录
TradeRecord
tradeRecord
=
new
TradeRecord
();
tradeRecord
.
setUserId
(
accountInfo
.
getUserId
());
tradeRecord
.
setTradeType
(
TradeRecordEnum
.
PROGRESS_PRIZE
.
getCode
());
tradeRecord
.
setTradeNo
(
null
);
recordMapper
.
add
(
tradeRecord
);
}
}
}
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