‘linchangsheng’ 3 周之前
父節點
當前提交
22601b30a2

+ 0 - 5
src/main/java/com/gree/mall/manager/logic/FreightLogic.java

@@ -88,12 +88,7 @@ public class FreightLogic {
 
         //设置企业微信id
         AdminUserCom adminUser = commonLogic.getAdminUser(request);
-        if (StringUtils.isEmpty(adminUser.getLoginCompanyWechatId())) {
-            throw new RemoteServiceException("无效微信企业id");
-        }
 
-        freightTemplateBean.setCompanyWechatId(adminUser.getLoginCompanyWechatId());
-        freightTemplateBean.setCompanyName(adminUser.getLoginCompanyName());
         freightTemplateBean.setCreateUserName(adminUser.getNickName());
         freightTemplateBean.setCreateTime(new Date());
         freightTemplateService.saveOrUpdate(freightTemplateBean);

+ 2 - 5
src/main/java/com/gree/mall/manager/logic/StorageLogic.java

@@ -66,12 +66,9 @@ public class StorageLogic {
     @Transactional(rollbackFor = Exception.class)
     public void add(HttpServletRequest request,Storage storage) {
         AdminUserCom adminUser = commonLogic.getAdminUser(request);
-        if(StringUtils.isEmpty(adminUser.getLoginCompanyWechatId())){
-            throw new RemoteServiceException("无效企业微信id");
-        }
+
         storage.setCreateTime(new Date());
-        storage.setCompanyWechatId(adminUser.getLoginCompanyWechatId());
-        storage.setCompanyName(adminUser.getLoginCompanyName());
+
         storageService.save(storage);
     }
 

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

@@ -779,9 +779,6 @@ public class GoodsLogic {
     public void goodsTemplate(GoodsTemplateBean goodsTemplateBean, HttpServletRequest request) {
 
         AdminUserCom adminUser = commonLogic.getAdminUser(request);
-        if (StringUtils.isEmpty(adminUser.getLoginCompanyWechatId())) {
-            throw new RemoteServiceException("无效微信企业id");
-        }
 
         if (goodsTemplateBean.getGoodsIdList() == null || goodsTemplateBean.getGoodsIdList().size() < 1) {
             return;