Commit 85dfd149 authored by 陈炎's avatar 陈炎

🎨 红旗活动数据接口

parent 46f79797
......@@ -42,7 +42,7 @@ public class FawOpenService {
HongqiLiveIncentiveQuarterMapper hongqiLiveIncentiveQuarterMapper;
@Resource
DwdDouyinAuthorInfoMapper douyinAuthorInfoMapper;
DwdDouyinAuthorInfoMapper dwdDouyinAuthorInfoMapper;
static String monthly = "monthly";
......@@ -105,14 +105,14 @@ public class FawOpenService {
public BasePageVO<HongqiActivityAwemeVO> douyinActivityAwemes(FawActivityDTO dto) {
PageHelper.orderBy(" publish_time DESC ");
IPage<HongqiActivityAwemeVO> page = new Page<>(dto.getPageNum(), dto.getPageSize());
IPage<HongqiActivityAwemeVO> awemePage = douyinAuthorInfoMapper.douyinActivityAwemes(page, dto);
IPage<HongqiActivityAwemeVO> awemePage = dwdDouyinAuthorInfoMapper.douyinActivityAwemes(page, dto);
return BasePageVO.restPage(dto.getPageNum(), (int) awemePage.getSize(), (int) awemePage.getTotal(), (int) awemePage.getPages(), awemePage.getRecords());
}
public BasePageVO<HongqiActivityLiveVO> douyinActivityLives(FawActivityDTO dto) {
PageHelper.orderBy(" publish_time DESC ");
IPage<HongqiActivityLiveVO> page = new Page<>(dto.getPageNum(), dto.getPageSize());
IPage<HongqiActivityLiveVO> livePage = douyinAuthorInfoMapper.douyinActivityLives(page, dto);
IPage<HongqiActivityLiveVO> livePage = dwdDouyinAuthorInfoMapper.douyinActivityLives(page, dto);
return BasePageVO.restPage(dto.getPageNum(), (int) livePage.getSize(), (int) livePage.getTotal(), (int) livePage.getPages(), livePage.getRecords());
}
......@@ -120,14 +120,14 @@ public class FawOpenService {
public BasePageVO<HongqiActivityAwemeVO> kuaishouActivityAwemes(FawActivityDTO dto) {
PageHelper.orderBy(" publish_time DESC ");
IPage<HongqiActivityAwemeVO> page = new Page<>(dto.getPageNum(), dto.getPageSize());
IPage<HongqiActivityAwemeVO> awemePage = douyinAuthorInfoMapper.kuaishouActivityAwemes(page, dto);
IPage<HongqiActivityAwemeVO> awemePage = dwdDouyinAuthorInfoMapper.kuaishouActivityAwemes(page, dto);
return BasePageVO.restPage(dto.getPageNum(), (int) awemePage.getSize(), (int) awemePage.getTotal(), (int) awemePage.getPages(), awemePage.getRecords());
}
public BasePageVO<HongqiActivityLiveVO> kuaishouActivityLives(FawActivityDTO dto) {
PageHelper.orderBy(" publish_time DESC ");
IPage<HongqiActivityLiveVO> page = new Page<>(dto.getPageNum(), dto.getPageSize());
IPage<HongqiActivityLiveVO> livePage = douyinAuthorInfoMapper.kuaishouActivityLives(page, dto);
IPage<HongqiActivityLiveVO> livePage = dwdDouyinAuthorInfoMapper.kuaishouActivityLives(page, dto);
return BasePageVO.restPage(dto.getPageNum(), (int) livePage.getSize(), (int) livePage.getTotal(), (int) livePage.getPages(), livePage.getRecords());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment