wanghc 3 rokov pred
rodič
commit
e0c72512c7

+ 4 - 4
ipfcst-console/src/main/java/com/jiayue/ipfcst/fileupload/service/E63UploadFileService.java

@@ -476,7 +476,7 @@ public class E63UploadFileService extends BaseUploadFileService {
       if (!qxzMap.isEmpty()) {
         String time = qxzMap.get("time");
         long timestamp = new Date().getTime();
-        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
+        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
         try{
           Date d = sf.parse(time);// 日期转换为时间戳
           timestamp = d.getTime();
@@ -608,7 +608,7 @@ public class E63UploadFileService extends BaseUploadFileService {
       if (!cftMap.isEmpty()) {
         String time = cftMap.get("time");
         long timestamp = new Date().getTime();
-        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
+        SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
         try{
           Date d = sf.parse(time);// 日期转换为时间戳
           timestamp = d.getTime();
@@ -947,7 +947,7 @@ public class E63UploadFileService extends BaseUploadFileService {
         if (!fjMap.isEmpty()) {
           String time = fjMap.get("time");
           long timestamp = new Date().getTime();
-          SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
+          SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
           try{
             Date d = sf.parse(time);// 日期转换为时间戳
             timestamp = d.getTime();
@@ -1138,7 +1138,7 @@ public class E63UploadFileService extends BaseUploadFileService {
         if (!nbqMap.isEmpty()) {
           String time = nbqMap.get("time");
           long timestamp = new Date().getTime();
-          SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd");
+          SimpleDateFormat sf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
           try{
             Date d = sf.parse(time);// 日期转换为时间戳
              timestamp = d.getTime();