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
dd6d6b87
Commit
dd6d6b87
authored
Aug 24, 2020
by
guos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签4.0
parent
b8dc1677
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
TagLowestSingleConsumptionMoneyFilter.java
...c/spark/filter/TagLowestSingleConsumptionMoneyFilter.java
+13
-5
No files found.
src/main/java/com/gic/spark/filter/TagLowestSingleConsumptionMoneyFilter.java
View file @
dd6d6b87
...
...
@@ -71,7 +71,7 @@ public class TagLowestSingleConsumptionMoneyFilter extends AbstractTagConsumReco
while
(
data
.
hasNext
()){
Tuple2
<
Long
,
Iterable
<
TrdVirtualOrderBean
>>
tp2
=
data
.
next
();
double
topConsumAmount
=
0
;
Double
topConsumAmount
=
null
;
Map
<
String
,
TrdVirtualOrderBean
>
effectiveOrderMap
=
new
HashMap
();
List
<
TrdVirtualOrderBean
>
noEffectiveOrderList
=
new
ArrayList
();
tp2
.
_2
().
forEach
(
element
->{
...
...
@@ -88,13 +88,21 @@ public class TagLowestSingleConsumptionMoneyFilter extends AbstractTagConsumReco
effectiveOrder
.
setPay_amt
(
effectiveOrder
.
getPay_amt
()+
noEffectiveOrder
.
getPay_amt
());
}
});
for
(
TrdVirtualOrderBean
amountBean:
effectiveOrderMap
.
values
()){
topConsumAmount
=
configStatus
==
1
?
(
CommonUtil
.
isEmptyDouble2double
(
amountBean
.
getPaid_amt
())<
topConsumAmount
?
CommonUtil
.
isEmptyDouble2double
(
amountBean
.
getPaid_amt
()):
topConsumAmount
):
(
CommonUtil
.
isEmptyDouble2double
(
amountBean
.
getPay_amt
())<
topConsumAmount
?
CommonUtil
.
isEmptyDouble2double
(
amountBean
.
getPay_amt
()):
topConsumAmount
);
}
System
.
out
.
println
(
"configStatus==>"
+
configStatus
+
"paid_amt==>"
+
amountBean
.
getPaid_amt
()+
"pay_amt==>"
+
amountBean
.
getPay_amt
());
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
;
System
.
out
.
println
(
"topConsumAmount==>"
+
topConsumAmount
);
switch
(
consumeAmountRequest
.
getNumberType
()){
case
between:
if
(
topConsumAmount
>=
consumeAmountRequest
.
getBeginNum
()
...
...
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