|
|
@ -20,11 +20,14 @@ package com.elink.esua.epdc.modules.issue.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.Constant; |
|
|
|
import com.elink.esua.epdc.commons.tools.constant.FieldConstant; |
|
|
|
import com.elink.esua.epdc.commons.tools.exception.RenException; |
|
|
|
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.utils.Result; |
|
|
|
import com.elink.esua.epdc.constant.EventIssueItemState; |
|
|
|
import com.elink.esua.epdc.dto.events.EpdcEventsCommentsDTO; |
|
|
|
import com.elink.esua.epdc.dto.issue.*; |
|
|
|
import com.elink.esua.epdc.dto.issue.form.IssueWaitHandleSubmitFormDTO; |
|
|
|
import com.elink.esua.epdc.modules.events.service.EpdcEventsService; |
|
|
@ -170,8 +173,16 @@ public class IssueServiceImpl extends BaseServiceImpl<IssueDao, IssueEntity> imp |
|
|
|
return data; |
|
|
|
} |
|
|
|
|
|
|
|
public void aaa() { |
|
|
|
epdcEventsService.listOfEventsCommentSByEventId(""); |
|
|
|
@Override |
|
|
|
public PageData<EpdcEventsCommentsDTO> listOfComments(Map<String, Object> params) { |
|
|
|
if (null == params.get(FieldConstant.ID_HUMP) || "".equals(params.get(FieldConstant.ID_HUMP).toString())) { |
|
|
|
throw new RenException("获取评论信息失败,议题不存在"); |
|
|
|
} |
|
|
|
String issueId = params.get(FieldConstant.ID_HUMP).toString(); |
|
|
|
IssueEntity issueEntity = baseDao.selectById(issueId); |
|
|
|
IPage<EpdcEventsCommentsDTO> page = getPage(params); |
|
|
|
List<EpdcEventsCommentsDTO> list = epdcEventsService.listOfEventsCommentSByEventId(issueEntity.getEventId()); |
|
|
|
return new PageData<>(list, page.getTotal()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|