记得上下班打卡 | 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
80983317
Commit
80983317
authored
Apr 29, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exit
parent
8c478069
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
GoblinGoodsAnticipateAddParam.java
...vice/goblin/dto/manage/GoblinGoodsAnticipateAddParam.java
+2
-3
GoblinGoodsAnticipateValueParam.java
...ce/goblin/dto/manage/GoblinGoodsAnticipateValueParam.java
+3
-2
GoblinMongoUtils.java
...a/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
+1
-4
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinGoodsAnticipateAddParam.java
View file @
80983317
...
@@ -14,7 +14,6 @@ import java.time.LocalDateTime;
...
@@ -14,7 +14,6 @@ import java.time.LocalDateTime;
import
java.util.List
;
import
java.util.List
;
/**
/**
*
* @author liquidnet
* @author liquidnet
* @since 2022-04-07
* @since 2022-04-07
*/
*/
...
@@ -36,12 +35,12 @@ public class GoblinGoodsAnticipateAddParam {
...
@@ -36,12 +35,12 @@ public class GoblinGoodsAnticipateAddParam {
@NotBlank
(
message
=
"预约规则"
)
@NotBlank
(
message
=
"预约规则"
)
private
String
rule
;
private
String
rule
;
@ApiModelProperty
(
value
=
"预约类型(1:预约提醒,2:预约获得购买资格)"
)
@ApiModelProperty
(
required
=
true
,
value
=
"预约类型(1:预约提醒,2:预约获得购买资格)"
)
@NotBlank
(
message
=
"预约类型"
)
@NotBlank
(
message
=
"预约类型"
)
private
int
type
;
private
int
type
;
@ApiModelProperty
(
value
=
"预约人数(达到一定人数可以预约)"
)
@ApiModelProperty
(
value
=
"预约人数(达到一定人数可以预约)"
)
@NotBlank
(
message
=
"预约人数"
)
@NotBlank
(
message
=
"预约人数"
)
private
Integer
people
;
private
Integer
people
;
@ApiModelProperty
(
"sku信息"
)
@ApiModelProperty
(
"sku信息"
)
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinGoodsAnticipateValueParam.java
View file @
80983317
...
@@ -22,7 +22,7 @@ import java.time.LocalDateTime;
...
@@ -22,7 +22,7 @@ import java.time.LocalDateTime;
*/
*/
@ApiModel
(
value
=
"GoblinGoodsAnticipateValueParam"
,
description
=
"获取预约"
)
@ApiModel
(
value
=
"GoblinGoodsAnticipateValueParam"
,
description
=
"获取预约"
)
@Data
@Data
public
class
GoblinGoodsAnticipateValueParam
{
public
class
GoblinGoodsAnticipateValueParam
{
@ApiModelProperty
(
position
=
11
,
required
=
true
,
value
=
"当前记录起始索引"
,
example
=
"1"
)
@ApiModelProperty
(
position
=
11
,
required
=
true
,
value
=
"当前记录起始索引"
,
example
=
"1"
)
@Min
(
value
=
1
,
message
=
"起始索引无效"
)
@Min
(
value
=
1
,
message
=
"起始索引无效"
)
...
@@ -54,7 +54,8 @@ public class GoblinGoodsAnticipateValueParam{
...
@@ -54,7 +54,8 @@ public class GoblinGoodsAnticipateValueParam{
@ApiModelProperty
(
position
=
18
,
required
=
false
,
value
=
"创建日期"
)
@ApiModelProperty
(
position
=
18
,
required
=
false
,
value
=
"创建日期"
)
private
String
createdDate
;
private
String
createdDate
;
@ApiModelProperty
(
required
=
false
,
value
=
"预约类型(1:预约提醒,2:预约获得购买资格)"
)
@ApiModelProperty
(
required
=
true
,
value
=
"预约类型(1:预约提醒,2:预约获得购买资格)"
)
@NotNull
(
message
=
"预约类型"
)
private
Integer
type
;
private
Integer
type
;
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinMongoUtils.java
View file @
80983317
...
@@ -60,10 +60,7 @@ public class GoblinMongoUtils {
...
@@ -60,10 +60,7 @@ public class GoblinMongoUtils {
public
HashMap
<
String
,
Object
>
getGoblinGoodsAnticipateValueVos
(
GoblinGoodsAnticipateValueParam
goblinGoodsAnticipateValueParam
,
String
uid
)
{
public
HashMap
<
String
,
Object
>
getGoblinGoodsAnticipateValueVos
(
GoblinGoodsAnticipateValueParam
goblinGoodsAnticipateValueParam
,
String
uid
)
{
HashMap
<
String
,
Object
>
info
=
CollectionUtil
.
mapStringObject
();
HashMap
<
String
,
Object
>
info
=
CollectionUtil
.
mapStringObject
();
Pageable
pageable
=
PageRequest
.
of
(
goblinGoodsAnticipateValueParam
.
getPageNum
()
-
1
,
20
,
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"createdDate"
));
Pageable
pageable
=
PageRequest
.
of
(
goblinGoodsAnticipateValueParam
.
getPageNum
()
-
1
,
20
,
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"createdDate"
));
Criteria
criteria
=
Criteria
.
where
(
"delTag"
).
is
(
0
).
and
(
"uid"
).
is
(
uid
);
Criteria
criteria
=
Criteria
.
where
(
"delTag"
).
is
(
0
).
and
(
"uid"
).
is
(
uid
).
and
(
"type"
).
is
(
goblinGoodsAnticipateValueParam
.
getType
());
if
(
goblinGoodsAnticipateValueParam
.
getType
()!=
null
){
criteria
=
criteria
.
and
(
"type"
).
is
(
goblinGoodsAnticipateValueParam
.
getType
());
}
if
(
StringUtils
.
isNotBlank
(
goblinGoodsAnticipateValueParam
.
getName
()))
{
if
(
StringUtils
.
isNotBlank
(
goblinGoodsAnticipateValueParam
.
getName
()))
{
criteria
=
criteria
.
and
(
"skuName"
).
regex
(
".*?"
+
goblinGoodsAnticipateValueParam
.
getName
()
+
".*"
);
criteria
=
criteria
.
and
(
"skuName"
).
regex
(
".*?"
+
goblinGoodsAnticipateValueParam
.
getName
()
+
".*"
);
}
}
...
...
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