|
|
@ -42,10 +42,9 @@ public class TopicServiceImpl implements TopicService { |
|
|
|
@Override |
|
|
|
public TopicSummaryResultDTO topicSummary(TokenDto tokenDto) { |
|
|
|
TopicSummaryResultDTO result = new TopicSummaryResultDTO(); |
|
|
|
result.setDeadline(LocalDate.now().minusDays(NumConstant.ONE).toString().replace(TopicConstant.RAIL,TopicConstant.NULL_CHAR_STRING)); |
|
|
|
result.setDeadline(LocalDate.now().minusDays(NumConstant.ONE).toString().replace(TopicConstant.RAIL,TopicConstant.DOT)); |
|
|
|
String agencyId = this.getLoginUserDetails(tokenDto); |
|
|
|
List<TopicStatusResultDTO> topicStatus = topicDao.getTopicStatus(agencyId); |
|
|
|
result.setDeadline(LocalDate.now().minusDays(NumConstant.ONE).toString()); |
|
|
|
if (topicStatus.size() != NumConstant.ZERO){ |
|
|
|
topicStatus.forEach(topic -> { |
|
|
|
if (topic.getTopicStatus().equals(TopicConstant.DISCUSSING)){ |
|
|
|