Browse Source

修改bug

dev
liuchuang 6 years ago
parent
commit
f0b722462d
  1. 6
      esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/comment/service/impl/EventCommentServiceImpl.java

6
esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/comment/service/impl/EventCommentServiceImpl.java

@ -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();

Loading…
Cancel
Save