‘linchangsheng’ il y a 3 semaines
Parent
commit
5d739bbac7

+ 0 - 9
src/main/java/com/gree/mall/manager/logic/goods/GoodsLogic.java

@@ -423,15 +423,6 @@ public class GoodsLogic {
         if (StringUtils.isNotBlank(goodsBean.getUmsDiscountCode()) && !UMSDiscountCodeEnum.existDiscountCodeByCode(goodsBean.getUmsDiscountCode())) {
             throw new RemoteServiceException("补贴品类不存在");
         }
-        //设置企业微信id
-        AdminUserCom adminUser = commonLogic.getAdminUser(request);
-        if (StringUtils.isEmpty(adminUser.getLoginCompanyWechatId())) {
-            throw new RemoteServiceException("无效微信企业id");
-        }
-        goodsBean.setCompanyWechatId(adminUser.getLoginCompanyWechatId());
-        goodsBean.setCompanyName(adminUser.getLoginCompanyName());
-
-        final AdminCompanyWechat companyWechat = adminCompanyWechatService.getById(adminUser.getLoginCompanyWechatId());
 
         Date creatDate = new Date();
         List<GoodsSpec> goodsSpecList = goodsBean.getGoodsSpecs();