Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
gogirl-miniapp-backend
Commits
f4e0d5a8
Commit
f4e0d5a8
authored
Mar 27, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
色系
parent
f59368fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
Schedule.java
...ain/java/com/gogirl/infrastructure/schedule/Schedule.java
+8
-5
No files found.
src/main/java/com/gogirl/infrastructure/schedule/Schedule.java
View file @
f4e0d5a8
...
...
@@ -132,29 +132,32 @@ public class Schedule {
//推荐人列表
Map
<
String
,
String
>
map
=
new
HashMap
<>();
//推荐人id
StringBuilder
referee_ids
=
new
StringBuilder
();
//充值记录
CustomerBalanceRecord
cbrt
=
balanceRecordDao
.
selectByPrimaryKey
(
customerBalanceRecord
.
getId
());
//每次都修改推荐人,且每晚都会设置推荐人
if
(
customerBalanceRecord
.
getRefereeId
()
!=
null
)
{
//每次都修改推荐人,且每晚都会设置推荐人
String
[]
arr
=
customerBalanceRecord
.
getRefereeId
().
split
(
","
);
//
for
(
String
s
:
arr
)
{
if
(!
map
.
containsKey
(
s
))
{
map
.
put
(
s
,
s
);
referee_ids
.
append
(
","
).
append
(
mapTechnicianManage
.
get
(
s
));
}
}
//去掉首尾,
if
(
referee_ids
.
toString
().
startsWith
(
","
))
{
referee_ids
=
new
StringBuilder
(
referee_ids
.
substring
(
1
));
}
customerBalanceRecord
.
setRefereeId
(
referee_ids
.
toString
());
}
//如果店铺id不为空
if
(
cbrt
!=
null
&&
cbrt
.
getDepartmentId
()
!=
null
)
{
customerBalanceRecord
.
setDepartmentId
(
cbrt
.
getDepartmentId
());
}
if
(
customerBalanceRecord
.
getId
()
!=
null
&&
(
customerBalanceRecord
.
getRefereeId
()
!=
null
||
customerBalanceRecord
.
getDepartmentId
()
!=
null
))
{
if
(
customerBalanceRecord
.
getId
()
!=
null
&&
(
customerBalanceRecord
.
getRefereeId
()
!=
null
||
customerBalanceRecord
.
getDepartmentId
()
!=
null
))
{
balanceRecordDao
.
updateByPrimaryKeySelective
(
customerBalanceRecord
);
}
}
...
...
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