记得上下班打卡 | 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
b0b732ab
Commit
b0b732ab
authored
Jan 04, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
秒杀
parent
5c05aca6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
GoblinFrontController.java
...dnet/service/goblin/controller/GoblinFrontController.java
+11
-3
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/GoblinFrontController.java
View file @
b0b732ab
...
@@ -94,6 +94,7 @@ public class GoblinFrontController {
...
@@ -94,6 +94,7 @@ public class GoblinFrontController {
@GetMapping
(
"getSeckilll"
)
@GetMapping
(
"getSeckilll"
)
@ApiOperation
(
"获得秒杀首页要用的"
)
@ApiOperation
(
"获得秒杀首页要用的"
)
public
ResponseDto
getSeckilll
()
throws
ParseException
{
public
ResponseDto
getSeckilll
()
throws
ParseException
{
//获得秒杀列表绑定
List
<
GoblinFrontSeckill
>
list
=
(
List
<
GoblinFrontSeckill
>)
redisUtil
.
get
(
GoblinRedisConst
.
FRONT_SECKILL
);
List
<
GoblinFrontSeckill
>
list
=
(
List
<
GoblinFrontSeckill
>)
redisUtil
.
get
(
GoblinRedisConst
.
FRONT_SECKILL
);
GoblinFrontSeckillVo
goblinFrontSeckillVo
=
GoblinFrontSeckillVo
.
getNew
();
GoblinFrontSeckillVo
goblinFrontSeckillVo
=
GoblinFrontSeckillVo
.
getNew
();
ArrayList
<
GoblinGoodsInfoVo
>
goblinGoodsInfoVoArrayList
=
ObjectUtil
.
goblinGoodsInfoVoArrayList
();
ArrayList
<
GoblinGoodsInfoVo
>
goblinGoodsInfoVoArrayList
=
ObjectUtil
.
goblinGoodsInfoVoArrayList
();
...
@@ -130,7 +131,7 @@ public class GoblinFrontController {
...
@@ -130,7 +131,7 @@ public class GoblinFrontController {
goblinGoodsInfoVoArrayList
.
add
(
goblinGoodsInfoVo
);
goblinGoodsInfoVoArrayList
.
add
(
goblinGoodsInfoVo
);
}
}
}
else
if
(
type
.
equals
(
"s"
)){
}
else
if
(
type
.
equals
(
"s"
)){
//商铺的vo
//商铺
活动
的vo
GoblinStoreMarketVo
goblinStoreMarketVo
=
goblinRedisUtils
.
getGoblinStoreMarketVo
(
idM
);
GoblinStoreMarketVo
goblinStoreMarketVo
=
goblinRedisUtils
.
getGoblinStoreMarketVo
(
idM
);
if
(
goblinStoreMarketVo
==
null
){
if
(
goblinStoreMarketVo
==
null
){
break
;
break
;
...
@@ -146,7 +147,14 @@ public class GoblinFrontController {
...
@@ -146,7 +147,14 @@ public class GoblinFrontController {
}
}
if
(
isGet
){
if
(
isGet
){
//获取商铺 对应关系
//获取商铺 对应关系
List
<
GoblinMarketRelationVo
>
list1
=
goblinRedisUtils
.
getMarketRelation
(
GoblinStatusConst
.
MarketPreStatus
.
MARKET_PRE_PURCHASE
.
getValue
(),
goblinStoreMarketVo
.
getStoreMarketId
());
//获得商品
//遍历 活动表
for
(
GoblinMarketRelationVo
goblinMarketRelationVo:
list1
){
//找到对应的spu商品
GoblinGoodsInfoVo
goblinGoodsInfoVo
=
goblinRedisUtils
.
getGoodsInfoVo
(
goblinMarketRelationVo
.
getSpuId
());
goblinGoodsInfoVoArrayList
.
add
(
goblinGoodsInfoVo
);
}
}
}
}
}
...
@@ -156,7 +164,7 @@ public class GoblinFrontController {
...
@@ -156,7 +164,7 @@ public class GoblinFrontController {
}
}
return
ResponseDto
.
success
(
list
);
return
ResponseDto
.
success
(
goblinFrontSeckillVo
);
}
}
public
boolean
belongCalendar
(
String
startString
,
String
endString
)
throws
ParseException
{
public
boolean
belongCalendar
(
String
startString
,
String
endString
)
throws
ParseException
{
...
...
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