|
@@ -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);
|
|
|
}
|
|
|
}
|