记得上下班打卡 | 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
bc934e47
Commit
bc934e47
authored
Apr 11, 2022
by
GaoHu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exit
parent
68e14be8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
5 deletions
+18
-5
GoblinGoodsAnticipateVo.java
...uidnet/service/goblin/dto/vo/GoblinGoodsAnticipateVo.java
+3
-2
GoblinGoodsAnticipateController.java
...in/controller/manage/GoblinGoodsAnticipateController.java
+1
-1
GoblinGoodsAnticipateServiceImpl.java
...goblin/service/impl/GoblinGoodsAnticipateServiceImpl.java
+6
-1
GoblinRedisUtils.java
...a/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
+8
-1
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/vo/GoblinGoodsAnticipateVo.java
View file @
bc934e47
...
@@ -9,6 +9,7 @@ import lombok.EqualsAndHashCode;
...
@@ -9,6 +9,7 @@ import lombok.EqualsAndHashCode;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.math.BigInteger
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.List
;
import
java.util.List
;
...
@@ -52,13 +53,13 @@ public class GoblinGoodsAnticipateVo implements Serializable {
...
@@ -52,13 +53,13 @@ public class GoblinGoodsAnticipateVo implements Serializable {
* 预约人数
* 预约人数
*/
*/
@ApiModelProperty
(
value
=
"预约人数"
)
@ApiModelProperty
(
value
=
"预约人数"
)
private
Long
aboutPeople
;
private
Integer
aboutPeople
;
/**
/**
* 预约人数
* 预约人数
*/
*/
@ApiModelProperty
(
value
=
"实际预约人数"
)
@ApiModelProperty
(
value
=
"实际预约人数"
)
private
Long
actualPeople
;
private
Integer
actualPeople
;
/**
/**
* 预约开始时间
* 预约开始时间
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinGoodsAnticipateController.java
View file @
bc934e47
...
@@ -73,7 +73,7 @@ public class GoblinGoodsAnticipateController {
...
@@ -73,7 +73,7 @@ public class GoblinGoodsAnticipateController {
@ApiOperation
(
"修改预约关联"
)
@ApiOperation
(
"修改预约关联"
)
@PostMapping
(
"/updateAnticipateValues"
)
@PostMapping
(
"/updateAnticipateValues"
)
public
ResponseDto
<
Object
>
updateAnticipateValues
(
List
<
GoblinGoodsAnticipateValueParam
>
list
)
{
public
ResponseDto
<
Object
>
updateAnticipateValues
(
@RequestBody
List
<
GoblinGoodsAnticipateValueParam
>
list
)
{
return
goblinGoodsAnticipateService
.
updateAnticipateValues
(
list
);
return
goblinGoodsAnticipateService
.
updateAnticipateValues
(
list
);
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinGoodsAnticipateServiceImpl.java
View file @
bc934e47
...
@@ -71,6 +71,11 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
...
@@ -71,6 +71,11 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
//已结束
//已结束
goblinGoodsAnticipateVo
.
setState
(
2
);
goblinGoodsAnticipateVo
.
setState
(
2
);
}
}
Integer
autIdPeople
=
goblinRedisUtils
.
getAutIdPeople
(
goblinGoodsAnticipateVo
.
getAntId
());
//预约人数
goblinGoodsAnticipateVo
.
setAboutPeople
(
goblinGoodsAnticipateVo
.
getAboutPeople
()+(
autIdPeople
!=
null
?
autIdPeople:
0
));
//获取真实预约人数
goblinGoodsAnticipateVo
.
setActualPeople
(
autIdPeople
);
}
}
pageInfo
.
setList
(
data
);
pageInfo
.
setList
(
data
);
pageInfo
.
setTotal
((
Long
)
map
.
get
(
"total"
));
pageInfo
.
setTotal
((
Long
)
map
.
get
(
"total"
));
...
@@ -201,7 +206,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
...
@@ -201,7 +206,7 @@ public class GoblinGoodsAnticipateServiceImpl implements IGoblinGoodsAnticipateS
goblinRedisUtils
.
delUserAboutSku
(
skuId
,
uid
);
goblinRedisUtils
.
delUserAboutSku
(
skuId
,
uid
);
sendRedis
(
"goblin_goods_anticipate_update_actual_reduce_people"
,
antIdValue
);
sendRedis
(
"goblin_goods_anticipate_update_actual_reduce_people"
,
antIdValue
);
}
}
goblinRedisUtils
.
setAutId
(
antId
,
state
);
goblinRedisUtils
.
setAutId
People
(
antId
,
state
);
return
ResponseDto
.
success
();
return
ResponseDto
.
success
();
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/util/GoblinRedisUtils.java
View file @
bc934e47
...
@@ -81,7 +81,7 @@ public class GoblinRedisUtils {
...
@@ -81,7 +81,7 @@ public class GoblinRedisUtils {
/**
/**
* 实际预约人数修改
* 实际预约人数修改
*/
*/
public
void
setAutId
(
String
autId
,
Integer
state
)
{
public
void
setAutId
People
(
String
autId
,
Integer
state
)
{
Integer
num
=
(
Integer
)
redisUtil
.
get
(
GoblinRedisConst
.
ANTICIPATE_PEOPLE
.
concat
(
autId
));
Integer
num
=
(
Integer
)
redisUtil
.
get
(
GoblinRedisConst
.
ANTICIPATE_PEOPLE
.
concat
(
autId
));
if
(
state
.
equals
(
GoblinGoodAnticipateUserVo
.
STATE_VALID
)){
if
(
state
.
equals
(
GoblinGoodAnticipateUserVo
.
STATE_VALID
)){
redisUtil
.
set
(
GoblinRedisConst
.
ANTICIPATE_PEOPLE
.
concat
(
autId
),
num
==
null
?
1
:
num
+
1
);
redisUtil
.
set
(
GoblinRedisConst
.
ANTICIPATE_PEOPLE
.
concat
(
autId
),
num
==
null
?
1
:
num
+
1
);
...
@@ -91,6 +91,13 @@ public class GoblinRedisUtils {
...
@@ -91,6 +91,13 @@ public class GoblinRedisUtils {
}
}
}
}
/**
* 获取实际预约人数修改
*/
public
Integer
getAutIdPeople
(
String
autId
)
{
return
(
Integer
)
redisUtil
.
get
(
GoblinRedisConst
.
ANTICIPATE_PEOPLE
.
concat
(
autId
));
}
/**
/**
* 删除预约
* 删除预约
*/
*/
...
...
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