瀏覽代碼

添加商铺消息订阅配置

liu 1 年之前
父節點
當前提交
7410472ab9

+ 3 - 0
db/update_241024.sql

@@ -0,0 +1,3 @@
+ALTER TABLE goods_shop ADD message_configuration int COMMENT '消息配置  0开始  1关闭';
+
+UPDATE goods_shop SET message_configuration= 0;

+ 3 - 0
src/main/java/com/sqx/modules/goods/entity/GoodsShop.java

@@ -258,4 +258,7 @@ public class GoodsShop implements Serializable {
 
     @ApiModelProperty("是否供应商 0是  1不是")
     private Integer isSupplier;
+
+    @ApiModelProperty("消息配置  0开始  1关闭")
+    private Integer messageConfiguration;
 }

+ 4 - 0
src/main/java/com/sqx/modules/goods/service/impl/GoodsShopServiceImpl.java

@@ -146,6 +146,8 @@ public class GoodsShopServiceImpl extends ServiceImpl<GoodsShopDao, GoodsShop> i
         }
         //        默认不是供应商
         goodsShop.setIsSupplier(1);
+//        默认开启消息配置
+        goodsShop.setMessageConfiguration(0);
 
 
         baseMapper.insert(goodsShop);
@@ -470,6 +472,8 @@ public class GoodsShopServiceImpl extends ServiceImpl<GoodsShopDao, GoodsShop> i
         BeanUtils.copyProperties(goodsShopVo, shop);
 //        默认不是供应商
         shop.setIsSupplier(1);
+//        默认开启消息配置
+        goodsShop.setMessageConfiguration(0);
         baseMapper.insert(shop);
         CommonInfo name = commonInfoService.findOne(12);
         Msg byPhone = msgDao.findByPhone(goodsShopVo.getPhone());