目录排序优化,同步教材学校空间返回值优化
This commit is contained in:
parent
ba6fa6dc98
commit
40c6e3b3cb
|
@ -26,6 +26,7 @@ public interface SysOssTextbookMapper extends BaseMapperPlus<SysOssTextbook, Sys
|
|||
})
|
||||
Page<SysOssTextbookVo> selectPageList(@Param("page") Page<SysOssTextbook> page,
|
||||
@Param(Constants.WRAPPER) Wrapper<SysOssTextbook> queryWrapper);
|
||||
|
||||
Page<SysOssTextbookVo> selectPageList4School(@Param("page") Page<SysOssTextbook> page,
|
||||
@Param(Constants.WRAPPER) Wrapper<SysOssTextbook> queryWrapper);
|
||||
|
||||
|
|
|
@ -128,7 +128,10 @@ public class SysCatalogResourceServiceImpl implements ISysCatalogResourceService
|
|||
lqw.like(bo.getParentId() != null, SysCatalogResource::getAncestors, bo.getParentId());
|
||||
lqw.eq(bo.getType() != null, SysCatalogResource::getType, bo.getType());
|
||||
lqw.eq(SysCatalogResource::getDelFlag, 0);
|
||||
lqw.orderByAsc(SysCatalogResource::getAncestors);
|
||||
lqw.orderByAsc(SysCatalogResource::getParentId);
|
||||
lqw.orderByAsc(SysCatalogResource::getOrderNum);
|
||||
lqw.orderByAsc(SysCatalogResource::getCatalogId);
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,11 @@ public class SysCatalogTextbookServiceImpl implements ISysCatalogTextbookService
|
|||
lqw.like(bo.getParentId() != null, SysCatalogTextbook::getAncestors, bo.getParentId());
|
||||
lqw.le(bo.getType() != null, SysCatalogTextbook::getType, bo.getType());
|
||||
lqw.eq(SysCatalogTextbook::getDelFlag, 0);
|
||||
lqw.orderByAsc(SysCatalogTextbook::getAncestors);
|
||||
lqw.orderByAsc(SysCatalogTextbook::getParentId);
|
||||
lqw.orderByAsc(SysCatalogTextbook::getOrderNum);
|
||||
lqw.orderByAsc(SysCatalogTextbook::getCatalogId);
|
||||
//lqw.orderByAsc(SysCatalogTextbook::getOrderNum);
|
||||
return lqw;
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
${ew.getCustomSqlSegment}
|
||||
</select>
|
||||
|
||||
<select id="selectPageList4School">
|
||||
<select id="selectPageList4School" resultType="org.dromara.system.domain.vo.SysOssTextbookVo">
|
||||
select ot.*, o.volume
|
||||
from sys_oss_textbook ot
|
||||
left join sys_oss o on o.oss_id = ot.oss_id
|
||||
|
|
Loading…
Reference in New Issue