Commit 4340550e by 吴迪

【新增】修改展示时间

parent 19ba219d
......@@ -21,6 +21,8 @@ import java.util.Date;
public class DateUtils {
/** 时间格式(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) */
public final static String DATE_TIME_PATTERN = "yyyy-MM-dd HH:mm:ss";
......
package io.office.modules.manage.service.impl;
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.vo.request.NewsMovieEntityVo;
import io.office.modules.sys.entity.SysUserEntity;
......@@ -60,6 +61,7 @@ public class NewsMovieServiceImpl extends ServiceImpl<NewsMovieDao, NewsMovieEnt
newtopicEntityVo.setAuthor(user.getUsername());
newtopicEntityVo.setReleasedate(date);
newtopicEntityVo.setUpdatedate(date);
newtopicEntityVo.setShowtime(DateUtils.format(date,DateUtils.DATE_PATTERN_1));
newtopicEntityVo.setLasteditor(user.getUsername());
NewsMovieEntity newsMovieEntity = new NewsMovieEntity();
BeanUtils.copyProperties(newtopicEntityVo,newsMovieEntity);
......
......@@ -46,7 +46,8 @@
auditor,
status,
editor,
levels
levels,
updatedate
from news_movie
where 1=1
<if test="params.title !=null and params.title !=''">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment