同步教材添加用户名搜索
This commit is contained in:
parent
40c6e3b3cb
commit
761138a6b3
|
@ -93,11 +93,11 @@ public class SysOssTextbookServiceImpl implements ISysOssTextbookService {
|
|||
@Override
|
||||
public TableDataInfo<SysOssTextbookVo> queryAwaitPageList(SysOssTextbookBo bo, PageQuery pageQuery) {
|
||||
QueryWrapper<SysOssTextbook> wrapper = Wrappers.query();
|
||||
|
||||
wrapper.le("ot.status", 0)
|
||||
.eq("ot.del_flag", 0)
|
||||
.eq(StringUtils.isNotEmpty(bo.getFileSuffix()), "ot.file_suffix", bo.getFileSuffix())
|
||||
.like(StringUtils.isNotEmpty(bo.getFileName()), "ot.file_name", bo.getFileName())
|
||||
//.or().like(StringUtils.isNotEmpty(bo.getFileName()), "ot.file_name", bo.getFileName())
|
||||
.orderByDesc("ot.create_time");
|
||||
Page<SysOssTextbookVo> result = baseMapper.selectPageAwaitList(pageQuery.build(), wrapper);
|
||||
return TableDataInfo.build(result);
|
||||
|
@ -145,7 +145,7 @@ public class SysOssTextbookServiceImpl implements ISysOssTextbookService {
|
|||
Integer format = bo.getFormatSuffix();
|
||||
List<String> list = processFormatSuffixQuery(format);
|
||||
w.in(ArrayUtil.isEmpty(list), "ot.file_suffix", list);
|
||||
});
|
||||
}).orderByAsc("ot.create_time");
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
|
@ -158,6 +158,7 @@ public class SysOssTextbookServiceImpl implements ISysOssTextbookService {
|
|||
.eq(ObjectUtil.isNotNull(bo.getCreateBy()), "ot.create_by", bo.getCreateBy())
|
||||
.eq(ObjectUtil.isNotNull(bo.getOssType()), "ot.oss_type", bo.getOssType())
|
||||
.like(StringUtils.isNotEmpty(bo.getFileName()), "ot.file_name", bo.getFileName())
|
||||
.or().like(StringUtils.isNotEmpty(bo.getFileName()), "u.nick_name", bo.getFileName())
|
||||
.and(ObjectUtil.isNotNull(bo.getCatalogId()), w -> {
|
||||
List<SysCatalogTextbook> list = catalogService.selectList(new LambdaQueryWrapper<SysCatalogTextbook>()
|
||||
.select(SysCatalogTextbook::getCatalogId)
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
select ot.*, o.volume
|
||||
from sys_oss_textbook ot
|
||||
left join sys_oss o on o.oss_id = ot.oss_id
|
||||
left join sys_user u on u.user_id = ot.create_by
|
||||
${ew.getCustomSqlSegment}
|
||||
</select>
|
||||
|
||||
|
|
Loading…
Reference in New Issue