From 724ddc63407a227acc29a37d2b21bdf64b52ef58 Mon Sep 17 00:00:00 2001 From: kylin L <452061493@qq.com> Date: Thu, 8 Aug 2024 09:39:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=81=E4=B8=9A=E6=96=B0=E7=94=9F=E6=88=90?= =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81=E5=90=8E=E5=85=B6=E4=BB=96=E4=B8=8E?= =?UTF-8?q?=E4=B9=8B=E5=85=B3=E8=81=94=E7=9A=84=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/EnterpriseInformationServiceImpl.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnterpriseInformationServiceImpl.java b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnterpriseInformationServiceImpl.java index dca06cf5..2e9714bf 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnterpriseInformationServiceImpl.java +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/impl/EnterpriseInformationServiceImpl.java @@ -156,7 +156,7 @@ public class EnterpriseInformationServiceImpl implements IEnterpriseInformationS Map jsonMap = new HashMap<>(); jsonMap.put("salt", salt); jsonMap.put("codeId", uuid); - jsonMap.put("type", "tmp"); + jsonMap.put("type", "zfjd"); String text = JSON.toJSONString(jsonMap); //这里设置自定义网站url String logoPath = qrCodeUrl; @@ -352,6 +352,12 @@ public class EnterpriseInformationServiceImpl implements IEnterpriseInformationS @Override public int insertQrCode(String num) { + // 先将与之关联的其他二维码都失效 + QrCodeGenerateHistory qrParams = new QrCodeGenerateHistory(); + qrParams.setEnterpriseNumber(num); + qrParams.setStatus(1); + iQrCodeGenerateHistoryService.updateQrCodeGenerateHistoryByNumber(qrParams); + // 通过 企业编码 获取该编码在数据库中的企业信息, 将salt拿出来做生成参数 EnterpriseInformation info = new EnterpriseInformation(); info.setEnterpriseNumber(num); @@ -363,7 +369,7 @@ public class EnterpriseInformationServiceImpl implements IEnterpriseInformationS Map jsonMap = new HashMap<>(); jsonMap.put("salt", enterpriseInformation.getSalt()); jsonMap.put("codeId", uuid); - jsonMap.put("type", "tmp"); + jsonMap.put("type", "zfjd"); String text = JSON.toJSONString(jsonMap); //这里设置自定义网站url String logoPath = qrCodeUrl;