diff --git a/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/service/impl/EnterpriseInformationServiceImpl.java b/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/service/impl/EnterpriseInformationServiceImpl.java index 1104c3a9..cb1808d0 100644 --- a/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/service/impl/EnterpriseInformationServiceImpl.java +++ b/zdxt-modules/zdxt-enforcement-code/src/main/java/com/zdxt/enforcementcode/service/impl/EnterpriseInformationServiceImpl.java @@ -407,7 +407,8 @@ public class EnterpriseInformationServiceImpl implements IEnterpriseInformationS // 4. 仅在新增成功时生成二维码 if (!isUpdate && result > 0) { - generateQrCodeForNewEnterprise(enterpriseInformation); +// generateQrCodeForNewEnterprise(enterpriseInformation); + generateQrCode("zfjd", enterpriseInformation.getEnterpriseNumber(), "enterprise", "企业登记"); } return result; @@ -462,6 +463,7 @@ public class EnterpriseInformationServiceImpl implements IEnterpriseInformationS String qrContent = JSONObject.toJSONString(jsonMap); try { + // 生成二维码文件 String logoPath = ruoYiConfig.getFile().getQrCodeUrl(); String uploadPath = ruoYiConfig.getFile().getUploadPath(); @@ -476,6 +478,7 @@ public class EnterpriseInformationServiceImpl implements IEnterpriseInformationS qrCodeHistory.setId(uuid); qrCodeHistory.setGenerateTime(DateUtils.getNowDate()); qrCodeHistory.setQrCodeUrl(qrCodeUrl); + qrCodeHistory.setStatus(0L); qrCodeHistory.setEnterpriseNumber(enterpriseInformation.getEnterpriseNumber()); qrCodeHistory.setReasonsChange("企业登记"); qrCodeGenerateHistoryService.insertByBo(qrCodeHistory);