Commit ce4db02b by 吴迪

修改精彩视频日期格式问题

parent edf13f96
...@@ -63,6 +63,8 @@ public class NewsMovieServiceImpl extends ServiceImpl<NewsMovieDao, NewsMovieEnt ...@@ -63,6 +63,8 @@ public class NewsMovieServiceImpl extends ServiceImpl<NewsMovieDao, NewsMovieEnt
newtopicEntityVo.setEditor(user.getUsername()); newtopicEntityVo.setEditor(user.getUsername());
if (StringUtils.isBlank(newtopicEntityVo.getShowtime())) { if (StringUtils.isBlank(newtopicEntityVo.getShowtime())) {
newtopicEntityVo.setShowtime(DateUtils.format(date, DateUtils.DATE_PATTERN)); newtopicEntityVo.setShowtime(DateUtils.format(date, DateUtils.DATE_PATTERN));
} else {
newtopicEntityVo.setShowtime(newtopicEntityVo.getShowtime().replaceAll("\\/","-"));
} }
newtopicEntityVo.setLasteditor(user.getUsername()); newtopicEntityVo.setLasteditor(user.getUsername());
if (StringUtils.isNotBlank(newtopicEntityVo.getPic())) { if (StringUtils.isNotBlank(newtopicEntityVo.getPic())) {
......
...@@ -60,8 +60,8 @@ dynamic: ...@@ -60,8 +60,8 @@ dynamic:
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
# url: jdbc:sqlserver://192.168.0.85:1433;DatabaseName=center_outer # url: jdbc:sqlserver://192.168.0.85:1433;DatabaseName=center_outer
url: jdbc:sqlserver://192.168.170.148:9006;DatabaseName=center_outer url: jdbc:sqlserver://192.168.170.148:9006;DatabaseName=center_outer
username: test2 username: wangtian
password: test2 password: wangtian
server: server:
port: 9091 port: 9091
# password: 123456 # password: 123456
...@@ -110,4 +110,4 @@ directory: ...@@ -110,4 +110,4 @@ directory:
# 网站路由前缀 # 网站路由前缀
ipStart: http://192.168.0.77 ipStart: http://192.168.0.77
\ No newline at end of file
spring.application.name=renren-fast
spring.cloud.nacos.config.server-addr=192.168.80.128:8848
#命名空间名称
spring.cloud.nacos.config.namespace=55bdbdd5-280b-4177-91ac-2c3f621f1c1d
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