‘linchangsheng’ 2 周之前
父节点
当前提交
c96f1f939b
共有 1 个文件被更改,包括 2 次插入10 次删除
  1. 2 10
      src/main/java/com/gree/mall/manager/logic/template/TemplateLogic.java

+ 2 - 10
src/main/java/com/gree/mall/manager/logic/template/TemplateLogic.java

@@ -109,17 +109,13 @@ public class TemplateLogic {
 
     public String updatePub(PubTemplate templateBean, HttpServletRequest request) {
         AdminUserCom adminUser = commonLogic.getAdminUser(request);
-        if (StringUtils.isEmpty(adminUser.getLoginCompanyWechatId())) {
-            throw new RemoteServiceException("无效微信企业id");
-        }
+
 
         PubTemplate pubTemplate = new PubTemplate();
         pubTemplate.setPubTemplateId(adminUser.getLoginCompanyWechatId());
         pubTemplate.setContent(templateBean.getContent());
         pubTemplate.setName("公共模块");
         pubTemplate.setCreateTime(new Date());
-        pubTemplate.setCompanyWechatId(adminUser.getLoginCompanyWechatId());
-        pubTemplate.setCompanyName(adminUser.getLoginCompanyName());
         pubTemplateService.saveOrUpdate(pubTemplate);
         return pubTemplate.getPubTemplateId();
     }
@@ -138,9 +134,7 @@ public class TemplateLogic {
     @Transactional
     public String update(TemplateBean templateBean, HttpServletRequest request) throws ParseException {
         AdminUserCom adminUser = commonLogic.getAdminUser(request);
-        if (StringUtils.isEmpty(adminUser.getLoginCompanyWechatId())) {
-            throw new RemoteServiceException("无效微信企业id");
-        }
+
 
         final CommonTemplate oldTemplate = commonTemplateService.getById(templateBean.getCommonTemplateId());
 
@@ -175,8 +169,6 @@ public class TemplateLogic {
             goodsTemplate.setGoodsId(goodsId);
             goodsTemplate.setTemplateId(templateBean.getCommonTemplateId());
             goodsTemplate.setCreateTime(new Date());
-            goodsTemplate.setCompanyWechatId(adminUser.getLoginCompanyWechatId());
-            goodsTemplate.setCompanyName(adminUser.getLoginCompanyName());
             goodsTemplateList.add(goodsTemplate);
         }
         goodsTemplateService.saveBatch(goodsTemplateList);