|
|
@ -2,6 +2,7 @@ package com.elink.esua.epdc.modules.topic.service.impl; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.NumConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.page.PageData; |
|
|
|
import com.elink.esua.epdc.commons.tools.security.user.SecurityUser; |
|
|
|
import com.elink.esua.epdc.commons.tools.security.user.UserDetail; |
|
|
@ -76,6 +77,8 @@ public class TopicAnalysisServiceImpl extends BaseServiceImpl<TopicAnalysisDao, |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public Result getHotTopicList(HotTopicFormDTO hotTopicFormDTO){ |
|
|
|
int pageIndex = (hotTopicFormDTO.getPageIndex() - NumConstant.ONE) * hotTopicFormDTO.getPageSize(); |
|
|
|
hotTopicFormDTO.setPageIndex(pageIndex); |
|
|
|
hotTopicFormDTO.setDeptIdList(SecurityUser.getUser().getDeptIdList()); |
|
|
|
List<HotTopicResultDTO> list = baseDao.selectHotTopicList(hotTopicFormDTO); |
|
|
|
return new Result().ok(list); |
|
|
@ -89,6 +92,8 @@ public class TopicAnalysisServiceImpl extends BaseServiceImpl<TopicAnalysisDao, |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public Result getNewTopicList(NewHotTopicFormDTO newHotTopicFormDTO){ |
|
|
|
int pageIndex = (newHotTopicFormDTO.getPageIndex() - NumConstant.ONE) * newHotTopicFormDTO.getPageSize(); |
|
|
|
newHotTopicFormDTO.setPageIndex(pageIndex); |
|
|
|
newHotTopicFormDTO.setDeptIdList(SecurityUser.getUser().getDeptIdList()); |
|
|
|
List<NewHotTopicResultDTO> list = baseDao.selectNewHotTopicList(newHotTopicFormDTO); |
|
|
|
return new Result().ok(list); |
|
|
|