From 64f26258e8808970ee0a2706024e86115b6fdb8a Mon Sep 17 00:00:00 2001 From: "zhenghaiyang@ele-cloud.com" Date: Thu, 27 Apr 2023 16:38:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=A3=E6=9E=90=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/mailGather/impl/MailGatherLogServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dxhy-core/src/main/java/com/dxhy/core/service/mailGather/impl/MailGatherLogServiceImpl.java b/dxhy-core/src/main/java/com/dxhy/core/service/mailGather/impl/MailGatherLogServiceImpl.java index 579f077d..1490c3c4 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/service/mailGather/impl/MailGatherLogServiceImpl.java +++ b/dxhy-core/src/main/java/com/dxhy/core/service/mailGather/impl/MailGatherLogServiceImpl.java @@ -59,7 +59,7 @@ public class MailGatherLogServiceImpl implements MailGatherLogService { if(emailMaintainVos !=null && emailMaintainVos.size() > 0) { for (int i = 0; i < emailMaintainVos.size(); i++) { MailGatherLogVo mailGatherLogVo = emailMaintainVos.get(i); - mailGatherLogVo.setCjsj(DateUtils.dateToStr(mailGatherLogVo.getCreateTime())); + mailGatherLogVo.setCjsj(DateUtils.dateToStrLong(mailGatherLogVo.getCreateTime())); mailGatherLogVo.setXh(i + 1 + ""); } } @@ -75,6 +75,11 @@ public class MailGatherLogServiceImpl implements MailGatherLogService { return jsonString; } + public static void main(String[] args) { + String s = DateUtils.dateToStrLong(new Date()); + System.out.println(); + } + /** * 新增数据 *