Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
3c34fb02
Commit
3c34fb02
authored
Mar 06, 2022
by
王亚雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
话题通知
parent
e979370f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
2 deletions
+39
-2
CommentService.java
...main/java/com/tanpu/community/service/CommentService.java
+3
-0
application-test.yml
community-service/src/main/resources/application-test.yml
+4
-2
TopicReportServiceTest.java
...anpu/community/service/quartz/TopicReportServiceTest.java
+32
-0
No files found.
community-service/src/main/java/com/tanpu/community/service/CommentService.java
View file @
3c34fb02
...
...
@@ -74,6 +74,9 @@ public class CommentService {
}
public
Integer
getCommentCountByThemeIds
(
List
<
String
>
themeIds
)
{
if
(
CollectionUtils
.
isEmpty
(
themeIds
))
{
return
0
;
}
return
commentMapper
.
selectCount
((
new
LambdaQueryWrapper
<
CommentEntity
>()
.
in
(
CommentEntity:
:
getThemeId
,
themeIds
))
.
eq
(
CommentEntity:
:
getDeleteTag
,
DeleteTagEnum
.
NOT_DELETED
));
...
...
community-service/src/main/resources/application-test.yml
View file @
3c34fb02
...
...
@@ -104,7 +104,7 @@ tmpfile:
wxcp
:
topicreport
:
agentId
:
1000025
corpId
:
IC6Hpbct4OrYzacDnzXqSRC17vrpNwDZ1HZvFef1QQc
corpId
:
ww08675a3a48c9e8a2
logging.level.com.tanpu
:
debug
...
...
@@ -131,6 +131,8 @@ tanpu:
svc
:
https://testtamper.tanpuyun.com
fundpublic
:
svc
:
https://testtamper.tanpuyun.com
wxcp
:
svc
:
https://testtamper.tanpuyun.com
#打印SQL语句
logging
:
...
...
@@ -146,4 +148,4 @@ pagehelper:
msg
:
kefu
:
telephone
:
021-65681889
\ No newline at end of file
telephone
:
021-65681889
community-service/src/test/java/com/tanpu/community/service/quartz/TopicReportServiceTest.java
0 → 100644
View file @
3c34fb02
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
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment