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

Commit 0a0f4c7e authored by 胡佳晨's avatar 胡佳晨

修改 redis 添加 购物车消费

parent f5194062
......@@ -77,7 +77,7 @@ liquidnet:
host: s-2zeb52774ceac644.mongodb.rds.aliyuncs.com:3717,s-2ze8994d25d37d74.mongodb.rds.aliyuncs.com:3717
port: 3717
user: admin
pwd: Zhengzai%402022
pwd: Qwer1234
service:
adam:
url-pay:
......
......@@ -848,8 +848,8 @@ create table goblin_self_marketing
(
mid bigint unsigned auto_increment primary key,
self_market_id varchar(64) default '' comment '官方营销表id',
performance_id varchar(128) default '' comment '演出id'
performance_img varchar(128) default '' comment '演出图片'
performance_id varchar(128) default '' comment '演出id',
performance_img varchar(128) default '' comment '演出图片',
name varchar(64) default '' comment '营销名称',
type int default 0 comment '营销类型[1-正在下单]',
status int default 0 comment '活动状态[-1-全部|0-等待开始|1-活动中|2-活动结束|7-停用]',
......
use dev_ln_scene;
use test_ln_scene;
// ================================================== 创建集合
db.createCollection("GoblinSelfGoodsCategoryVo");
db.createCollection("GoblinStoreGoodsCategoryVo");
......@@ -29,34 +29,34 @@ db.createCollection("GoblinOrderSkuVo");
db.createCollection("GoblinSelfMarketingVo");
db.createCollection("GoblinStoreOrderVo");
// ================================================== 创建分片
sh.enableSharding("dev_ln_scene");
sh.shardCollection("dev_ln_scene.GoblinSelfGoodsCategoryVo",{"cateId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinStoreGoodsCategoryVo",{"cateId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinMgtCategorySpecVo",{"cateId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinSelfTagVo",{"tagId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinServiceSupportVo",{"ssid":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinStoreNoticeVo",{"noticeId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinStoreConfigVo",{"storeId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinStoreInfoVo",{"storeId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinGoodsInfoVo",{"spuId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinGoodsSkuInfoVo",{"skuId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinStoreCouponBasicVo",{"storeCouponId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinUserCouponVo",{"ucouponId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinFrontBanner",{"bannerId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinFrontCube",{"cubeId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinFrontHotWord",{"hotWordId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinFrontMoudleIndex",{"moudleIndexId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinFrontNavigation",{"navigationId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinFrontSeckill",{"seckilId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinFrontSelectGoods",{"selectGoodsId":"hashed"});
sh.shardCollection("dev_ln_scene.GoblinShoppingCartVoo",{"goblinShoppingCartId":"hashed"});
sh.enableSharding("test_ln_scene");
sh.shardCollection("test_ln_scene.GoblinSelfGoodsCategoryVo",{"cateId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinStoreGoodsCategoryVo",{"cateId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinMgtCategorySpecVo",{"cateId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinSelfTagVo",{"tagId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinServiceSupportVo",{"ssid":"hashed"});
sh.shardCollection("test_ln_scene.GoblinStoreNoticeVo",{"noticeId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinStoreConfigVo",{"storeId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinStoreInfoVo",{"storeId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinGoodsInfoVo",{"spuId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinGoodsSkuInfoVo",{"skuId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinStoreCouponBasicVo",{"storeCouponId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinUserCouponVo",{"ucouponId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontBanner",{"bannerId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontCube",{"cubeId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontHotWord",{"hotWordId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontMoudleIndex",{"moudleIndexId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontNavigation",{"navigationId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontSeckill",{"seckilId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinFrontSelectGoods",{"selectGoodsId":"hashed"});
sh.shardCollection("test_ln_scene.GoblinShoppingCartVoo",{"goblinShoppingCartId":"hashed"});
sh.createCollection("dev_ln_scene.GoblinBackOrderVo",{"backOrderId":"hashed"});
sh.createCollection("dev_ln_scene.GoblinMailVo",{"mailId":"hashed"});
sh.createCollection("dev_ln_scene.GoblinMarketingZhengzaiRelationVo",{"selfMarketId":"hashed"});
sh.createCollection("dev_ln_scene.GoblinOrderLogVo",{"selfMarketId":"hashed"});
sh.createCollection("dev_ln_scene.GoblinOrderSkuVo",{"selfMarketId":"hashed"});
sh.createCollection("dev_ln_scene.GoblinStoreOrderVo",{"orderId":"hashed"});
sh.createCollection("test_ln_scene.GoblinBackOrderVo",{"backOrderId":"hashed"});
sh.createCollection("test_ln_scene.GoblinMailVo",{"mailId":"hashed"});
sh.createCollection("test_ln_scene.GoblinMarketingZhengzaiRelationVo",{"selfMarketId":"hashed"});
sh.createCollection("test_ln_scene.GoblinOrderLogVo",{"selfMarketId":"hashed"});
sh.createCollection("test_ln_scene.GoblinOrderSkuVo",{"selfMarketId":"hashed"});
sh.createCollection("test_ln_scene.GoblinStoreOrderVo",{"orderId":"hashed"});
// ================================================== 创建索引
db.GoblinStoreGoodsCategoryVo.createIndex({storeId:"hashed"});
db.GoblinMgtCategorySpecVo.createIndex({cateId:"hashed"});
......
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