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
5f0db7bc
Commit
5f0db7bc
authored
Oct 28, 2021
by
rongkailun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存
parent
26abc8dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
+16
-1
TopicnewsServiceImpl.java
...ice/modules/manage/service/impl/TopicnewsServiceImpl.java
+16
-1
No files found.
src/main/java/io/office/modules/manage/service/impl/TopicnewsServiceImpl.java
View file @
5f0db7bc
...
...
@@ -6,9 +6,13 @@ import io.office.common.utils.R;
import
io.office.modules.manage.dao.TopicnewsDao
;
import
io.office.modules.manage.entity.NewsEntity
;
import
io.office.modules.manage.entity.TopicnewsEntity
;
import
io.office.modules.manage.service.NewsService
;
import
io.office.modules.manage.service.TopicnewsService
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.Date
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
...
@@ -28,9 +32,19 @@ public class TopicnewsServiceImpl extends ServiceImpl<TopicnewsDao, TopicnewsEnt
return
new
PageUtils
(
page
);
}
@Autowired
private
NewsService
newsService
;
@Override
public
R
insertHdbd
(
NewsEntity
news
,
SysUserEntity
user
)
{
return
null
;
news
.
setCclassid
(
35
);
newsService
.
insertNews
(
news
,
user
);
TopicnewsEntity
topicnewsEntity
=
new
TopicnewsEntity
();
topicnewsEntity
.
setClassid
(
428
);
topicnewsEntity
.
setNewsid
(
news
.
getId
());
topicnewsEntity
.
setNewslevels
(
news
.
getLevels
());
topicnewsEntity
.
setTime
(
new
Date
());
baseMapper
.
insert
(
topicnewsEntity
);
return
R
.
ok
(
"新增成功!"
);
}
}
\ 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