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
1c5ed4fd
Commit
1c5ed4fd
authored
Aug 21, 2020
by
guos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员标签4.0
parent
6a9e1cb2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
TagValueParser.java
src/main/java/com/gic/spark/tag/TagValueParser.java
+7
-7
No files found.
src/main/java/com/gic/spark/tag/TagValueParser.java
View file @
1c5ed4fd
...
@@ -174,7 +174,7 @@ public class TagValueParser {
...
@@ -174,7 +174,7 @@ public class TagValueParser {
List
<
String
>
skuCodeList
=
null
;
//需要调用接口
List
<
String
>
skuCodeList
=
null
;
//需要调用接口
request
.
setSkuCodeList
(
skuCodeList
);
request
.
setSkuCodeList
(
skuCodeList
);
}
else
if
(
Pattern
.
compile
(
"timeRange"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
}
else
if
(
Pattern
.
compile
(
"timeRange"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"."
);
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"
\\
."
);
switch
(
keys
[
1
])
{
switch
(
keys
[
1
])
{
case
TagConstant
.
TAG_TIME_TYPE_FIXATION
:
case
TagConstant
.
TAG_TIME_TYPE_FIXATION
:
String
[]
vals
=
conditionValDTO
.
getVal
().
split
(
","
);
String
[]
vals
=
conditionValDTO
.
getVal
().
split
(
","
);
...
@@ -214,7 +214,7 @@ public class TagValueParser {
...
@@ -214,7 +214,7 @@ public class TagValueParser {
}
}
request
.
setStoreList
(
storeList
);
request
.
setStoreList
(
storeList
);
}
else
if
(
Pattern
.
compile
(
"timeRange"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
}
else
if
(
Pattern
.
compile
(
"timeRange"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"."
);
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"
\\
."
);
switch
(
keys
[
1
]){
switch
(
keys
[
1
]){
case
TagConstant
.
TAG_TIME_TYPE_FIXATION
:
case
TagConstant
.
TAG_TIME_TYPE_FIXATION
:
String
[]
vals
=
conditionValDTO
.
getVal
().
split
(
","
);
String
[]
vals
=
conditionValDTO
.
getVal
().
split
(
","
);
...
@@ -249,7 +249,7 @@ public class TagValueParser {
...
@@ -249,7 +249,7 @@ public class TagValueParser {
List
<
String
>
storeList
=
null
;
//需要调用接口
List
<
String
>
storeList
=
null
;
//需要调用接口
request
.
setStoreList
(
storeList
);
request
.
setStoreList
(
storeList
);
}
else
if
(
Pattern
.
compile
(
"timeRange"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
}
else
if
(
Pattern
.
compile
(
"timeRange"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"."
);
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"
\\
."
);
switch
(
keys
[
1
]){
switch
(
keys
[
1
]){
case
TagConstant
.
TAG_TIME_TYPE_FIXATION
:
case
TagConstant
.
TAG_TIME_TYPE_FIXATION
:
String
[]
vals
=
conditionValDTO
.
getVal
().
split
(
","
);
String
[]
vals
=
conditionValDTO
.
getVal
().
split
(
","
);
...
@@ -306,7 +306,7 @@ public class TagValueParser {
...
@@ -306,7 +306,7 @@ public class TagValueParser {
if
(
Pattern
.
compile
(
"flag"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
if
(
Pattern
.
compile
(
"flag"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
setStatisticsTypeHandle
(
request
,
conditionValDTO
.
getKey
(),
conditionValDTO
.
getVal
());
setStatisticsTypeHandle
(
request
,
conditionValDTO
.
getKey
(),
conditionValDTO
.
getVal
());
}
else
{
}
else
{
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"."
);
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"
\\
."
);
switch
(
keys
[
0
]){
switch
(
keys
[
0
]){
case
TagConstant
.
TAG_KEY_TYPE_TIME_RANGE
:
case
TagConstant
.
TAG_KEY_TYPE_TIME_RANGE
:
switch
(
keys
[
1
]){
switch
(
keys
[
1
]){
...
@@ -345,7 +345,7 @@ public class TagValueParser {
...
@@ -345,7 +345,7 @@ public class TagValueParser {
if
(
Pattern
.
compile
(
"flag"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
if
(
Pattern
.
compile
(
"flag"
).
matcher
(
conditionValDTO
.
getKey
()).
find
()){
setStatisticsTypeHandle
(
request
,
conditionValDTO
.
getKey
(),
conditionValDTO
.
getVal
());
setStatisticsTypeHandle
(
request
,
conditionValDTO
.
getKey
(),
conditionValDTO
.
getVal
());
}
else
{
}
else
{
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"."
);
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"
\\
."
);
switch
(
keys
[
0
]){
switch
(
keys
[
0
]){
case
TagConstant
.
TAG_KEY_TYPE_NUMBER
:
case
TagConstant
.
TAG_KEY_TYPE_NUMBER
:
setIntegerValueHandle
(
request
,
keys
[
1
],
conditionValDTO
.
getVal
());
setIntegerValueHandle
(
request
,
keys
[
1
],
conditionValDTO
.
getVal
());
...
@@ -405,7 +405,7 @@ public class TagValueParser {
...
@@ -405,7 +405,7 @@ public class TagValueParser {
private
static
AbstractFilterRequest
getCurrentCouponNumRequest
(
List
<
TagConditionValDTO
>
conditionValDTOList
)
{
private
static
AbstractFilterRequest
getCurrentCouponNumRequest
(
List
<
TagConditionValDTO
>
conditionValDTOList
)
{
TagCouponRequest
request
=
new
TagCouponRequest
();
TagCouponRequest
request
=
new
TagCouponRequest
();
for
(
TagConditionValDTO
conditionValDTO:
conditionValDTOList
){
for
(
TagConditionValDTO
conditionValDTO:
conditionValDTOList
){
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"."
);
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"
\\
."
);
if
(
keys
.
length
==
3
){
if
(
keys
.
length
==
3
){
setDomainHandle
(
request
,
keys
[
1
],
conditionValDTO
.
getVal
());
setDomainHandle
(
request
,
keys
[
1
],
conditionValDTO
.
getVal
());
}
else
{
}
else
{
...
@@ -423,7 +423,7 @@ public class TagValueParser {
...
@@ -423,7 +423,7 @@ public class TagValueParser {
private
static
AbstractFilterRequest
getIntegralRequest
(
List
<
TagConditionValDTO
>
conditionValDTOList
)
{
private
static
AbstractFilterRequest
getIntegralRequest
(
List
<
TagConditionValDTO
>
conditionValDTOList
)
{
TagIntegralRequest
request
=
new
TagIntegralRequest
();
TagIntegralRequest
request
=
new
TagIntegralRequest
();
for
(
TagConditionValDTO
conditionValDTO:
conditionValDTOList
){
for
(
TagConditionValDTO
conditionValDTO:
conditionValDTOList
){
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"."
);
String
[]
keys
=
conditionValDTO
.
getKey
().
split
(
"
\\
."
);
if
(
keys
.
length
==
1
){
if
(
keys
.
length
==
1
){
setDomainHandle
(
request
,
keys
[
0
],
conditionValDTO
.
getVal
());
setDomainHandle
(
request
,
keys
[
0
],
conditionValDTO
.
getVal
());
}
else
{
}
else
{
...
...
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