From 9a6e815201658ab3fc6a7c7b7638a6eadd029bcb Mon Sep 17 00:00:00 2001 From: river <1376754470@qq.com> Date: Fri, 8 Jan 2021 17:51:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E6=97=B6=E5=88=A0=E9=99=A4=E7=94=A8=E6=88=B7=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E7=9A=84=E8=A7=92=E8=89=B2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/daqing/financial/hrms/dao/EmployeeDao.java | 2 ++ .../financial/hrms/service/impl/EmployeeServiceImpl.java | 1 + .../src/main/resources/mapper/hrms/EmployeeDao.xml | 8 ++++++++ 3 files changed, 11 insertions(+) diff --git a/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/dao/EmployeeDao.java b/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/dao/EmployeeDao.java index 885893e4..13c54cb1 100644 --- a/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/dao/EmployeeDao.java +++ b/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/dao/EmployeeDao.java @@ -113,4 +113,6 @@ public interface EmployeeDao extends BaseMapper { Integer countUserIdAndRoleId(@Param("userId") Long userId, @Param("roleId") Long roleId); int selectUserRole(@Param("userId") Long userId, @Param("roleId") Long roleId); + + Boolean deleteRoleByUserId(@Param("ids") List ids); } diff --git a/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/service/impl/EmployeeServiceImpl.java b/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/service/impl/EmployeeServiceImpl.java index db43f33a..7e4c0f85 100644 --- a/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/service/impl/EmployeeServiceImpl.java +++ b/dq-financial-hrms/src/main/java/com/daqing/financial/hrms/service/impl/EmployeeServiceImpl.java @@ -87,6 +87,7 @@ public class EmployeeServiceImpl extends ServiceImpl + + + DELETE FROM hrms_employee_role WHERE user_id IN + + #{id} + + + \ No newline at end of file