This commit is contained in:
parent
4eefdb279d
commit
0cff3ff8bd
|
@ -105,12 +105,12 @@ public class SysOssTextbookController extends BaseController {
|
|||
}
|
||||
|
||||
/**
|
||||
* 审核
|
||||
* 复制
|
||||
*
|
||||
* @param bo 主键串
|
||||
*/
|
||||
@SaCheckPermission("file:textbook:copy")
|
||||
@Log(title = "【审核同步教材】", businessType = BusinessType.UPDATE)
|
||||
@Log(title = "【复制同步教材】", businessType = BusinessType.UPDATE)
|
||||
@PutMapping("/copy")
|
||||
public R<Void> copy(@RequestBody SysOssTextbookBo bo) {
|
||||
return toAjax(sysOssTextbookService.copyByBo(bo));
|
||||
|
|
|
@ -25,6 +25,8 @@ public class SysOssTextbookVo implements Serializable {
|
|||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
private Long id;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -84,10 +84,10 @@ public class SysOssTextbookServiceImpl implements ISysOssTextbookService {
|
|||
wrapper.eq(ObjectUtil.isNotNull(bo.getType()), "ot.type", bo.getType())
|
||||
.eq(ObjectUtil.isNotNull(bo.getStatus()), "ot.status", bo.getStatus())
|
||||
.and(ObjectUtil.isNotNull(bo.getCatalogId()), w -> {
|
||||
List<SysCatalogTextbook> deptList = catalogService.selectList(new LambdaQueryWrapper<SysCatalogTextbook>()
|
||||
List<SysCatalogTextbook> list = catalogService.selectList(new LambdaQueryWrapper<SysCatalogTextbook>()
|
||||
.select(SysCatalogTextbook::getCatalogId)
|
||||
.apply(DataBaseHelper.findInSet(bo.getCatalogId(), "ancestors")));
|
||||
List<Long> ids = StreamUtils.toList(deptList, SysCatalogTextbook::getCatalogId);
|
||||
List<Long> ids = StreamUtils.toList(list, SysCatalogTextbook::getCatalogId);
|
||||
ids.add(bo.getCatalogId());
|
||||
w.in("ot.catalog_id", ids);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue