refactor(系统设置): 接口过滤已删除用户
This commit is contained in:
parent
43572ba9a2
commit
a4fd54044d
|
@ -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>
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue