记得上下班打卡 | git大法好,push需谨慎

Commit cf175928 authored by zhengfuxin's avatar zhengfuxin

修改 小问题。

parent a04a7c9a
...@@ -486,7 +486,7 @@ CREATE TABLE `goblin_front_cube` ( ...@@ -486,7 +486,7 @@ CREATE TABLE `goblin_front_cube` (
`row_type` int DEFAULT NULL COMMENT '1、一行一个2一行二个3一行三个4上一下三', `row_type` int DEFAULT NULL COMMENT '1、一行一个2一行二个3一行三个4上一下三',
`page_type` int DEFAULT NULL COMMENT '1、单商品2、合集', `page_type` int DEFAULT NULL COMMENT '1、单商品2、合集',
`spu_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '商品名称', `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', `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', `compilations_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '合集id',
`create_time` timestamp NULL DEFAULT NULL, `create_time` timestamp NULL DEFAULT NULL,
...@@ -495,6 +495,7 @@ CREATE TABLE `goblin_front_cube` ( ...@@ -495,6 +495,7 @@ CREATE TABLE `goblin_front_cube` (
`information_b` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '推荐文案1', `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_c` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '推荐文案2',
`information_d` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '推荐文案3', `information_d` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '推荐文案3',
`type` int DEFAULT NULL COMMENT '1、魔方2、新品推荐',
PRIMARY KEY (`mid`) PRIMARY KEY (`mid`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
......
...@@ -444,7 +444,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -444,7 +444,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
query.with(Sort.by(Sort.Direction.DESC, "count")); query.with(Sort.by(Sort.Direction.DESC, "count"));
// 查询总数 // 查询总数
List<GoblinGoodsInfoVo> list = mongoTemplate.find(query, GoblinGoodsInfoVo.class, GoblinGoodsInfoVo.class.getSimpleName()); List<GoblinGoodsInfoVo> list = mongoTemplate.find(query, GoblinGoodsInfoVo.class, GoblinGoodsInfoVo.class.getSimpleName());
if(list.size()>0){ /*if(list.size()>0){
//找到 销量 //找到 销量
for(GoblinGoodsInfoVo goblinGoodsInfoVo:list){ for(GoblinGoodsInfoVo goblinGoodsInfoVo:list){
Integer counts=goblinRedisUtils.getSpuSaleCount(goblinGoodsInfoVo.getSpuId()); Integer counts=goblinRedisUtils.getSpuSaleCount(goblinGoodsInfoVo.getSpuId());
...@@ -458,7 +458,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService { ...@@ -458,7 +458,7 @@ public class GoblinFrontServiceImpl implements GoblinFrontService {
public int compare(GoblinGoodsInfoVo arg0, GoblinGoodsInfoVo arg1) { public int compare(GoblinGoodsInfoVo arg0, GoblinGoodsInfoVo arg1) {
return -(arg0.getCount().compareTo(arg1.getCount())); return -(arg0.getCount().compareTo(arg1.getCount()));
}}); }});
} }*/
GoblinFrontCategoryListVo goblinFrontCategoryListVo=GoblinFrontCategoryListVo.getNew(); GoblinFrontCategoryListVo goblinFrontCategoryListVo=GoblinFrontCategoryListVo.getNew();
goblinFrontCategoryListVo.setSpuList(list); goblinFrontCategoryListVo.setSpuList(list);
return goblinFrontCategoryListVo; return goblinFrontCategoryListVo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment