|
@ -43,6 +43,7 @@ import com.elink.esua.epdc.dto.group.UserGroupDTO; |
|
|
import com.elink.esua.epdc.dto.group.result.GroupUserListResultDTO; |
|
|
import com.elink.esua.epdc.dto.group.result.GroupUserListResultDTO; |
|
|
import com.elink.esua.epdc.dto.group.result.TopicAuditRecordResultDTO; |
|
|
import com.elink.esua.epdc.dto.group.result.TopicAuditRecordResultDTO; |
|
|
import com.elink.esua.epdc.dto.issue.IssueDTO; |
|
|
import com.elink.esua.epdc.dto.issue.IssueDTO; |
|
|
|
|
|
import com.elink.esua.epdc.dto.topic.GroupTopicUserReadDTO; |
|
|
import com.elink.esua.epdc.dto.topic.TopicDTO; |
|
|
import com.elink.esua.epdc.dto.topic.TopicDTO; |
|
|
import com.elink.esua.epdc.dto.topic.TopicDetailDTO; |
|
|
import com.elink.esua.epdc.dto.topic.TopicDetailDTO; |
|
|
import com.elink.esua.epdc.dto.topic.form.TopicListFormDTO; |
|
|
import com.elink.esua.epdc.dto.topic.form.TopicListFormDTO; |
|
@ -275,7 +276,14 @@ public class TopicServiceImpl extends BaseServiceImpl<TopicDao, TopicEntity> imp |
|
|
formDto.setPageIndex(pageIndex); |
|
|
formDto.setPageIndex(pageIndex); |
|
|
// 查询半年内的数据
|
|
|
// 查询半年内的数据
|
|
|
formDto.setSomeMonthsAgo(DateUtils.addDateMonths(new Date(), -6)); |
|
|
formDto.setSomeMonthsAgo(DateUtils.addDateMonths(new Date(), -6)); |
|
|
return baseDao.selectListOfTopic(formDto); |
|
|
List<TopicListResultDTO> resultTopics = baseDao.selectListOfTopic(formDto); |
|
|
|
|
|
// 更新用户未读标识为已读
|
|
|
|
|
|
GroupTopicUserReadDTO readDto = new GroupTopicUserReadDTO(); |
|
|
|
|
|
readDto.setGroupId(formDto.getGroupId()); |
|
|
|
|
|
readDto.setUserId(formDto.getCurrentUserId()); |
|
|
|
|
|
readDto.setReadFlag(NumConstant.ONE_STR); |
|
|
|
|
|
groupTopicUserReadService.modifyTopicReadFlag(readDto); |
|
|
|
|
|
return resultTopics; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|