refactor(系统设置): 接口过滤已删除用户

This commit is contained in:
WangXu10 2023-08-24 17:53:48 +08:00 committed by 刘瑞斌
parent 43572ba9a2
commit a4fd54044d
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,6 @@
`user` u `user` u
LEFT JOIN user_role_relation urr ON u.id = urr.user_id LEFT JOIN user_role_relation urr ON u.id = urr.user_id
WHERE WHERE
urr.source_id = #{sourceId} urr.source_id = #{sourceId} and u.deleted = false
</select> </select>
</mapper> </mapper>

View File

@ -299,6 +299,7 @@ public class UserService {
public List<User> getUserList() { public List<User> getUserList() {
UserExample example = new UserExample(); UserExample example = new UserExample();
example.createCriteria().andDeletedEqualTo(false);
example.setOrderByClause("update_time desc"); example.setOrderByClause("update_time desc");
return userMapper.selectByExample(example); return userMapper.selectByExample(example);
} }