记得上下班打卡 | 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
9953d5bc
Commit
9953d5bc
authored
Jan 05, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev_goblin' into dev_goblin
parents
144c24b3
602b5f0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
GoblinFrontBannerController.java
...ntroller/zhengzai/goblin/GoblinFrontBannerController.java
+5
-0
GoblinFrontSelectGoodsServiceImpl.java
...oblin/service/impl/GoblinFrontSelectGoodsServiceImpl.java
+24
-1
liquidnet-service-goblin.yml
...-bus-config/liquidnet-config/liquidnet-service-goblin.yml
+1
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/goblin/GoblinFrontBannerController.java
View file @
9953d5bc
...
@@ -7,6 +7,7 @@ import com.liquidnet.client.admin.common.core.domain.AjaxResult;
...
@@ -7,6 +7,7 @@ import com.liquidnet.client.admin.common.core.domain.AjaxResult;
import
com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontBannerServiceImpl
;
import
com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontBannerServiceImpl
;
import
com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontHotWordServiceImpl
;
import
com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontHotWordServiceImpl
;
import
com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontNavigationServiceImpl
;
import
com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontNavigationServiceImpl
;
import
com.liquidnet.client.admin.zhengzai.goblin.service.impl.GoblinFrontSeckillServiceImpl
;
import
com.liquidnet.service.goblin.entity.GoblinFrontBanner
;
import
com.liquidnet.service.goblin.entity.GoblinFrontBanner
;
import
com.liquidnet.service.goblin.param.GoblinFrontBannerBuildParam
;
import
com.liquidnet.service.goblin.param.GoblinFrontBannerBuildParam
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -34,6 +35,8 @@ public class GoblinFrontBannerController extends BaseController {
...
@@ -34,6 +35,8 @@ public class GoblinFrontBannerController extends BaseController {
GoblinFrontHotWordServiceImpl
goblinFrontHotWordService
;
GoblinFrontHotWordServiceImpl
goblinFrontHotWordService
;
@Autowired
@Autowired
GoblinFrontNavigationServiceImpl
goblinFrontNavigationService
;
GoblinFrontNavigationServiceImpl
goblinFrontNavigationService
;
@Autowired
GoblinFrontSeckillServiceImpl
goblinFrontSeckillService
;
/**
/**
* @author zhangfuxin
* @author zhangfuxin
* @Description:添加banner
* @Description:添加banner
...
@@ -113,6 +116,8 @@ public class GoblinFrontBannerController extends BaseController {
...
@@ -113,6 +116,8 @@ public class GoblinFrontBannerController extends BaseController {
logger
.
info
(
"hotWordResult,{}"
,
hotWordResult
);
logger
.
info
(
"hotWordResult,{}"
,
hotWordResult
);
boolean
navigationResult
=
goblinFrontNavigationService
.
online
();
boolean
navigationResult
=
goblinFrontNavigationService
.
online
();
logger
.
info
(
"navigationResult,{}"
,
navigationResult
);
logger
.
info
(
"navigationResult,{}"
,
navigationResult
);
boolean
secillResult
=
goblinFrontSeckillService
.
online
();
logger
.
info
(
"secillResult,{}"
,
secillResult
);
if
(
bannerResult
&&
hotWordResult
&&
navigationResult
)
{
if
(
bannerResult
&&
hotWordResult
&&
navigationResult
)
{
return
success
(
"操作成功"
);
return
success
(
"操作成功"
);
}
else
{
}
else
{
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinFrontSelectGoodsServiceImpl.java
View file @
9953d5bc
...
@@ -64,6 +64,29 @@ public class GoblinFrontSelectGoodsServiceImpl extends ServiceImpl<GoblinFrontSe
...
@@ -64,6 +64,29 @@ public class GoblinFrontSelectGoodsServiceImpl extends ServiceImpl<GoblinFrontSe
LambdaQueryWrapper
<
GoblinFrontSelectGoods
>
queryWrapper
=
Wrappers
.
lambdaQuery
(
GoblinFrontSelectGoods
.
class
);
LambdaQueryWrapper
<
GoblinFrontSelectGoods
>
queryWrapper
=
Wrappers
.
lambdaQuery
(
GoblinFrontSelectGoods
.
class
);
queryWrapper
.
eq
(
GoblinFrontSelectGoods:
:
getDelTag
,
0
);
queryWrapper
.
eq
(
GoblinFrontSelectGoods:
:
getDelTag
,
0
);
return
goblinFrontSelectGoodsMapper
.
selectList
(
queryWrapper
);
return
goblinFrontSelectGoodsMapper
.
selectList
(
queryWrapper
);
}
}
public
boolean
online
(){
//查询
LambdaQueryWrapper
<
GoblinFrontSelectGoods
>
queryWrapper
=
Wrappers
.
lambdaQuery
(
GoblinFrontSelectGoods
.
class
);
queryWrapper
.
eq
(
GoblinFrontSelectGoods:
:
getDelTag
,
0
);
List
<
GoblinFrontSelectGoods
>
list
=
goblinFrontSelectGoodsMapper
.
selectList
(
queryWrapper
);
/*//mongodb
for(GoblinFrontSeckill goblinFrontSeckill: list){
GoblinFrontSeckill goblinFrontNavigation1=mongoTemplate.findOne(Query.query(Criteria.where("seckilId").is(goblinFrontSeckill.getSeckilId())), GoblinFrontSeckill.class, GoblinFrontSeckill.class.getSimpleName());
if(null==goblinFrontNavigation1){
mongoTemplate.save(goblinFrontSeckill,GoblinFrontSeckill.class.getSimpleName());
}else{
BasicDBObject orderObject = new BasicDBObject("$set", JSON.parse(JsonUtils.toJson(goblinFrontSeckill)));
mongoTemplate.getCollection(GoblinFrontSeckill.class.getSimpleName()).updateOne(
Query.query(Criteria.where("seckilId").is(goblinFrontSeckill.getSeckilId())).getQueryObject(),
orderObject
);
}
}
//redis 保存秒杀表信息
redisGoblinUtil.set(GoblinRedisConst.FRONT_SECKILL,list);*/
return
true
;
}
}
}
liquidnet-bus-config/liquidnet-config/liquidnet-service-goblin.yml
View file @
9953d5bc
...
@@ -100,6 +100,7 @@ global-auth:
...
@@ -100,6 +100,7 @@ global-auth:
-
${liquidnet.info.context}/swagger-resources/**
-
${liquidnet.info.context}/swagger-resources/**
-
${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/v2/api-docs*
-
${liquidnet.info.context}/inner/*
-
${liquidnet.info.context}/inner/*
-
${liquidnet.info.context}/front/*
oncheck-url-pattern
:
oncheck-url-pattern
:
-
-
# -----------------------------------------------------------
# -----------------------------------------------------------
...
...
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