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
8648607f
Commit
8648607f
authored
Aug 31, 2020
by
guos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签4.0
parent
67eb26db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
TagConsumeChannelRequest.java
...om/gic/spark/entity/request/TagConsumeChannelRequest.java
+3
-3
TagValueParser.java
src/main/java/com/gic/spark/tag/TagValueParser.java
+7
-1
No files found.
src/main/java/com/gic/spark/entity/request/TagConsumeChannelRequest.java
View file @
8648607f
...
...
@@ -9,13 +9,13 @@ import java.util.List;
*/
public
class
TagConsumeChannelRequest
extends
AbstractFilterRequest
{
private
List
<
String
>
ChannelVals
;
private
List
<
Integer
>
ChannelVals
;
public
List
<
String
>
getChannelVals
()
{
public
List
<
Integer
>
getChannelVals
()
{
return
ChannelVals
;
}
public
void
setChannelVals
(
List
<
String
>
channelVals
)
{
public
void
setChannelVals
(
List
<
Integer
>
channelVals
)
{
ChannelVals
=
channelVals
;
}
}
src/main/java/com/gic/spark/tag/TagValueParser.java
View file @
8648607f
...
...
@@ -281,14 +281,20 @@ public class TagValueParser {
private
static
AbstractFilterRequest
getConsumeChannelRequest
(
List
<
TagConditionValDTO
>
conditionValDTOList
)
{
TagConsumeChannelRequest
request
=
new
TagConsumeChannelRequest
();
List
<
Integer
>
channelList
=
new
ArrayList
();
for
(
TagConditionValDTO
conditionValDTO
:
conditionValDTOList
)
{
if
(
Pattern
.
compile
(
"flag"
).
matcher
(
conditionValDTO
.
getKey
()).
find
())
{
setStatisticsTypeHandle
(
request
,
conditionValDTO
.
getKey
(),
conditionValDTO
.
getVal
());
}
else
{
String
[]
vals
=
conditionValDTO
.
getVal
().
split
(
","
);
request
.
setChannelVals
(
Arrays
.
asList
(
vals
));
if
(
null
!=
vals
){
for
(
String
val
:
vals
)
{
channelList
.
add
(
Integer
.
valueOf
(
val
));
}
}
}
}
request
.
setChannelVals
(
channelList
);
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