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
ec9a8071
Commit
ec9a8071
authored
Aug 03, 2021
by
张辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改成debug日志
parent
40d76196
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
ThemeManager.java
...c/main/java/com/tanpu/community/manager/ThemeManager.java
+1
-1
ThemeService.java
...c/main/java/com/tanpu/community/service/ThemeService.java
+2
-2
logback.xml
community-service/src/main/resources/logback.xml
+1
-1
No files found.
community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
View file @
ec9a8071
...
@@ -405,7 +405,7 @@ public class ThemeManager {
...
@@ -405,7 +405,7 @@ public class ThemeManager {
List
<
ThemeEntity
>
themeEntities
=
Collections
.
emptyList
();
List
<
ThemeEntity
>
themeEntities
=
Collections
.
emptyList
();
switch
(
req
.
getRecordType
())
{
switch
(
req
.
getRecordType
())
{
case
1
:
//发布
case
1
:
//发布
themeEntities
=
themeService
.
queryThemesByUserId
(
req
.
getUserId
(),
req
.
getLastId
(),
req
.
getPageSize
());
themeEntities
=
themeService
.
queryThemesByUserId
CreateDesc
(
req
.
getUserId
(),
req
.
getLastId
(),
req
.
getPageSize
());
break
;
break
;
case
2
:
//回复
case
2
:
//回复
List
<
ThemeQo
>
commentThemeList
=
getCommentThemeQos
(
req
,
userId
);
List
<
ThemeQo
>
commentThemeList
=
getCommentThemeQos
(
req
,
userId
);
...
...
community-service/src/main/java/com/tanpu/community/service/ThemeService.java
View file @
ec9a8071
...
@@ -77,7 +77,7 @@ public class ThemeService {
...
@@ -77,7 +77,7 @@ public class ThemeService {
}
}
//根据用户id查询主题list
//根据用户id查询主题list
public
List
<
ThemeEntity
>
queryThemesByUserId
(
String
userId
,
String
lastId
,
Integer
pageSize
)
{
public
List
<
ThemeEntity
>
queryThemesByUserId
CreateDesc
(
String
userId
,
String
lastId
,
Integer
pageSize
)
{
LambdaQueryWrapper
<
ThemeEntity
>
queryWrapper
=
new
LambdaQueryWrapper
<
ThemeEntity
>()
LambdaQueryWrapper
<
ThemeEntity
>
queryWrapper
=
new
LambdaQueryWrapper
<
ThemeEntity
>()
.
eq
(
ThemeEntity:
:
getAuthorId
,
userId
)
.
eq
(
ThemeEntity:
:
getAuthorId
,
userId
)
.
eq
(
ThemeEntity:
:
getDeleteTag
,
DeleteTagEnum
.
NOT_DELETED
.
getCode
())
.
eq
(
ThemeEntity:
:
getDeleteTag
,
DeleteTagEnum
.
NOT_DELETED
.
getCode
())
...
@@ -88,7 +88,7 @@ public class ThemeService {
...
@@ -88,7 +88,7 @@ public class ThemeService {
queryWrapper
.
lt
(
ThemeEntity:
:
getCreateTime
,
lastEntity
.
getCreateTime
());
queryWrapper
.
lt
(
ThemeEntity:
:
getCreateTime
,
lastEntity
.
getCreateTime
());
}
}
if
(
pageSize
!=
null
)
{
if
(
pageSize
!=
null
)
{
queryWrapper
.
last
(
"limit "
+
pageSize
);
queryWrapper
.
last
(
"
order by create_time desc
limit "
+
pageSize
);
}
}
return
themeMapper
.
selectList
(
queryWrapper
);
return
themeMapper
.
selectList
(
queryWrapper
);
}
}
...
...
community-service/src/main/resources/logback.xml
View file @
ec9a8071
...
@@ -62,7 +62,7 @@
...
@@ -62,7 +62,7 @@
</filter>
</filter>
</appender>
</appender>
<root
level=
"
info
"
>
<root
level=
"
debug
"
>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"console"
/>
<appender-ref
ref=
"file"
/>
<appender-ref
ref=
"file"
/>
<appender-ref
ref=
"errorFile"
/>
<appender-ref
ref=
"errorFile"
/>
...
...
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