| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.dto.IdDto; |
| | |
| | | @ApiOperation(value = "首页模块--公告活动",response = TNotice.class) |
| | | @GetMapping(value = "/getNoticeList") |
| | | public R<List<TNotice>> getNoticeList() { |
| | | List<TNotice> tNoticeList = tNoticeService.list(); |
| | | List<TNotice> tNoticeList = tNoticeService.list(new LambdaQueryWrapper<TNotice>().orderByDesc(TNotice::getSortBy)); |
| | | return R.ok(tNoticeList); |
| | | } |
| | | |