人员信息删除-同步删除考勤信息
This commit is contained in:
parent
d9a74f6cd1
commit
bf1e35a4d8
|
|
@ -242,4 +242,13 @@ public interface SysUserMapper
|
|||
void updateOrgIdByUserIdWithOutSame(@Param("user") SysUser users);
|
||||
|
||||
SysOrg findOrgByOrgId(SysUser users);
|
||||
|
||||
/**
|
||||
* 删除人员数据后,同步删除考勤组数据
|
||||
* @param userId
|
||||
* @return void
|
||||
* @author cwchen
|
||||
* @date 2025/2/18 10:31
|
||||
*/
|
||||
void delAttGroupPersonRelation(Long userId);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -270,6 +270,8 @@ public class SysUserServiceImpl implements SysUserService
|
|||
userMapper.deleteUserPostByUserId(userId);
|
||||
//删除人员角色分配的数据 sys_department_user
|
||||
subOrgServiceImpl.syncDelUser(userId);
|
||||
// 删除考勤组数据
|
||||
userMapper.delAttGroupPersonRelation(userId);
|
||||
return userMapper.deleteUserById(userId);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(),e);
|
||||
|
|
|
|||
|
|
@ -56,6 +56,10 @@
|
|||
from sys_user_role
|
||||
where user_id = #{userId}
|
||||
</delete>
|
||||
<!--删除人员数据后,同步删除考勤组数据-->
|
||||
<delete id="delAttGroupPersonRelation">
|
||||
UPDATE att_group_person_relation SET is_active = '0' WHERE user_id = #{userId}
|
||||
</delete>
|
||||
<update id="deleteUserById">
|
||||
update sys_user
|
||||
set is_active = 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue