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