Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-spark-tag-4.0
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
wangxiaokang
gic-spark-tag-4.0
Commits
58ac380f
Commit
58ac380f
authored
Aug 25, 2020
by
guos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签4.0
parent
56c4d647
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
TagTopSingleConsumptionMoneyFilter.java
.../gic/spark/filter/TagTopSingleConsumptionMoneyFilter.java
+8
-7
No files found.
src/main/java/com/gic/spark/filter/TagTopSingleConsumptionMoneyFilter.java
View file @
58ac380f
...
...
@@ -54,7 +54,7 @@ public class TagTopSingleConsumptionMoneyFilter extends AbstractTagConsumRecord
result
=
true
;
break
;
case
LATELY:
if
(
receiptsTime
.
getTime
()>
DateUtil
.
addNumForDay
(
new
Date
(),
consumeAmountRequest
.
getTimeNum
()).
getTime
()){
if
(
receiptsTime
.
getTime
()>
DateUtil
.
addNumForDay
(
new
Date
(),
-
consumeAmountRequest
.
getTimeNum
()).
getTime
()){
result
=
true
;
}
break
;
...
...
@@ -69,8 +69,7 @@ public class TagTopSingleConsumptionMoneyFilter extends AbstractTagConsumRecord
while
(
data
.
hasNext
()){
Tuple2
<
Long
,
Iterable
<
TrdVirtualOrderBean
>>
tp2
=
data
.
next
();
double
topConsumAmount
=
0
;
TrdVirtualOrderBean
topConsumeAmountBean
=
null
;
Double
topConsumAmount
=
null
;
Map
<
String
,
TrdVirtualOrderBean
>
effectiveOrderMap
=
new
HashMap
();
List
<
TrdVirtualOrderBean
>
noEffectiveOrderList
=
new
ArrayList
();
tp2
.
_2
().
forEach
(
element
->{
...
...
@@ -88,11 +87,13 @@ public class TagTopSingleConsumptionMoneyFilter extends AbstractTagConsumRecord
}
});
for
(
TrdVirtualOrderBean
amountBean:
effectiveOrderMap
.
values
()){
topConsumAmount
=
configStatus
==
1
?
(
topConsumeAmountBean
.
getPaid_amt
()>
topConsumAmount
?
topConsumeAmountBean
.
getPaid_amt
():
topConsumAmount
):
(
topConsumeAmountBean
.
getPay_amt
()>
topConsumAmount
?
topConsumeAmountBean
.
getPay_amt
():
topConsumAmount
);
if
(
1
==
configStatus
){
topConsumAmount
=
null
==
topConsumAmount
?
amountBean
.
getPaid_amt
():(
amountBean
.
getPaid_amt
()>
topConsumAmount
?
amountBean
.
getPaid_amt
():
topConsumAmount
);
}
else
{
topConsumAmount
=
null
==
topConsumAmount
?
amountBean
.
getPay_amt
():(
amountBean
.
getPay_amt
()>
topConsumAmount
?
amountBean
.
getPay_amt
():
topConsumAmount
);
}
}
topConsumAmount
=
null
==
topConsumAmount
?
0
:
topConsumAmount
;
switch
(
consumeAmountRequest
.
getNumberType
()){
case
between:
...
...
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