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