拟稿日期时间显示提交

This commit is contained in:
yujh_java 2025-06-12 17:36:36 +08:00
parent 603e3b18dc
commit 81620168cb
3 changed files with 5 additions and 3 deletions

View File

@ -1020,7 +1020,7 @@ public class Report1Gener {
if (UtilString.isNotEmpty(val)) {
try {
Timestamp timestamp = UtilDate.parseTsFromDateTime(val);
val = UtilDate.yearFormat(timestamp) + "" + UtilDate.monthFormat(timestamp) + "" + UtilDate.dayFormat(timestamp) + "";
val = UtilDate.yearFormat(timestamp) + "" + Integer.parseInt(UtilDate.monthFormat(timestamp)) + "" + Integer.parseInt(UtilDate.dayFormat(timestamp)) + "";
} catch (Exception e) {
e.printStackTrace();
}

View File

@ -59,6 +59,7 @@ import java.net.HttpURLConnection;
import java.net.URL;
import java.nio.charset.StandardCharsets;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.List;
import java.util.*;
import java.util.regex.Matcher;
@ -2663,7 +2664,7 @@ public class OutputWordUtil {
if (UtilString.isNotEmpty(val)) {
try {
Timestamp timestamp = UtilDate.parseTsFromDateTime(val);
val = UtilDate.yearFormat(timestamp) + "" + Integer.parseInt(UtilDate.monthFormat(timestamp)) + "" + UtilDate.dayFormat(timestamp) + "";
val = UtilDate.yearFormat(timestamp) + "" + Integer.parseInt(UtilDate.monthFormat(timestamp)) + "" + Integer.parseInt(UtilDate.dayFormat(timestamp)) + "";
} catch (Exception e) {
//e.printStackTrace();
}
@ -2875,4 +2876,5 @@ public class OutputWordUtil {
return null;
}
}
}

View File

@ -660,7 +660,7 @@ public class Report1Gener {
if (UtilString.isNotEmpty(val)) {
try {
Timestamp timestamp = UtilDate.parseTsFromDateTime(val);
val = UtilDate.yearFormat(timestamp) + "" + Integer.parseInt(UtilDate.monthFormat(timestamp)) + "" + UtilDate.dayFormat(timestamp) + "";
val = UtilDate.yearFormat(timestamp) + "" + Integer.parseInt(UtilDate.monthFormat(timestamp)) + "" + Integer.parseInt(UtilDate.dayFormat(timestamp)) + "";
} catch (Exception e) {
e.printStackTrace();
}