|
|
@ -20,6 +20,7 @@ package com.elink.esua.epdc.modules.comment.service.impl; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
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.utils.ConvertUtils; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.FieldConstant; |
|
|
@ -54,9 +55,6 @@ import java.util.Map; |
|
|
|
@Service |
|
|
|
public class EventCommentServiceImpl extends BaseServiceImpl<EventCommentDao, EventCommentEntity> implements EventCommentService { |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private EventCommentRedis eventCommentRedis; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private EpdcEventsService epdcEventsService; |
|
|
|
|
|
|
@ -139,6 +137,8 @@ public class EventCommentServiceImpl extends BaseServiceImpl<EventCommentDao, Ev |
|
|
|
formDTO.setEventId(issueEntity.getEventId()); |
|
|
|
// 表态数
|
|
|
|
long statementNum = baseDao.selectCountOfStatementNum(issueEntity.getEventId()); |
|
|
|
int pageIndex = (formDTO.getPageIndex() - NumConstant.ONE) * formDTO.getPageSize(); |
|
|
|
formDTO.setPageIndex(pageIndex); |
|
|
|
// 评论
|
|
|
|
List<EpdcEventsCommentsDTO> list = baseDao.selectListOfComments(formDTO); |
|
|
|
EventCommentsResultDTO data = new EventCommentsResultDTO(); |
|
|
|