‘linchangsheng’ 3 주 전
부모
커밋
1ab77c356c
1개의 변경된 파일17개의 추가작업 그리고 0개의 파일을 삭제
  1. 17 0
      src/main/java/com/gree/mall/manager/logic/admin/AdminWebsitLogic.java

+ 17 - 0
src/main/java/com/gree/mall/manager/logic/admin/AdminWebsitLogic.java

@@ -8,6 +8,7 @@ import com.gree.mall.manager.bean.admin.AdminUserCom;
 import com.gree.mall.manager.bean.admin.AdminWebsitTree;
 import com.gree.mall.manager.bean.admin.AdminWebsitVO;
 import com.gree.mall.manager.bean.admin.reqDto.AdminUserAddReqBean;
+import com.gree.mall.manager.bean.admin.reqDto.AdminUserPermissions;
 import com.gree.mall.manager.commonmapper.AdminMapper;
 import com.gree.mall.manager.exception.RemoteServiceException;
 import com.gree.mall.manager.logic.common.CommonLogic;
@@ -132,6 +133,14 @@ public class AdminWebsitLogic {
         adminUserBean.setCompanyName(adminWebsit.getCompanyName());
         adminUserBean.setAddress(adminWebsit.getAddress());
         adminUserBean.setType(2);
+
+        List<AdminUserPermissions> adminUserPermissions = new ArrayList<>();
+        AdminUserPermissions adminUserPermissions1 = new AdminUserPermissions();
+        adminUserPermissions1.setAdminUserPermissionsId(adminWebsit.getWebsitId());
+        adminUserPermissions1.setIsDept(false);
+        adminUserPermissions.add(adminUserPermissions1);
+
+        adminUserBean.setPermissions(adminUserPermissions);
         adminUserLogic.save(adminUserBean, request);
 
     }
@@ -340,6 +349,14 @@ public class AdminWebsitLogic {
             adminUserBean.setCompanyName(adminWebsit.getCompanyName());
             adminUserBean.setAddress(adminWebsit.getAddress());
             adminUserBean.setType(2);
+
+            List<AdminUserPermissions> adminUserPermissions = new ArrayList<>();
+            AdminUserPermissions adminUserPermissions1 = new AdminUserPermissions();
+            adminUserPermissions1.setAdminUserPermissionsId(adminWebsit.getWebsitId());
+            adminUserPermissions1.setIsDept(false);
+            adminUserPermissions.add(adminUserPermissions1);
+
+            adminUserBean.setPermissions(adminUserPermissions);
             adminUserLogic.save(adminUserBean, request);
         }
     }