试卷定义列表名称查询bug修改

This commit is contained in:
DU 2020-12-30 10:58:25 +08:00
parent 7dd24fd938
commit ae12063980

View File

@ -360,6 +360,7 @@ public class ExamService implements IExamService{
if (StringUtils.hasText(queryVO.getCreatorName())) {
SysUserExample sysUserExample = new SysUserExample();
sysUserExample.createCriteria().andNameLike(String.format("%%%s%%", queryVO.getCreatorName()));
sysUserExample.or().andNicknameLike(String.format("%%%s%%", queryVO.getCreatorName()));
List<Long> createrIdList = sysUserMapper.selectByExample(sysUserExample).stream()
.map(SysUser::getId).collect(Collectors.toList());
if (createrIdList.size() == 0) {