From 303fdec4cfe2337608f6d304f54198c19397f292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E7=9A=93=E9=9B=AF?= <18868469283@qq.com> Date: Fri, 11 Jan 2019 16:05:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E3=80=81?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E7=AE=A1=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dao/UmsAdminPermissionRelationDao.java | 13 ++++++++ .../mall/dao/UmsAdminRoleRelationDao.java | 33 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminPermissionRelationDao.java create mode 100644 代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminRoleRelationDao.java diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminPermissionRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminPermissionRelationDao.java new file mode 100644 index 0000000..ae8ea70 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminPermissionRelationDao.java @@ -0,0 +1,13 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.UmsAdminPermissionRelation; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * ûȨԶDao + */ +public interface UmsAdminPermissionRelationDao {//ûȨ޹ϵ + int insertList(@Param("list") List list); +} diff --git a/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminRoleRelationDao.java b/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminRoleRelationDao.java new file mode 100644 index 0000000..0318a55 --- /dev/null +++ b/代码库/mall-admin/src/main/java/com/sock/mall/dao/UmsAdminRoleRelationDao.java @@ -0,0 +1,33 @@ +package com.macro.mall.dao; + +import com.macro.mall.model.UmsAdminRoleRelation; +import com.macro.mall.model.UmsPermission; +import com.macro.mall.model.UmsRole; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * ̨ûɫԶDao + */ +public interface UmsAdminRoleRelationDao {//ûɫϵ + /** + * ûɫϵ + */ + int insertList(@Param("list") List adminRoleRelationList); + + /** + * ȡнɫ + */ + List getRoleList(@Param("adminId") Long adminId); + + /** + * ȡûнɫȨ + */ + List getRolePermissionList(@Param("adminId") Long adminId); + + /** + * ȡûȨ(+ - Ȩ) + */ + List getPermissionList(@Param("adminId") Long adminId); +}