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
22bca504
Commit
22bca504
authored
Jan 10, 2025
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑字段 最后编辑字段 修改提交
parent
1ee93933
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
+16
-15
AnnounceController.java
.../office/modules/manage/controller/AnnounceController.java
+11
-14
AnnounceEntity.java
.../java/io/office/modules/manage/entity/AnnounceEntity.java
+4
-1
AnnounceServiceImpl.java
...fice/modules/manage/service/impl/AnnounceServiceImpl.java
+1
-0
No files found.
src/main/java/io/office/modules/manage/controller/AnnounceController.java
View file @
22bca504
package
io
.
office
.
modules
.
manage
.
controller
;
package
io
.
office
.
modules
.
manage
.
controller
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.common.annotation.SysLog
;
import
io.office.common.annotation.SysLog
;
import
io.office.
modules.manage.entity.GlossaryEntity
;
import
io.office.
common.utils.PageUtils
;
import
io.office.
modules.manage.entity.MedicalEntity
;
import
io.office.
common.utils.R
;
import
io.office.modules.manage.entity.
News
Entity
;
import
io.office.modules.manage.entity.
Announce
Entity
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.service.AnnounceService
;
import
io.office.modules.sys.controller.AbstractController
;
import
io.office.modules.sys.controller.AbstractController
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
io.office.modules.manage.entity.AnnounceEntity
;
import
java.util.Date
;
import
io.office.modules.manage.service.AnnounceService
;
import
java.util.List
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
...
@@ -89,7 +86,7 @@ public class AnnounceController extends AbstractController {
...
@@ -89,7 +86,7 @@ public class AnnounceController extends AbstractController {
@RequestMapping
(
"/update"
)
@RequestMapping
(
"/update"
)
@RequiresPermissions
(
"manage:announce:update"
)
@RequiresPermissions
(
"manage:announce:update"
)
public
R
update
(
@RequestBody
AnnounceEntity
announce
){
public
R
update
(
@RequestBody
AnnounceEntity
announce
){
announce
.
set
E
ditor
(
getUser
().
getUsername
());
announce
.
set
Laste
ditor
(
getUser
().
getUsername
());
announce
.
setUpdatedate
(
new
Date
());
announce
.
setUpdatedate
(
new
Date
());
announceService
.
updateById
(
announce
);
announceService
.
updateById
(
announce
);
return
R
.
ok
(
"修改成功!"
);
return
R
.
ok
(
"修改成功!"
);
...
...
src/main/java/io/office/modules/manage/entity/AnnounceEntity.java
View file @
22bca504
...
@@ -3,10 +3,10 @@ package io.office.modules.manage.entity;
...
@@ -3,10 +3,10 @@ package io.office.modules.manage.entity;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
import
java.util.Date
;
import
lombok.Data
;
/**
/**
* ${comments}
* ${comments}
...
@@ -77,4 +77,7 @@ public class AnnounceEntity implements Serializable {
...
@@ -77,4 +77,7 @@ public class AnnounceEntity implements Serializable {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
className
;
private
String
className
;
private
String
lasteditor
;
}
}
src/main/java/io/office/modules/manage/service/impl/AnnounceServiceImpl.java
View file @
22bca504
...
@@ -47,6 +47,7 @@ public class AnnounceServiceImpl extends ServiceImpl<AnnounceDao, AnnounceEntity
...
@@ -47,6 +47,7 @@ public class AnnounceServiceImpl extends ServiceImpl<AnnounceDao, AnnounceEntity
public
void
insertAnnounce
(
AnnounceEntity
announce
,
SysUserEntity
user
)
{
public
void
insertAnnounce
(
AnnounceEntity
announce
,
SysUserEntity
user
)
{
announce
.
setReleasedate
(
new
Date
());
announce
.
setReleasedate
(
new
Date
());
announce
.
setUpdatedate
(
new
Date
());
announce
.
setUpdatedate
(
new
Date
());
announce
.
setLasteditor
(
user
.
getUsername
());
announce
.
setEditor
(
user
.
getUsername
());
announce
.
setEditor
(
user
.
getUsername
());
announce
.
setStatus
(
0
);
announce
.
setStatus
(
0
);
this
.
baseMapper
.
insert
(
announce
);
this
.
baseMapper
.
insert
(
announce
);
...
...
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