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
4dccb4b9
Commit
4dccb4b9
authored
Aug 05, 2021
by
张辰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
帖子删除返回友好
parent
eeee44b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
ThemeQo.java
...c/main/java/com/tanpu/community/api/beans/qo/ThemeQo.java
+0
-2
ThemeManager.java
...c/main/java/com/tanpu/community/manager/ThemeManager.java
+1
-1
ThemeService.java
...c/main/java/com/tanpu/community/service/ThemeService.java
+6
-0
No files found.
community-api/src/main/java/com/tanpu/community/api/beans/qo/ThemeQo.java
View file @
4dccb4b9
...
...
@@ -56,8 +56,6 @@ public class ThemeQo implements Serializable {
@ApiModelProperty
(
value
=
"当前用户是否关注该作者"
)
public
boolean
follow
;
@ApiModelProperty
(
value
=
"认证机构"
)
private
String
authOrg
;
...
...
community-service/src/main/java/com/tanpu/community/manager/ThemeManager.java
View file @
4dccb4b9
...
...
@@ -447,7 +447,7 @@ public class ThemeManager {
// 查询正文
public
CommonResp
<
ThemeQo
>
getThemeDetail
(
String
themeId
,
String
userId
)
{
ThemeEntity
themeEntity
=
themeService
.
queryByThemeId
(
themeId
);
ThemeEntity
themeEntity
=
themeService
.
queryByThemeId
IgnoreDelete
(
themeId
);
if
(
themeEntity
==
null
)
{
throw
new
BizException
(
"找不到帖子id:"
+
themeId
);
}
...
...
community-service/src/main/java/com/tanpu/community/service/ThemeService.java
View file @
4dccb4b9
...
...
@@ -76,6 +76,12 @@ public class ThemeService {
.
eq
(
ThemeEntity:
:
getDeleteTag
,
DeleteTagEnum
.
NOT_DELETED
.
getCode
()));
}
//根据id返回主题详情(未删)
public
ThemeEntity
queryByThemeIdIgnoreDelete
(
String
themeId
)
{
return
themeMapper
.
selectOne
(
new
LambdaQueryWrapper
<
ThemeEntity
>()
.
eq
(
ThemeEntity:
:
getThemeId
,
themeId
));
}
//根据用户id查询主题list
public
List
<
ThemeEntity
>
queryThemesByUserIdCreateDesc
(
String
userId
,
String
lastId
,
Integer
pageSize
)
{
LambdaQueryWrapper
<
ThemeEntity
>
queryWrapper
=
new
LambdaQueryWrapper
<
ThemeEntity
>()
...
...
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