feat:修改专题活动service

special-20250331
wangxy 4 days ago
parent 48fb8ced83
commit 75785c8e7b

@ -2,8 +2,11 @@ package com.ruoyi.web.controller.home;
import cn.hutool.core.convert.Convert;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.github.pagehelper.page.PageMethod;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.domain.*;
@ -149,4 +152,27 @@ public class ColumnTreeController extends BaseController {
});
return R.ok(sysSpecialVos);
}
@ApiOperation("获取专题内容")
@GetMapping("/getSpecialList")
public R<PageInfo<SysSpecial>> getSpecialList(@RequestParam(required = false) String columnId,
@RequestParam(required = false) Integer pageNum,
@RequestParam(required = false ) Integer pageSize) {
PageMethod.startPage(pageNum,pageSize);
List<SysSpecial> specialList = specialService.lambdaQuery()
.select(SysSpecial::getSpecialId, SysSpecial::getSpecialTitle,
SysSpecial::getFileUrl, SysSpecial::getFileName,SysSpecial::getColumnId,
SysSpecial::getCreateTime,SysSpecial::getColumnName,SysSpecial::getCreateBy)
.eq(SysSpecial::getColumnId, columnId)
.eq(SysSpecial::getStatus, STATUS)
.orderByDesc(SysSpecial::getCreateTime)
.list();
return R.ok(PageInfo.of(specialList));
}
}

Loading…
Cancel
Save