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
3dd003b2
Commit
3dd003b2
authored
Jan 26, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】修改文件
parent
fc6d07d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletions
+9
-1
NewsMovieController.java
...office/modules/manage/controller/NewsMovieController.java
+5
-0
NewsMovieEntity.java
...java/io/office/modules/manage/entity/NewsMovieEntity.java
+3
-0
application.yml
src/main/resources/application.yml
+1
-1
No files found.
src/main/java/io/office/modules/manage/controller/NewsMovieController.java
View file @
3dd003b2
...
...
@@ -15,6 +15,7 @@ import io.office.modules.manage.vo.request.NewtopicEntityVo;
import
io.office.modules.sys.controller.AbstractController
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
io.swagger.models.auth.In
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -94,6 +95,10 @@ public class NewsMovieController extends AbstractController {
newsMovieEntity
.
setLasteditor
(
user
.
getUsername
());
QueryWrapper
<
NewsMovieEntity
>
newsMovieEntityQueryWrapper
=
new
QueryWrapper
<>();
newsMovieEntityQueryWrapper
.
eq
(
"id"
,
newsMovieEntity
.
getId
());
if
(
StringUtils
.
isNotBlank
(
newsMovieEntity
.
getPic
()))
{
newsMovieEntity
.
setLittlepic
(
newsMovieEntity
.
getPic
());
newsMovieEntity
.
setBigpic
(
newsMovieEntity
.
getPic
());
}
newsMovieService
.
update
(
newsMovieEntity
,
newsMovieEntityQueryWrapper
);
return
R
.
ok
();
}
...
...
src/main/java/io/office/modules/manage/entity/NewsMovieEntity.java
View file @
3dd003b2
...
...
@@ -123,4 +123,7 @@ public class NewsMovieEntity implements Serializable {
*/
private
String
lasteditor
;
@TableField
(
exist
=
false
)
private
String
pic
;
}
src/main/resources/application.yml
View file @
3dd003b2
...
...
@@ -14,7 +14,7 @@ spring:
name
:
GS1OfficeWebSit
# 环境 dev|test|prod
profiles
:
active
:
dev
active
:
test
# jackson时间格式化
jackson
:
time-zone
:
GMT+8
...
...
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