liu 1 year atrás
parent
commit
ef6bfb02e4

+ 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 - 1
src/main/java/com/sqx/modules/goods/service/impl/GoodsShopServiceImpl.java

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