资源格式查询bug修复
This commit is contained in:
parent
770220bd10
commit
61488b5969
|
@ -80,7 +80,7 @@ public class SysOssTextbookServiceImpl implements ISysOssTextbookService {
|
|||
wrapper.le("ot.status", 0)
|
||||
.eq(StringUtils.isNotEmpty(bo.getFileSuffix()), "ot.file_suffix", bo.getFileSuffix())
|
||||
.like(StringUtils.isNotEmpty(bo.getFileName()), "ot.file_name", bo.getFileName())
|
||||
.and(ObjectUtil.isNotNull(bo.getFormatSuffix()), w -> {
|
||||
.and(ObjectUtil.isNotNull(bo.getCatalogId()), w -> {
|
||||
List<SysCatalogTextbook> list = catalogService.selectList(new LambdaQueryWrapper<SysCatalogTextbook>()
|
||||
.select(SysCatalogTextbook::getCatalogId)
|
||||
.apply(DataBaseHelper.findInSet(bo.getCatalogId(), "ancestors")));
|
||||
|
@ -111,7 +111,7 @@ public class SysOssTextbookServiceImpl implements ISysOssTextbookService {
|
|||
.eq(ObjectUtil.isNotNull(bo.getStatus()), "ot.status", bo.getStatus())
|
||||
.eq(StringUtils.isNotEmpty(bo.getFileSuffix()), "ot.file_suffix", bo.getFileSuffix())
|
||||
.like(StringUtils.isNotEmpty(bo.getFileName()), "ot.file_name", bo.getFileName())
|
||||
.and(ObjectUtil.isNotNull(bo.getCatalogId()), w -> {
|
||||
.and(ObjectUtil.isNotNull(bo.getFormatSuffix()), w -> {
|
||||
Integer format = bo.getFormatSuffix();
|
||||
List<String> list = processFormatSuffixQuery(format);
|
||||
if (7 == format) {
|
||||
|
|
Loading…
Reference in New Issue