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
0b532595
Commit
0b532595
authored
Apr 09, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务优化2
parent
79a6efd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
OrderMapper.xml
wisenergy-mapper/src/main/resources/mapper/OrderMapper.xml
+1
-1
DayTaskServiceImpl.java
...ava/cn/wisenergy/service/app/impl/DayTaskServiceImpl.java
+4
-3
No files found.
wisenergy-mapper/src/main/resources/mapper/OrderMapper.xml
View file @
0b532595
...
...
@@ -135,6 +135,7 @@
<include
refid=
"table"
/>
<where>
rebate_status=0
and pay_type !=0
<if
test=
"successTime != null "
>
AND(
YEAR(success_time) = YEAR(#{successTime})
...
...
@@ -150,7 +151,6 @@
<include
refid=
"table"
/>
<where>
pay_type != 0
and user_id != null
and user_id !=''
<if
test=
"created != null "
>
and (YEAR(created) = YEAR(#{created})
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/DayTaskServiceImpl.java
View file @
0b532595
...
...
@@ -439,6 +439,10 @@ public class DayTaskServiceImpl implements DayTaskService {
//当月所有人订单成交总金额/3980/12 向下整
double
moneyMonth
=
Math
.
floor
(
total
/
3980
/
12
);
if
(
moneyMonth
==
0
)
{
return
true
;
}
List
<
AccountInfo
>
accountInfoList
=
new
ArrayList
<>();
List
<
TradeRecord
>
tradeRecordList
=
new
ArrayList
<>();
...
...
@@ -453,9 +457,6 @@ public class DayTaskServiceImpl implements DayTaskService {
lastMonthAward
=
monthManure
.
getManureAward
();
}
if
(
moneyMonth
==
0
)
{
return
true
;
}
for
(
User
user
:
userList
)
{
//获取等级优惠百分比
MemberPercent
memberPercent
=
memberPercentMapper
.
getByLevelAndType
(
user
.
getUserLevel
(),
2
);
...
...
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