记得上下班打卡 | 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
308de968
Commit
308de968
authored
May 05, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改新预约,根据spuId和店铺id查询返回sku列表新增状态4返回已上架未开售的sku
parent
38e514d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
GoblinStoreMgtGoodsSkuFilterParam.java
.../goblin/dto/manage/GoblinStoreMgtGoodsSkuFilterParam.java
+1
-1
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+6
-1
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtGoodsSkuFilterParam.java
View file @
308de968
...
@@ -23,7 +23,7 @@ public class GoblinStoreMgtGoodsSkuFilterParam implements Serializable {
...
@@ -23,7 +23,7 @@ public class GoblinStoreMgtGoodsSkuFilterParam implements Serializable {
private
Integer
pageNum
;
private
Integer
pageNum
;
@ApiModelProperty
(
position
=
13
,
required
=
false
,
value
=
"搜索关键字[128]"
)
@ApiModelProperty
(
position
=
13
,
required
=
false
,
value
=
"搜索关键字[128]"
)
private
String
keyword
;
private
String
keyword
;
@ApiModelProperty
(
position
=
14
,
required
=
false
,
value
=
"商品上架状态[0-待上架|1-下架|2-违规|3-上架]"
,
allowableValues
=
"0,1,2,3"
)
@ApiModelProperty
(
position
=
14
,
required
=
false
,
value
=
"商品上架状态[0-待上架|1-下架|2-违规|3-上架
|4-已上架未开售
]"
,
allowableValues
=
"0,1,2,3"
)
private
String
shelvesStatus
;
private
String
shelvesStatus
;
}
}
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
308de968
...
@@ -42,6 +42,7 @@ import java.util.regex.Pattern;
...
@@ -42,6 +42,7 @@ import java.util.regex.Pattern;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
static
com
.
liquidnet
.
commons
.
lang
.
util
.
DateUtil
.
DTF_YMD_HMS
;
import
static
com
.
liquidnet
.
commons
.
lang
.
util
.
DateUtil
.
DTF_YMD_HMS
;
import
static
com
.
liquidnet
.
commons
.
lang
.
util
.
DateUtil
.
now
;
@Component
@Component
public
class
GoblinMongoUtils
{
public
class
GoblinMongoUtils
{
...
@@ -1552,7 +1553,11 @@ public class GoblinMongoUtils {
...
@@ -1552,7 +1553,11 @@ public class GoblinMongoUtils {
criteria
.
and
(
"name"
).
regex
(
pattern
);
criteria
.
and
(
"name"
).
regex
(
pattern
);
}
}
if
(
StringUtils
.
isNotBlank
(
filterParam
.
getShelvesStatus
()))
{
if
(
StringUtils
.
isNotBlank
(
filterParam
.
getShelvesStatus
()))
{
criteria
.
and
(
"shelvesStatus"
).
is
(
filterParam
.
getShelvesStatus
());
if
(
"4"
.
equals
(
filterParam
.
getShelvesStatus
())){
criteria
.
and
(
"shelvesStatus"
).
is
(
"3"
).
and
(
"saleStartTime"
).
gte
(
now
());
}
else
{
criteria
.
and
(
"shelvesStatus"
).
is
(
filterParam
.
getShelvesStatus
());
}
}
}
Query
query
=
Query
.
query
(
criteria
);
Query
query
=
Query
.
query
(
criteria
);
...
...
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