Commit 3c34fb02 authored by 王亚雷's avatar 王亚雷

话题通知

parent e979370f
...@@ -74,6 +74,9 @@ public class CommentService { ...@@ -74,6 +74,9 @@ public class CommentService {
} }
public Integer getCommentCountByThemeIds(List<String> themeIds) { public Integer getCommentCountByThemeIds(List<String> themeIds) {
if (CollectionUtils.isEmpty(themeIds)) {
return 0;
}
return commentMapper.selectCount((new LambdaQueryWrapper<CommentEntity>() return commentMapper.selectCount((new LambdaQueryWrapper<CommentEntity>()
.in(CommentEntity::getThemeId, themeIds)) .in(CommentEntity::getThemeId, themeIds))
.eq(CommentEntity::getDeleteTag, DeleteTagEnum.NOT_DELETED)); .eq(CommentEntity::getDeleteTag, DeleteTagEnum.NOT_DELETED));
......
...@@ -104,7 +104,7 @@ tmpfile: ...@@ -104,7 +104,7 @@ tmpfile:
wxcp: wxcp:
topicreport: topicreport:
agentId: 1000025 agentId: 1000025
corpId: IC6Hpbct4OrYzacDnzXqSRC17vrpNwDZ1HZvFef1QQc corpId: ww08675a3a48c9e8a2
logging.level.com.tanpu: debug logging.level.com.tanpu: debug
...@@ -131,6 +131,8 @@ tanpu: ...@@ -131,6 +131,8 @@ tanpu:
svc: https://testtamper.tanpuyun.com svc: https://testtamper.tanpuyun.com
fundpublic: fundpublic:
svc: https://testtamper.tanpuyun.com svc: https://testtamper.tanpuyun.com
wxcp:
svc: https://testtamper.tanpuyun.com
#打印SQL语句 #打印SQL语句
logging: logging:
...@@ -146,4 +148,4 @@ pagehelper: ...@@ -146,4 +148,4 @@ pagehelper:
msg: msg:
kefu: kefu:
telephone: 021-65681889 telephone: 021-65681889
\ No newline at end of file
package com.tanpu.community.service.quartz;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import javax.annotation.Resource;
import static org.junit.Assert.*;
@RunWith(SpringRunner.class)
@SpringBootTest
@ActiveProfiles("test")
@Slf4j
public class TopicReportServiceTest {
@Resource
private TopicReportService topicReportService;
@Test
public void reportTopicWeekday() {
topicReportService.reportTopicWeekday();
}
@Test
public void reportTopicSaturday() {
topicReportService.reportTopicSaturday();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment