From 7ea75643ca8ccac5cb2663c49d4adb4cbe706095 Mon Sep 17 00:00:00 2001 From: chen <2710907404@qq.com> Date: Wed, 7 May 2025 16:29:58 +0800 Subject: [PATCH] =?UTF-8?q?20250507=20=E6=9B=B4=E6=96=B0=201.=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=8E=A8=E9=80=81=E6=97=B6=E6=97=B6=E9=97=B4=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E4=B8=8D=E5=8C=B9=E9=85=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/PushDataToLabsCareServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/digital/laboratory/platform/identifybook/service/impl/PushDataToLabsCareServiceImpl.java b/src/main/java/digital/laboratory/platform/identifybook/service/impl/PushDataToLabsCareServiceImpl.java index 4b8fa37..f09bfd4 100644 --- a/src/main/java/digital/laboratory/platform/identifybook/service/impl/PushDataToLabsCareServiceImpl.java +++ b/src/main/java/digital/laboratory/platform/identifybook/service/impl/PushDataToLabsCareServiceImpl.java @@ -237,7 +237,6 @@ public class PushDataToLabsCareServiceImpl implements PushDataToLabsCareService .eq(IdentifyBookApprove::getRelevanceBusinessId, entrustmentDTO.getId())); // 创建 SimpleDateFormat - SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日"); // 封装推送定性报告数据 JSONObject jsonObject = new JSONObject(); @@ -249,7 +248,7 @@ public class PushDataToLabsCareServiceImpl implements PushDataToLabsCareService jsonObject.set("jyyr2qm", entrustmentDTO.getAppraisalUserName()); // 检测人 jsonObject.set("jyy1zc", NULL_PLACEHOLDER); // 检验人1专业技术资格或职称 jsonObject.set("jyy2zc", NULL_PLACEHOLDER); // 检验人2专业技术资格或职称 - jsonObject.set("qfrq", sdf.format(LocalDate.now())); + jsonObject.set("qfrq", LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日"))); jsonObject.set("qrcode", NULL_PLACEHOLDER); // 二维码地址 jsonObject.set("sjr1List", CollUtil.newArrayList(entrustInfo.getDeliver1Name(), entrustInfo.getDeliver2Name())); // 送检人 jsonObject.set("slrq", entrustInfo.getAcceptDate().format(DateTimeFormatter.ofPattern("yyyy年MM月dd日")));