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
4340550e
Commit
4340550e
authored
Jan 23, 2022
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】修改展示时间
parent
19ba219d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletions
+6
-1
DateUtils.java
src/main/java/io/office/common/utils/DateUtils.java
+2
-0
NewsMovieServiceImpl.java
...ice/modules/manage/service/impl/NewsMovieServiceImpl.java
+2
-0
NewsMovieDao.xml
src/main/resources/mapper/manage/NewsMovieDao.xml
+2
-1
No files found.
src/main/java/io/office/common/utils/DateUtils.java
View file @
4340550e
...
@@ -21,6 +21,8 @@ import java.util.Date;
...
@@ -21,6 +21,8 @@ import java.util.Date;
public
class
DateUtils
{
public
class
DateUtils
{
/** 时间格式(yyyy-MM-dd) */
/** 时间格式(yyyy-MM-dd) */
public
final
static
String
DATE_PATTERN
=
"yyyy-MM-dd"
;
public
final
static
String
DATE_PATTERN
=
"yyyy-MM-dd"
;
public
final
static
String
DATE_PATTERN_1
=
"yyyy/MM/dd"
;
/** 时间格式(yyyy-MM-dd HH:mm:ss) */
/** 时间格式(yyyy-MM-dd HH:mm:ss) */
public
final
static
String
DATE_TIME_PATTERN
=
"yyyy-MM-dd HH:mm:ss"
;
public
final
static
String
DATE_TIME_PATTERN
=
"yyyy-MM-dd HH:mm:ss"
;
...
...
src/main/java/io/office/modules/manage/service/impl/NewsMovieServiceImpl.java
View file @
4340550e
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
package
io
.
office
.
modules
.
manage
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
io.office.common.utils.DateUtils
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.entity.dto.NewsParams
;
import
io.office.modules.manage.vo.request.NewsMovieEntityVo
;
import
io.office.modules.manage.vo.request.NewsMovieEntityVo
;
import
io.office.modules.sys.entity.SysUserEntity
;
import
io.office.modules.sys.entity.SysUserEntity
;
...
@@ -60,6 +61,7 @@ public class NewsMovieServiceImpl extends ServiceImpl<NewsMovieDao, NewsMovieEnt
...
@@ -60,6 +61,7 @@ public class NewsMovieServiceImpl extends ServiceImpl<NewsMovieDao, NewsMovieEnt
newtopicEntityVo
.
setAuthor
(
user
.
getUsername
());
newtopicEntityVo
.
setAuthor
(
user
.
getUsername
());
newtopicEntityVo
.
setReleasedate
(
date
);
newtopicEntityVo
.
setReleasedate
(
date
);
newtopicEntityVo
.
setUpdatedate
(
date
);
newtopicEntityVo
.
setUpdatedate
(
date
);
newtopicEntityVo
.
setShowtime
(
DateUtils
.
format
(
date
,
DateUtils
.
DATE_PATTERN_1
));
newtopicEntityVo
.
setLasteditor
(
user
.
getUsername
());
newtopicEntityVo
.
setLasteditor
(
user
.
getUsername
());
NewsMovieEntity
newsMovieEntity
=
new
NewsMovieEntity
();
NewsMovieEntity
newsMovieEntity
=
new
NewsMovieEntity
();
BeanUtils
.
copyProperties
(
newtopicEntityVo
,
newsMovieEntity
);
BeanUtils
.
copyProperties
(
newtopicEntityVo
,
newsMovieEntity
);
...
...
src/main/resources/mapper/manage/NewsMovieDao.xml
View file @
4340550e
...
@@ -46,7 +46,8 @@
...
@@ -46,7 +46,8 @@
auditor,
auditor,
status,
status,
editor,
editor,
levels
levels,
updatedate
from news_movie
from news_movie
where 1=1
where 1=1
<if
test=
"params.title !=null and params.title !=''"
>
<if
test=
"params.title !=null and params.title !=''"
>
...
...
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