记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
5b6ddf24
Commit
5b6ddf24
authored
Mar 11, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改搜索marketId
parent
6a3896f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
GoblinFrontServiceImpl.java
...t/service/goblin/service/impl/GoblinFrontServiceImpl.java
+5
-5
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinFrontServiceImpl.java
View file @
5b6ddf24
...
@@ -459,7 +459,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
...
@@ -459,7 +459,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
Criteria
.
where
(
"extagVoList.tagName"
).
is
(
name
)
Criteria
.
where
(
"extagVoList.tagName"
).
is
(
name
)
));
));
// query.addCriteria(Criteria.where("name").regex(pattern).and("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3"));
// query.addCriteria(Criteria.where("name").regex(pattern).and("spuAppear").is("0").and("delFlg").is("0").and("shelvesStatus").is("3"));
query
.
addCriteria
(
Criteria
.
where
(
"spuAppear"
).
is
(
"0"
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
));
query
.
addCriteria
(
Criteria
.
where
(
"spuAppear"
).
is
(
"0"
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
)
.
and
(
"marketId"
).
is
(
null
)
);
query
.
with
(
Sort
.
by
(
query
.
with
(
Sort
.
by
(
Sort
.
Order
.
desc
(
"count"
),
Sort
.
Order
.
desc
(
"count"
),
Sort
.
Order
.
desc
(
"createdAt"
)
Sort
.
Order
.
desc
(
"createdAt"
)
...
@@ -555,7 +555,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
...
@@ -555,7 +555,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
//
//
Query
query
=
new
Query
();
Query
query
=
new
Query
();
query
.
addCriteria
(
new
Criteria
().
orOperator
(
query
.
addCriteria
(
new
Criteria
().
orOperator
(
Criteria
.
where
(
"extagVoList.tagId"
).
is
(
tagId
).
and
(
"spuAppear"
).
is
(
"0"
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
)
Criteria
.
where
(
"extagVoList.tagId"
).
is
(
tagId
).
and
(
"spuAppear"
).
is
(
"0"
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
)
.
and
(
"marketId"
).
is
(
null
)
));
));
Pageable
pageable
=
null
;
Pageable
pageable
=
null
;
//
//
...
@@ -615,7 +615,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
...
@@ -615,7 +615,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
Criteria
.
where
(
"cateSid"
).
is
(
categoryId
),
Criteria
.
where
(
"cateSid"
).
is
(
categoryId
),
Criteria
.
where
(
"cateTid"
).
is
(
categoryId
)
Criteria
.
where
(
"cateTid"
).
is
(
categoryId
)
));
));
query
.
addCriteria
(
Criteria
.
where
(
"spuAppear"
).
is
(
"0"
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
));
query
.
addCriteria
(
Criteria
.
where
(
"spuAppear"
).
is
(
"0"
).
and
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
)
.
and
(
"marketId"
).
is
(
null
)
);
Pageable
pageable
=
null
;
Pageable
pageable
=
null
;
//
//
if
(
type
.
equals
(
"1"
)){
if
(
type
.
equals
(
"1"
)){
...
@@ -655,7 +655,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
...
@@ -655,7 +655,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
if
(
StringUtil
.
isNotBlank
(
spuids
)){
if
(
StringUtil
.
isNotBlank
(
spuids
)){
query
.
addCriteria
(
Criteria
.
where
(
"spuId"
).
nin
(
spuids
.
split
(
","
)));
query
.
addCriteria
(
Criteria
.
where
(
"spuId"
).
nin
(
spuids
.
split
(
","
)));
}
}
query
.
addCriteria
(
Criteria
.
where
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
).
and
(
"spuAppear"
).
is
(
"0"
));
query
.
addCriteria
(
Criteria
.
where
(
"delFlg"
).
is
(
"0"
).
and
(
"shelvesStatus"
).
is
(
"3"
).
and
(
"spuAppear"
).
is
(
"0"
)
.
and
(
"marketId"
).
is
(
null
)
);
//redis里面获取排序规则 1、上架时间2、销量3、价格高到低4、价格低到高
//redis里面获取排序规则 1、上架时间2、销量3、价格高到低4、价格低到高
...
@@ -770,7 +770,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
...
@@ -770,7 +770,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
it
.
remove
();
it
.
remove
();
}
else
{
}
else
{
GoblinGoodsInfoVo
goblinGoodsInfoVo
=
goblinRedisUtils
.
getGoodsInfoVo
(
goblinFrontSelectGoods
.
getSpuId
());
GoblinGoodsInfoVo
goblinGoodsInfoVo
=
goblinRedisUtils
.
getGoodsInfoVo
(
goblinFrontSelectGoods
.
getSpuId
());
if
(
null
==
goblinGoodsInfoVo
)
{
if
(
null
==
goblinGoodsInfoVo
||
StringUtil
.
isNotBlank
(
goblinGoodsInfoVo
.
getMarketId
())
)
{
it
.
remove
();
it
.
remove
();
}
}
}
}
...
...
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