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
fd640b16
Commit
fd640b16
authored
Aug 25, 2020
by
guos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签4.0
parent
ea04f16a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
TagValueParser.java
src/main/java/com/gic/spark/tag/TagValueParser.java
+7
-2
No files found.
src/main/java/com/gic/spark/tag/TagValueParser.java
View file @
fd640b16
...
...
@@ -203,13 +203,17 @@ public class TagValueParser {
private
static
AbstractFilterRequest
getOnlineConsumeStoreRequest
(
List
<
TagConditionValDTO
>
conditionValDTOList
,
Integer
enterpriseId
)
{
TagConsumeStoreRequest
request
=
new
TagConsumeStoreRequest
();
List
<
String
>
storeList
=
new
ArrayList
();
for
(
TagConditionValDTO
conditionValDTO
:
conditionValDTOList
)
{
if
(
Pattern
.
compile
(
"flag"
).
matcher
(
conditionValDTO
.
getKey
()).
find
())
{
setStatisticsTypeHandle
(
request
,
conditionValDTO
.
getKey
(),
conditionValDTO
.
getVal
());
}
else
if
(
conditionValDTO
.
getKey
().
equals
(
TagValKeyEnum
.
COMPONENT_STORE
.
getKey
())){
String
val
=
conditionValDTO
.
getVal
();
List
<
String
>
storeList
=
IndexRequestUtil
.
getStoreId
(
enterpriseId
,
val
,
TagProcessManager
.
getInstance
().
isProduction
());
request
.
setStoreList
(
storeList
);
Map
<
String
,
List
<
String
>>
storeMap
=
JSONObject
.
parseObject
(
val
,
HashMap
.
class
);
for
(
List
<
String
>
lts:
storeMap
.
values
()){
lts
.
forEach
(
store
->
storeList
.
add
(
store
));
}
}
else
if
(
Pattern
.
compile
(
"timeRange"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"\\."
);
switch
(
keys
[
1
]){
...
...
@@ -233,6 +237,7 @@ public class TagValueParser {
}
}
}
request
.
setStoreList
(
storeList
);
return
request
;
}
...
...
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