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); diff --git a/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/biz/index.vue b/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/biz/index.vue index 1c80db24..5ada549e 100644 --- a/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/biz/index.vue +++ b/zdxt-web-client/zdxt-admin-plus-ui/src/views/efcode/biz/index.vue @@ -116,6 +116,22 @@ const syncConfigs = ref([ v2Table: 'enterprise_pub_qrcode', syncDirection: '双向', enabled: true + }, + { + configKey: 'sys_dept', + description: '部门表双向同步', + v1Table: 'sys_dept', + v2Table: 'sys_dept', + syncDirection: '双向', + enabled: true + }, + { + configKey: 'sys_user', + description: '用户表双向同步', + v1Table: 'sys_user', + v2Table: 'sys_user', + syncDirection: '双向', + enabled: true } ]); diff --git a/zdxt-web-client/zdxt-efcode-enforcement-app/src/api/enforcement/plan.js b/zdxt-web-client/zdxt-efcode-enforcement-app/src/api/enforcement/plan.js index c5db42f1..322c24d7 100644 --- a/zdxt-web-client/zdxt-efcode-enforcement-app/src/api/enforcement/plan.js +++ b/zdxt-web-client/zdxt-efcode-enforcement-app/src/api/enforcement/plan.js @@ -53,8 +53,8 @@ export const getManualMatchDays = (success, error) => _get(settingBaseUrl + "/ma const enterpriseSearchBaseUrl = "/enforcementcode/enterpriseSearch"; // 按企业名称联合检索(>=3字符) -export const searchUnionByEnterpriseName = (enterpriseName, success, error) => - _get(enterpriseSearchBaseUrl + "/searchUnionByEnterpriseName", { enterpriseName }, success, error); +export const searchUnionByEnterpriseName = (searchValue, success, error) => + _post("/app-enf/enterpriseInfo/queryListAndQrInfo", { searchValue }, success, error); // 根据企业信用代码查询联系人和联系电话 export const getEnterpriseContactInfo = (enterpriseNumber, success, error) => diff --git a/zdxt-web-client/zdxt-efcode-enforcement-app/src/components/enforcement/register/EnforcementInfoSection.vue b/zdxt-web-client/zdxt-efcode-enforcement-app/src/components/enforcement/register/EnforcementInfoSection.vue index d76ddc18..a96efed5 100644 --- a/zdxt-web-client/zdxt-efcode-enforcement-app/src/components/enforcement/register/EnforcementInfoSection.vue +++ b/zdxt-web-client/zdxt-efcode-enforcement-app/src/components/enforcement/register/EnforcementInfoSection.vue @@ -69,7 +69,7 @@