From b364d242e2b6e6d6037c9d4bee54a39d565ec1cf Mon Sep 17 00:00:00 2001 From: "zhenghaiyang@ele-cloud.com" Date: Sun, 23 Apr 2023 20:49:59 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=AE=E7=AE=B1=E8=A7=A3=E6=9E=90=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=A2=9E=E5=8A=A0=E5=BA=8F=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/dxhy/core/model/mailGather/MailGatherLogVo.java | 3 +++ .../service/mailGather/impl/MailGatherLogServiceImpl.java | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/dxhy-core/src/main/java/com/dxhy/core/model/mailGather/MailGatherLogVo.java b/dxhy-core/src/main/java/com/dxhy/core/model/mailGather/MailGatherLogVo.java index 5e8a9a96..a35a3b72 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/model/mailGather/MailGatherLogVo.java +++ b/dxhy-core/src/main/java/com/dxhy/core/model/mailGather/MailGatherLogVo.java @@ -2,6 +2,7 @@ package com.dxhy.core.model.mailGather; import com.dxhy.core.model.CommonDTO; +import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import lombok.EqualsAndHashCode; @@ -12,6 +13,7 @@ import java.util.Date; public class MailGatherLogVo extends CommonDTO { private String id; + public String xh; //主题 private String subject; private String fromAddress; @@ -24,6 +26,7 @@ public class MailGatherLogVo extends CommonDTO { private String ocrType; private String errorMsg; private String fileName; + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") private Date createTime; 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 12e63f4f..046f7d0c 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 @@ -6,7 +6,9 @@ import com.alibaba.fastjson.JSONObject; import com.dxhy.common.constant.DbConstant; import com.dxhy.common.datasource.config.DynamicContextHolder; import com.dxhy.common.util.UUIDUtils; +import com.dxhy.common.utils.Base64Encoding; import com.dxhy.core.dao.mailGather.MailGatherLogDao; +import com.dxhy.core.model.mailGather.EmailMaintainVo; import com.dxhy.core.model.mailGather.MailGatherLogVo; import com.dxhy.core.service.mailGather.MailGatherLogService; import com.github.pagehelper.PageHelper; @@ -53,6 +55,12 @@ public class MailGatherLogServiceImpl implements MailGatherLogService { int size = (int)pramsMap.get("size"); PageHelper.startPage(curr, size); List emailMaintainVos = mailGatherLogDao.queryAllByLimit(pramsMap); + if(emailMaintainVos !=null && emailMaintainVos.size() > 0) { + for (int i = 0; i < emailMaintainVos.size(); i++) { + MailGatherLogVo mailGatherLogVo = emailMaintainVos.get(i); + mailGatherLogVo.setXh(i + 1 + ""); + } + } PageInfo pageInfo = new PageInfo<>(emailMaintainVos); // 设置记录总数 json.put("total", pageInfo.getTotal());