教学管理bug修改

This commit is contained in:
joylink_zhangsai 2021-03-25 20:42:19 +08:00
parent a014bcc40d
commit 4801d11b3b

View File

@ -708,12 +708,16 @@ public class SysUserService implements ISysUserService {
@Override @Override
public List<SysUser> findEntity(List<Long> ids, String orderBy) { public List<SysUser> findEntity(List<Long> ids, String orderBy) {
SysUserExample example = new SysUserExample(); if (CollectionUtils.isEmpty(ids)) {
if (StringUtils.hasText(orderBy)) { return new ArrayList<>();
example.setOrderByClause(orderBy); } else {
SysUserExample example = new SysUserExample();
if (StringUtils.hasText(orderBy)) {
example.setOrderByClause(orderBy);
}
example.createCriteria().andIdIn(ids);
return sysUserDAO.selectByExample(example);
} }
example.createCriteria().andIdIn(ids);
return sysUserDAO.selectByExample(example);
} }
@Override @Override