记得上下班打卡 | 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
c4cb3e63
Commit
c4cb3e63
authored
Jan 17, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改上线问题
parent
fceb2f10
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
133 additions
and
110 deletions
+133
-110
GoblinFrontBannerController.java
...ntroller/zhengzai/goblin/GoblinFrontBannerController.java
+5
-3
GoblinFrontBannerServiceImpl.java
...zai/goblin/service/impl/GoblinFrontBannerServiceImpl.java
+34
-28
GoblinFrontCubeServiceImpl.java
...ngzai/goblin/service/impl/GoblinFrontCubeServiceImpl.java
+16
-13
GoblinFrontHotWordServiceImpl.java
...ai/goblin/service/impl/GoblinFrontHotWordServiceImpl.java
+15
-13
GoblinFrontMoudleIndexServiceImpl.java
...oblin/service/impl/GoblinFrontMoudleIndexServiceImpl.java
+17
-15
GoblinFrontNavigationServiceImpl.java
...goblin/service/impl/GoblinFrontNavigationServiceImpl.java
+16
-13
GoblinFrontSeckillServiceImpl.java
...ai/goblin/service/impl/GoblinFrontSeckillServiceImpl.java
+15
-13
GoblinFrontSelectGoodsServiceImpl.java
...oblin/service/impl/GoblinFrontSelectGoodsServiceImpl.java
+15
-12
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 @
c4cb3e63
...
@@ -131,12 +131,14 @@ public class GoblinFrontBannerController extends BaseController {
...
@@ -131,12 +131,14 @@ public class GoblinFrontBannerController extends BaseController {
logger
.
info
(
"上线操作"
);
logger
.
info
(
"上线操作"
);
boolean
bannerResult
=
goblinFrontBannerService
.
online
();
boolean
bannerResult
=
goblinFrontBannerService
.
online
();
logger
.
info
(
"bannerResult,{}"
,
bannerResult
);
logger
.
info
(
"bannerResult,{}"
,
bannerResult
);
boolean
bannerMiddle
=
goblinFrontBannerService
.
middle
();
logger
.
info
(
"banner中部{}"
,
bannerMiddle
);
boolean
hotWordResult
=
goblinFrontHotWordService
.
online
();
boolean
hotWordResult
=
goblinFrontHotWordService
.
online
();
logger
.
info
(
"热词,{}"
,
hotWordResult
);
logger
.
info
(
"热词,{}"
,
hotWordResult
);
boolean
navigationResult
=
goblinFrontNavigationService
.
online
();
boolean
navigationResult
=
goblinFrontNavigationService
.
online
();
logger
.
info
(
"导航栏,{}"
,
navigationResult
);
logger
.
info
(
"导航栏,{}"
,
navigationResult
);
boolean
secillResult
=
goblinFrontSeckillService
.
online
();
/*
boolean secillResult=goblinFrontSeckillService.online();
logger
.
info
(
"限时秒杀,{}"
,
secillResult
);
logger.info("限时秒杀,{}",secillResult);
*/
boolean
selectGoods
=
goblinFrontSelectGoodsService
.
online
();
boolean
selectGoods
=
goblinFrontSelectGoodsService
.
online
();
logger
.
info
(
"精选商品{}"
,
selectGoods
);
logger
.
info
(
"精选商品{}"
,
selectGoods
);
boolean
moudleIndexResult
=
goblinFrontMoudleIndexService
.
online
();
boolean
moudleIndexResult
=
goblinFrontMoudleIndexService
.
online
();
...
@@ -146,7 +148,7 @@ public class GoblinFrontBannerController extends BaseController {
...
@@ -146,7 +148,7 @@ public class GoblinFrontBannerController extends BaseController {
logger
.
info
(
"魔方{}"
,
cubeResult
);
logger
.
info
(
"魔方{}"
,
cubeResult
);
/* boolean hejiReult=goblinFrontCompilationsService.online();
/* boolean hejiReult=goblinFrontCompilationsService.online();
logger.info("合集{}",hejiReult);*/
logger.info("合集{}",hejiReult);*/
if
(
bannerResult
&&
hotWordResult
&&
navigationResult
)
{
if
(
bannerResult
&&
hotWordResult
&&
navigationResult
&
bannerMiddle
&&
selectGoods
&&
moudleIndexResult
&&
cubeResult
)
{
return
success
(
"操作成功"
);
return
success
(
"操作成功"
);
}
else
{
}
else
{
return
error
(
"操作失败"
);
return
error
(
"操作失败"
);
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinFrontBannerServiceImpl.java
View file @
c4cb3e63
...
@@ -154,47 +154,53 @@ public class GoblinFrontBannerServiceImpl extends ServiceImpl<GoblinFrontBannerM
...
@@ -154,47 +154,53 @@ public class GoblinFrontBannerServiceImpl extends ServiceImpl<GoblinFrontBannerM
queryWrapper
.
eq
(
GoblinFrontBanner:
:
getBannerType
,
1
);
queryWrapper
.
eq
(
GoblinFrontBanner:
:
getBannerType
,
1
);
queryWrapper
.
orderByAsc
(
GoblinFrontBanner:
:
getIndexs
);
queryWrapper
.
orderByAsc
(
GoblinFrontBanner:
:
getIndexs
);
List
<
GoblinFrontBanner
>
list
=
goblinFrontBannerMapper
.
selectList
(
queryWrapper
);
List
<
GoblinFrontBanner
>
list
=
goblinFrontBannerMapper
.
selectList
(
queryWrapper
);
//mongodb
if
(
list
.
size
()>
0
){
for
(
GoblinFrontBanner
goblinFrontBanner:
list
){
//mongodb
GoblinFrontBanner
goblinFrontBanner1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"bannerId"
).
is
(
goblinFrontBanner
.
getBannerId
())),
GoblinFrontBanner
.
class
,
GoblinFrontBanner
.
class
.
getSimpleName
());
for
(
GoblinFrontBanner
goblinFrontBanner:
list
){
if
(
null
==
goblinFrontBanner1
){
GoblinFrontBanner
goblinFrontBanner1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"bannerId"
).
is
(
goblinFrontBanner
.
getBannerId
())),
GoblinFrontBanner
.
class
,
GoblinFrontBanner
.
class
.
getSimpleName
());
mongoTemplate
.
save
(
goblinFrontBanner
,
GoblinFrontBanner
.
class
.
getSimpleName
());
if
(
null
==
goblinFrontBanner1
){
}
else
{
mongoTemplate
.
save
(
goblinFrontBanner
,
GoblinFrontBanner
.
class
.
getSimpleName
());
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontBanner
)));
}
else
{
mongoTemplate
.
getCollection
(
GoblinFrontBanner
.
class
.
getSimpleName
()).
updateOne
(
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontBanner
)));
Query
.
query
(
Criteria
.
where
(
"bannerId"
).
is
(
goblinFrontBanner
.
getBannerId
())).
getQueryObject
(),
mongoTemplate
.
getCollection
(
GoblinFrontBanner
.
class
.
getSimpleName
()).
updateOne
(
orderObject
Query
.
query
(
Criteria
.
where
(
"bannerId"
).
is
(
goblinFrontBanner
.
getBannerId
())).
getQueryObject
(),
);
orderObject
);
}
}
}
//redis
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
FRONT_TOP_BANNER
,
list
);
//中部
}
}
//redis
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
FRONT_TOP_BANNER
,
list
);
//中部
return
true
;
return
true
;
}
}
public
void
middle
(){
public
boolean
middle
(){
LambdaQueryWrapper
<
GoblinFrontBanner
>
queryWrapper
=
Wrappers
.
lambdaQuery
(
GoblinFrontBanner
.
class
);
LambdaQueryWrapper
<
GoblinFrontBanner
>
queryWrapper
=
Wrappers
.
lambdaQuery
(
GoblinFrontBanner
.
class
);
queryWrapper
.
ne
(
GoblinFrontBanner:
:
getDelTag
,
1
);
queryWrapper
.
ne
(
GoblinFrontBanner:
:
getDelTag
,
1
);
//bannerType
//bannerType
queryWrapper
.
eq
(
GoblinFrontBanner:
:
getBannerType
,
2
);
queryWrapper
.
eq
(
GoblinFrontBanner:
:
getBannerType
,
2
);
queryWrapper
.
orderByDesc
(
GoblinFrontBanner:
:
getIndexs
);
queryWrapper
.
orderByDesc
(
GoblinFrontBanner:
:
getIndexs
);
List
<
GoblinFrontBanner
>
list
=
goblinFrontBannerMapper
.
selectList
(
queryWrapper
);
List
<
GoblinFrontBanner
>
list
=
goblinFrontBannerMapper
.
selectList
(
queryWrapper
);
//mongodb
if
(
list
.
size
()>
0
){
for
(
GoblinFrontBanner
goblinFrontBanner:
list
){
//mongodb
GoblinFrontBanner
goblinFrontBanner1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"bannerId"
).
is
(
goblinFrontBanner
.
getBannerId
())),
GoblinFrontBanner
.
class
,
GoblinFrontBanner
.
class
.
getSimpleName
());
for
(
GoblinFrontBanner
goblinFrontBanner:
list
){
if
(
null
==
goblinFrontBanner1
){
GoblinFrontBanner
goblinFrontBanner1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"bannerId"
).
is
(
goblinFrontBanner
.
getBannerId
())),
GoblinFrontBanner
.
class
,
GoblinFrontBanner
.
class
.
getSimpleName
());
mongoTemplate
.
save
(
goblinFrontBanner
,
GoblinFrontBanner
.
class
.
getSimpleName
());
if
(
null
==
goblinFrontBanner1
){
}
else
{
mongoTemplate
.
save
(
goblinFrontBanner
,
GoblinFrontBanner
.
class
.
getSimpleName
());
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontBanner
)));
}
else
{
mongoTemplate
.
getCollection
(
GoblinFrontBanner
.
class
.
getSimpleName
()).
updateOne
(
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontBanner
)));
Query
.
query
(
Criteria
.
where
(
"bannerId"
).
is
(
goblinFrontBanner
.
getBannerId
())).
getQueryObject
(),
mongoTemplate
.
getCollection
(
GoblinFrontBanner
.
class
.
getSimpleName
()).
updateOne
(
orderObject
Query
.
query
(
Criteria
.
where
(
"bannerId"
).
is
(
goblinFrontBanner
.
getBannerId
())).
getQueryObject
(),
);
orderObject
);
}
}
}
//redis
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
FRONT_MIDDLE_BANNER
,
list
);
}
}
//redis
return
true
;
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
FRONT_MIDDLE_BANNER
,
list
);
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinFrontCubeServiceImpl.java
View file @
c4cb3e63
...
@@ -99,21 +99,24 @@ public class GoblinFrontCubeServiceImpl extends ServiceImpl<GoblinFrontCubeMappe
...
@@ -99,21 +99,24 @@ public class GoblinFrontCubeServiceImpl extends ServiceImpl<GoblinFrontCubeMappe
LambdaQueryWrapper
<
GoblinFrontCube
>
queryWrapper
=
Wrappers
.
lambdaQuery
(
GoblinFrontCube
.
class
);
LambdaQueryWrapper
<
GoblinFrontCube
>
queryWrapper
=
Wrappers
.
lambdaQuery
(
GoblinFrontCube
.
class
);
queryWrapper
.
ne
(
GoblinFrontCube:
:
getDelTag
,
1
);
queryWrapper
.
ne
(
GoblinFrontCube:
:
getDelTag
,
1
);
List
<
GoblinFrontCube
>
list
=
goblinFrontCubeMapper
.
selectList
(
queryWrapper
);
List
<
GoblinFrontCube
>
list
=
goblinFrontCubeMapper
.
selectList
(
queryWrapper
);
//mongodb
if
(
list
.
size
()>
0
){
for
(
GoblinFrontCube
goblinFrontCube:
list
){
//mongodb
GoblinFrontCube
goblinFrontCube1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"cubeId"
).
is
(
goblinFrontCube
.
getCubeId
())),
GoblinFrontCube
.
class
,
GoblinFrontCube
.
class
.
getSimpleName
());
for
(
GoblinFrontCube
goblinFrontCube:
list
){
if
(
null
==
goblinFrontCube1
){
GoblinFrontCube
goblinFrontCube1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"cubeId"
).
is
(
goblinFrontCube
.
getCubeId
())),
GoblinFrontCube
.
class
,
GoblinFrontCube
.
class
.
getSimpleName
());
mongoTemplate
.
save
(
goblinFrontCube
,
GoblinFrontCube
.
class
.
getSimpleName
());
if
(
null
==
goblinFrontCube1
){
}
else
{
mongoTemplate
.
save
(
goblinFrontCube
,
GoblinFrontCube
.
class
.
getSimpleName
());
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontCube
)));
}
else
{
mongoTemplate
.
getCollection
(
GoblinFrontCube
.
class
.
getSimpleName
()).
updateOne
(
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontCube
)));
Query
.
query
(
Criteria
.
where
(
"cubeId"
).
is
(
goblinFrontCube
.
getCubeId
())).
getQueryObject
(),
mongoTemplate
.
getCollection
(
GoblinFrontCube
.
class
.
getSimpleName
()).
updateOne
(
orderObject
Query
.
query
(
Criteria
.
where
(
"cubeId"
).
is
(
goblinFrontCube
.
getCubeId
())).
getQueryObject
(),
);
orderObject
);
}
}
}
//redis
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
FRONT_GOBLINFRONTCUBE
,
list
);
}
}
//redis
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
FRONT_GOBLINFRONTCUBE
,
list
);
return
true
;
return
true
;
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinFrontHotWordServiceImpl.java
View file @
c4cb3e63
...
@@ -146,21 +146,23 @@ public class GoblinFrontHotWordServiceImpl extends ServiceImpl<GoblinFrontHotWor
...
@@ -146,21 +146,23 @@ public class GoblinFrontHotWordServiceImpl extends ServiceImpl<GoblinFrontHotWor
queryWrapper
.
ne
(
GoblinFrontHotWord:
:
getDelTag
,
1
);
queryWrapper
.
ne
(
GoblinFrontHotWord:
:
getDelTag
,
1
);
queryWrapper
.
orderByDesc
(
GoblinFrontHotWord:
:
getIndexs
);
queryWrapper
.
orderByDesc
(
GoblinFrontHotWord:
:
getIndexs
);
List
<
GoblinFrontHotWord
>
list
=
goblinFrontHotWordMapper
.
selectList
(
queryWrapper
);
List
<
GoblinFrontHotWord
>
list
=
goblinFrontHotWordMapper
.
selectList
(
queryWrapper
);
for
(
GoblinFrontHotWord
goblinFrontHotWord:
list
){
if
(
list
.
size
()>
0
){
//查看 mongodb 有没有
for
(
GoblinFrontHotWord
goblinFrontHotWord:
list
){
GoblinFrontHotWord
goblinFrontHotWord1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"hotWordId"
).
is
(
goblinFrontHotWord
.
getHotWordId
())),
GoblinFrontHotWord
.
class
,
GoblinFrontHotWord
.
class
.
getSimpleName
());
//查看 mongodb 有没有
if
(
null
==
goblinFrontHotWord1
){
GoblinFrontHotWord
goblinFrontHotWord1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"hotWordId"
).
is
(
goblinFrontHotWord
.
getHotWordId
())),
GoblinFrontHotWord
.
class
,
GoblinFrontHotWord
.
class
.
getSimpleName
());
mongoTemplate
.
save
(
goblinFrontHotWord
,
GoblinFrontHotWord
.
class
.
getSimpleName
());
if
(
null
==
goblinFrontHotWord1
){
}
else
{
mongoTemplate
.
save
(
goblinFrontHotWord
,
GoblinFrontHotWord
.
class
.
getSimpleName
());
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontHotWord
)));
}
else
{
mongoTemplate
.
getCollection
(
GoblinFrontHotWord
.
class
.
getSimpleName
()).
updateOne
(
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontHotWord
)));
Query
.
query
(
Criteria
.
where
(
"hotWordId"
).
is
(
goblinFrontHotWord
.
getHotWordId
())).
getQueryObject
(),
mongoTemplate
.
getCollection
(
GoblinFrontHotWord
.
class
.
getSimpleName
()).
updateOne
(
orderObject
Query
.
query
(
Criteria
.
where
(
"hotWordId"
).
is
(
goblinFrontHotWord
.
getHotWordId
())).
getQueryObject
(),
);
orderObject
}
);
}
}
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
FRONT_HOTWORD
,
list
);
}
}
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
FRONT_HOTWORD
,
list
);
return
true
;
return
true
;
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinFrontMoudleIndexServiceImpl.java
View file @
c4cb3e63
...
@@ -67,23 +67,25 @@ public class GoblinFrontMoudleIndexServiceImpl extends ServiceImpl<GoblinFrontMo
...
@@ -67,23 +67,25 @@ public class GoblinFrontMoudleIndexServiceImpl extends ServiceImpl<GoblinFrontMo
queryWrapper
.
ne
(
GoblinFrontMoudleIndex:
:
getDelTag
,
1
);
queryWrapper
.
ne
(
GoblinFrontMoudleIndex:
:
getDelTag
,
1
);
queryWrapper
.
orderByAsc
(
GoblinFrontMoudleIndex:
:
getIndexs
);
queryWrapper
.
orderByAsc
(
GoblinFrontMoudleIndex:
:
getIndexs
);
List
<
GoblinFrontMoudleIndex
>
list
=
goblinFrontMoudleIndexMapper
.
selectList
(
queryWrapper
);
List
<
GoblinFrontMoudleIndex
>
list
=
goblinFrontMoudleIndexMapper
.
selectList
(
queryWrapper
);
if
(
list
.
size
()>
0
){
// List<GoblinFrontMoudleIndexParam> list=this.listGoblinFrontMoudleIndex();
for
(
GoblinFrontMoudleIndex
goblinFrontMoudleIndex:
list
){
// mongodb 放入
GoblinFrontMoudleIndex
goblinFrontMoudleIndex1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"moudleIndexId"
).
is
(
goblinFrontMoudleIndex
.
getMoudleIndexId
())),
GoblinFrontMoudleIndex
.
class
,
GoblinFrontMoudleIndex
.
class
.
getSimpleName
());
for
(
GoblinFrontMoudleIndex
goblinFrontMoudleIndex:
list
){
if
(
null
==
goblinFrontMoudleIndex1
){
GoblinFrontMoudleIndex
goblinFrontMoudleIndex1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"moudleIndexId"
).
is
(
goblinFrontMoudleIndex
.
getMoudleIndexId
())),
GoblinFrontMoudleIndex
.
class
,
GoblinFrontMoudleIndex
.
class
.
getSimpleName
());
mongoTemplate
.
save
(
goblinFrontMoudleIndex
,
GoblinFrontMoudleIndex
.
class
.
getSimpleName
());
if
(
null
==
goblinFrontMoudleIndex1
){
}
else
{
mongoTemplate
.
save
(
goblinFrontMoudleIndex
,
GoblinFrontMoudleIndex
.
class
.
getSimpleName
());
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontMoudleIndex
)));
}
else
{
mongoTemplate
.
getCollection
(
GoblinFrontMoudleIndex
.
class
.
getSimpleName
()).
updateOne
(
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontMoudleIndex
)));
Query
.
query
(
Criteria
.
where
(
"moudleIndexId"
).
is
(
goblinFrontMoudleIndex
.
getMoudleIndexId
())).
getQueryObject
(),
mongoTemplate
.
getCollection
(
GoblinFrontMoudleIndex
.
class
.
getSimpleName
()).
updateOne
(
orderObject
Query
.
query
(
Criteria
.
where
(
"moudleIndexId"
).
is
(
goblinFrontMoudleIndex
.
getMoudleIndexId
())).
getQueryObject
(),
);
orderObject
}
);
}
}
// reids 存入
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
MOUDLE_INDEX
,
list
);
}
}
// reids 存入
// List<GoblinFrontMoudleIndexParam> list=this.listGoblinFrontMoudleIndex();
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
MOUDLE_INDEX
,
list
);
// mongodb 放入
return
true
;
return
true
;
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinFrontNavigationServiceImpl.java
View file @
c4cb3e63
...
@@ -139,21 +139,24 @@ public class GoblinFrontNavigationServiceImpl extends ServiceImpl<GoblinFrontNav
...
@@ -139,21 +139,24 @@ public class GoblinFrontNavigationServiceImpl extends ServiceImpl<GoblinFrontNav
queryWrapper
.
ne
(
GoblinFrontNavigation:
:
getDelTag
,
1
);
queryWrapper
.
ne
(
GoblinFrontNavigation:
:
getDelTag
,
1
);
queryWrapper
.
orderByDesc
(
GoblinFrontNavigation:
:
getIndexs
);
queryWrapper
.
orderByDesc
(
GoblinFrontNavigation:
:
getIndexs
);
List
<
GoblinFrontNavigation
>
list
=
goblinFrontNavigationMapper
.
selectList
(
queryWrapper
);
List
<
GoblinFrontNavigation
>
list
=
goblinFrontNavigationMapper
.
selectList
(
queryWrapper
);
//mongodb
if
(
list
.
size
()>
0
){
for
(
GoblinFrontNavigation
goblinFrontNavigation:
list
){
//mongodb
GoblinFrontNavigation
goblinFrontNavigation1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"navigationId"
).
is
(
goblinFrontNavigation
.
getNavigationId
())),
GoblinFrontNavigation
.
class
,
GoblinFrontNavigation
.
class
.
getSimpleName
());
for
(
GoblinFrontNavigation
goblinFrontNavigation:
list
){
if
(
null
==
goblinFrontNavigation1
){
GoblinFrontNavigation
goblinFrontNavigation1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"navigationId"
).
is
(
goblinFrontNavigation
.
getNavigationId
())),
GoblinFrontNavigation
.
class
,
GoblinFrontNavigation
.
class
.
getSimpleName
());
mongoTemplate
.
save
(
goblinFrontNavigation
,
GoblinFrontNavigation
.
class
.
getSimpleName
());
if
(
null
==
goblinFrontNavigation1
){
}
else
{
mongoTemplate
.
save
(
goblinFrontNavigation
,
GoblinFrontNavigation
.
class
.
getSimpleName
());
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontNavigation
)));
}
else
{
mongoTemplate
.
getCollection
(
GoblinFrontNavigation
.
class
.
getSimpleName
()).
updateOne
(
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontNavigation
)));
Query
.
query
(
Criteria
.
where
(
"navigationId"
).
is
(
goblinFrontNavigation
.
getNavigationId
())).
getQueryObject
(),
mongoTemplate
.
getCollection
(
GoblinFrontNavigation
.
class
.
getSimpleName
()).
updateOne
(
orderObject
Query
.
query
(
Criteria
.
where
(
"navigationId"
).
is
(
goblinFrontNavigation
.
getNavigationId
())).
getQueryObject
(),
);
orderObject
);
}
}
}
//redis
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
FRONT_NAVIGATION
,
list
);
}
}
//redis
redisDataSourceUtil
.
getRedisGoblinUtil
().
set
(
GoblinRedisConst
.
FRONT_NAVIGATION
,
list
);
return
true
;
return
true
;
}
}
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/goblin/service/impl/GoblinFrontSeckillServiceImpl.java
View file @
c4cb3e63
...
@@ -157,21 +157,23 @@ public class GoblinFrontSeckillServiceImpl extends ServiceImpl<GoblinFrontSeckil
...
@@ -157,21 +157,23 @@ public class GoblinFrontSeckillServiceImpl extends ServiceImpl<GoblinFrontSeckil
queryWrapper
.
ne
(
GoblinFrontSeckill:
:
getDelTag
,
1
);
queryWrapper
.
ne
(
GoblinFrontSeckill:
:
getDelTag
,
1
);
queryWrapper
.
orderByAsc
(
GoblinFrontSeckill:
:
getIndexs
);
queryWrapper
.
orderByAsc
(
GoblinFrontSeckill:
:
getIndexs
);
List
<
GoblinFrontSeckill
>
list
=
goblinFrontSeckillMapper
.
selectList
(
queryWrapper
);
List
<
GoblinFrontSeckill
>
list
=
goblinFrontSeckillMapper
.
selectList
(
queryWrapper
);
//mongodb
if
(
list
.
size
()>
0
){
for
(
GoblinFrontSeckill
goblinFrontSeckill:
list
){
//mongodb
GoblinFrontSeckill
goblinFrontNavigation1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"seckilId"
).
is
(
goblinFrontSeckill
.
getSeckilId
())),
GoblinFrontSeckill
.
class
,
GoblinFrontSeckill
.
class
.
getSimpleName
());
for
(
GoblinFrontSeckill
goblinFrontSeckill:
list
){
if
(
null
==
goblinFrontNavigation1
){
GoblinFrontSeckill
goblinFrontNavigation1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"seckilId"
).
is
(
goblinFrontSeckill
.
getSeckilId
())),
GoblinFrontSeckill
.
class
,
GoblinFrontSeckill
.
class
.
getSimpleName
());
mongoTemplate
.
save
(
goblinFrontSeckill
,
GoblinFrontSeckill
.
class
.
getSimpleName
());
if
(
null
==
goblinFrontNavigation1
){
}
else
{
mongoTemplate
.
save
(
goblinFrontSeckill
,
GoblinFrontSeckill
.
class
.
getSimpleName
());
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontSeckill
)));
}
else
{
mongoTemplate
.
getCollection
(
GoblinFrontSeckill
.
class
.
getSimpleName
()).
updateOne
(
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontSeckill
)));
Query
.
query
(
Criteria
.
where
(
"seckilId"
).
is
(
goblinFrontSeckill
.
getSeckilId
())).
getQueryObject
(),
mongoTemplate
.
getCollection
(
GoblinFrontSeckill
.
class
.
getSimpleName
()).
updateOne
(
orderObject
Query
.
query
(
Criteria
.
where
(
"seckilId"
).
is
(
goblinFrontSeckill
.
getSeckilId
())).
getQueryObject
(),
);
orderObject
);
}
}
}
//redis 保存秒杀表信息
redisGoblinUtil
.
set
(
GoblinRedisConst
.
FRONT_SECKILL
,
list
);
}
}
//redis 保存秒杀表信息
redisGoblinUtil
.
set
(
GoblinRedisConst
.
FRONT_SECKILL
,
list
);
return
true
;
return
true
;
}
}
}
}
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 @
c4cb3e63
...
@@ -120,19 +120,22 @@ public class GoblinFrontSelectGoodsServiceImpl extends ServiceImpl<GoblinFrontSe
...
@@ -120,19 +120,22 @@ 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
);
List
<
GoblinFrontSelectGoods
>
list
=
goblinFrontSelectGoodsMapper
.
selectList
(
queryWrapper
);
List
<
GoblinFrontSelectGoods
>
list
=
goblinFrontSelectGoodsMapper
.
selectList
(
queryWrapper
);
//放入mongodb
if
(
list
.
size
()>
0
){
GoblinFrontSelectGoods
goblinFrontSelectGoods
=
list
.
get
(
0
);
//放入mongodb
GoblinFrontSelectGoods
goblinFrontSelectGoods1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"selectGoodsId"
).
is
(
goblinFrontSelectGoods
.
getSelectGoodsId
())),
GoblinFrontSelectGoods
.
class
,
GoblinFrontSelectGoods
.
class
.
getSimpleName
());
GoblinFrontSelectGoods
goblinFrontSelectGoods
=
list
.
get
(
0
);
if
(
null
==
goblinFrontSelectGoods1
){
GoblinFrontSelectGoods
goblinFrontSelectGoods1
=
mongoTemplate
.
findOne
(
Query
.
query
(
Criteria
.
where
(
"selectGoodsId"
).
is
(
goblinFrontSelectGoods
.
getSelectGoodsId
())),
GoblinFrontSelectGoods
.
class
,
GoblinFrontSelectGoods
.
class
.
getSimpleName
());
mongoTemplate
.
save
(
goblinFrontSelectGoods
,
GoblinFrontSelectGoods
.
class
.
getSimpleName
());
if
(
null
==
goblinFrontSelectGoods1
){
}
else
{
mongoTemplate
.
save
(
goblinFrontSelectGoods
,
GoblinFrontSelectGoods
.
class
.
getSimpleName
());
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontSelectGoods
)));
}
else
{
mongoTemplate
.
getCollection
(
GoblinFrontSelectGoods
.
class
.
getSimpleName
()).
updateOne
(
BasicDBObject
orderObject
=
new
BasicDBObject
(
"$set"
,
JSON
.
parse
(
JsonUtils
.
toJson
(
goblinFrontSelectGoods
)));
Query
.
query
(
Criteria
.
where
(
"selectGoodsId"
).
is
(
goblinFrontSelectGoods
.
getSelectGoodsId
())).
getQueryObject
(),
mongoTemplate
.
getCollection
(
GoblinFrontSelectGoods
.
class
.
getSimpleName
()).
updateOne
(
orderObject
Query
.
query
(
Criteria
.
where
(
"selectGoodsId"
).
is
(
goblinFrontSelectGoods
.
getSelectGoodsId
())).
getQueryObject
(),
);
orderObject
);
}
redisGoblinUtil
.
set
(
GoblinRedisConst
.
SELECT_GOODS
,
list
);
}
}
redisGoblinUtil
.
set
(
GoblinRedisConst
.
SELECT_GOODS
,
list
);
return
true
;
return
true
;
}
}
}
}
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