记得上下班打卡 | 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
cf175928
Commit
cf175928
authored
Feb 10, 2022
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 小问题。
parent
a04a7c9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
db_ln_goblin_initialdata.sql
...net-service-goblin-impl/docu/db_ln_goblin_initialdata.sql
+2
-1
GoblinFrontServiceImpl.java
...t/service/goblin/service/impl/GoblinFrontServiceImpl.java
+2
-2
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/docu/db_ln_goblin_initialdata.sql
View file @
cf175928
...
...
@@ -486,7 +486,7 @@ CREATE TABLE `goblin_front_cube` (
`row_type`
int
DEFAULT
NULL
COMMENT
'1、一行一个2一行二个3一行三个4上一下三'
,
`page_type`
int
DEFAULT
NULL
COMMENT
'1、单商品2、合集'
,
`spu_name`
varchar
(
255
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'商品名称'
,
`spu_id`
varchar
(
64
)
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'商品id'
,
`spu_id`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
COMMENT
'商品id'
,
`information_a`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
COMMENT
'推荐文案1'
,
`compilations_id`
varchar
(
255
)
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
DEFAULT
NULL
COMMENT
'合集id'
,
`create_time`
timestamp
NULL
DEFAULT
NULL
,
...
...
@@ -495,6 +495,7 @@ CREATE TABLE `goblin_front_cube` (
`information_b`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
COMMENT
'推荐文案1'
,
`information_c`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
COMMENT
'推荐文案2'
,
`information_d`
text
CHARACTER
SET
utf8mb4
COLLATE
utf8mb4_unicode_ci
COMMENT
'推荐文案3'
,
`type`
int
DEFAULT
NULL
COMMENT
'1、魔方2、新品推荐'
,
PRIMARY
KEY
(
`mid`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
13
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
;
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinFrontServiceImpl.java
View file @
cf175928
...
...
@@ -444,7 +444,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
query
.
with
(
Sort
.
by
(
Sort
.
Direction
.
DESC
,
"count"
));
// 查询总数
List
<
GoblinGoodsInfoVo
>
list
=
mongoTemplate
.
find
(
query
,
GoblinGoodsInfoVo
.
class
,
GoblinGoodsInfoVo
.
class
.
getSimpleName
());
if
(
list
.
size
()>
0
){
/*
if(list.size()>0){
//找到 销量
for(GoblinGoodsInfoVo goblinGoodsInfoVo:list){
Integer counts=goblinRedisUtils.getSpuSaleCount(goblinGoodsInfoVo.getSpuId());
...
...
@@ -458,7 +458,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
public int compare(GoblinGoodsInfoVo arg0, GoblinGoodsInfoVo arg1) {
return -(arg0.getCount().compareTo(arg1.getCount()));
}});
}
}
*/
GoblinFrontCategoryListVo
goblinFrontCategoryListVo
=
GoblinFrontCategoryListVo
.
getNew
();
goblinFrontCategoryListVo
.
setSpuList
(
list
);
return
goblinFrontCategoryListVo
;
...
...
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