Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1-office-web-sit
Commits
69ee1a6c
Commit
69ee1a6c
authored
Jun 07, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改】知识管理
parent
85bae1c9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
1 deletions
+34
-1
KnowledgeinfoController.java
...ce/modules/manage/controller/KnowledgeinfoController.java
+1
-1
KnowledgeinfoDao.java
...n/java/io/office/modules/manage/dao/KnowledgeinfoDao.java
+4
-0
KnowledgeinfoService.java
...o/office/modules/manage/service/KnowledgeinfoService.java
+4
-0
KnowledgeinfoServiceImpl.java
...modules/manage/service/impl/KnowledgeinfoServiceImpl.java
+7
-0
KnowledgeinfoDao.xml
src/main/resources/mapper/manage/KnowledgeinfoDao.xml
+18
-0
No files found.
src/main/java/io/office/modules/manage/controller/KnowledgeinfoController.java
View file @
69ee1a6c
...
@@ -58,7 +58,7 @@ public class KnowledgeinfoController extends AbstractController {
...
@@ -58,7 +58,7 @@ public class KnowledgeinfoController extends AbstractController {
@RequestMapping
(
"/info/{knowledgeinfoid}"
)
@RequestMapping
(
"/info/{knowledgeinfoid}"
)
// @RequiresPermissions("manage:knowledgeinfo:info")
// @RequiresPermissions("manage:knowledgeinfo:info")
public
R
info
(
@PathVariable
(
"knowledgeinfoid"
)
Integer
knowledgeinfoid
){
public
R
info
(
@PathVariable
(
"knowledgeinfoid"
)
Integer
knowledgeinfoid
){
KnowledgeinfoEntity
knowledgeinfo
=
knowledgeinfoService
.
get
ById
(
knowledgeinfoid
);
KnowledgeinfoEntity
knowledgeinfo
=
knowledgeinfoService
.
knowledgeinfo
ById
(
knowledgeinfoid
);
return
R
.
ok
().
put
(
"data"
,
knowledgeinfo
);
return
R
.
ok
().
put
(
"data"
,
knowledgeinfo
);
}
}
...
...
src/main/java/io/office/modules/manage/dao/KnowledgeinfoDao.java
View file @
69ee1a6c
...
@@ -10,6 +10,7 @@ import org.apache.ibatis.annotations.Mapper;
...
@@ -10,6 +10,7 @@ import org.apache.ibatis.annotations.Mapper;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* ${comments}
* ${comments}
...
@@ -22,4 +23,7 @@ import java.util.List;
...
@@ -22,4 +23,7 @@ import java.util.List;
public
interface
KnowledgeinfoDao
extends
BaseMapper
<
KnowledgeinfoEntity
>
{
public
interface
KnowledgeinfoDao
extends
BaseMapper
<
KnowledgeinfoEntity
>
{
List
<
KnowledgeinfoEntity
>
knowledgeinfoList
(
@Param
(
"newsParams"
)
KnowledgeCategoryVo
params
,
Page
page
);
List
<
KnowledgeinfoEntity
>
knowledgeinfoList
(
@Param
(
"newsParams"
)
KnowledgeCategoryVo
params
,
Page
page
);
KnowledgeinfoEntity
knowledgeinfoById
(
@Param
(
"id"
)
Integer
id
);
}
}
src/main/java/io/office/modules/manage/service/KnowledgeinfoService.java
View file @
69ee1a6c
...
@@ -7,6 +7,7 @@ import io.office.modules.manage.entity.KnowledgeinfoEntity;
...
@@ -7,6 +7,7 @@ import io.office.modules.manage.entity.KnowledgeinfoEntity;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.dto.KnowledgeCategoryVo
;
import
io.office.modules.manage.entity.dto.KnowledgeCategoryVo
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -22,5 +23,8 @@ public interface KnowledgeinfoService extends IService<KnowledgeinfoEntity> {
...
@@ -22,5 +23,8 @@ public interface KnowledgeinfoService extends IService<KnowledgeinfoEntity> {
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
);
Page
<
KnowledgeinfoEntity
>
knowledgeinfoList
(
KnowledgeCategoryVo
params
,
Page
page
);
Page
<
KnowledgeinfoEntity
>
knowledgeinfoList
(
KnowledgeCategoryVo
params
,
Page
page
);
KnowledgeinfoEntity
knowledgeinfoById
(
Integer
id
);
}
}
src/main/java/io/office/modules/manage/service/impl/KnowledgeinfoServiceImpl.java
View file @
69ee1a6c
...
@@ -44,4 +44,10 @@ public class KnowledgeinfoServiceImpl extends ServiceImpl<KnowledgeinfoDao, Know
...
@@ -44,4 +44,10 @@ public class KnowledgeinfoServiceImpl extends ServiceImpl<KnowledgeinfoDao, Know
return
page
;
return
page
;
}
}
@Override
public
KnowledgeinfoEntity
knowledgeinfoById
(
Integer
id
)
{
return
knowledgeinfoDao
.
knowledgeinfoById
(
id
);
}
}
}
\ No newline at end of file
src/main/resources/mapper/manage/KnowledgeinfoDao.xml
View file @
69ee1a6c
...
@@ -56,4 +56,21 @@
...
@@ -56,4 +56,21 @@
ORDER BY
ORDER BY
inputdate DESC
inputdate DESC
</select>
</select>
<select
id=
"knowledgeinfoById"
resultMap=
"knowledgeinfoMap"
>
SELECT
c.knowledgeCategoryID class1id,
c.description parentCategoryName,
b.knowledgeCategoryID class2id,
b.description CategoryName,
a.*
FROM
knowledgeInfo a
LEFT JOIN knowledgeCategory b ON a.knowledgeCategoryID = b.knowledgeCategoryID
LEFT JOIN knowledgeCategory c ON b.parentCategoryID = c.knowledgeCategoryID
WHERE knowledgeinfoid = #{id}
</select>
</mapper>
</mapper>
\ No newline at end of file
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