Commit c0a460b2 by 钟明宏

增加现实最后修改时间的功能

parent 1a6d0be3
......@@ -2,6 +2,7 @@ package cn.yunmaozj.controller;
import cn.yunmaozj.common.SystemFile;
import cn.yunmaozj.security.Developer;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -14,6 +15,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.*;
/**
......@@ -44,7 +46,9 @@ public class IndexController {
.append("\\index.html")
.append("\'").append(">").append(file.getName()).append("</a>");
if (isRole) {
sb.append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\'")
sb.append("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
.append(DateFormatUtils.format(file.lastModified(),"yyyy-MM-dd HH:mm:ss"))
.append("&nbsp;&nbsp;&nbsp;&nbsp;<a href=\'")
.append("/del/").append(file.getName()).append("'>").append("delete").append("</a>");
}
sb.append("</li>");
......
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 sign in to comment