From 0061288daeb9db9ecd2c30f38260468dc40cca42 Mon Sep 17 00:00:00 2001 From: zouyx <1798599149@qq.com> Date: Wed, 16 Jul 2025 18:14:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E5=8A=A8=E5=90=8C=E6=AD=A5=E5=8D=95?= =?UTF-8?q?=E4=B8=AA=E4=BC=81=E4=B8=9A=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../code/controller/EnterpriseInformationController.java | 6 ++++++ .../zdxt/code/service/IEnterpriseInformationService.java | 2 ++ .../service/impl/EnterpriseInformationServiceImpl.java | 7 +++++++ 3 files changed, 15 insertions(+) diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/EnterpriseInformationController.java b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/EnterpriseInformationController.java index bd8f3ffe..be43adc5 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/EnterpriseInformationController.java +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/controller/EnterpriseInformationController.java @@ -263,4 +263,10 @@ public class EnterpriseInformationController extends BaseController model.addAttribute("jdList", iDictDataService.selectDictDataByType(searchType.getName())); return prefix + "/jd"; } + + @PostMapping("/addEnterprise") + @ResponseBody + public ZDResponse addEnterprise(String enterpriseNumber,String companyOrgType){ + return enterpriseInformationService.addEnterprise(enterpriseNumber,companyOrgType)>0?ZDResponse.success():ZDResponse.error("新增失败"); + } } diff --git a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/IEnterpriseInformationService.java b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/IEnterpriseInformationService.java index ff80ba7b..98248b5d 100644 --- a/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/IEnterpriseInformationService.java +++ b/lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/service/IEnterpriseInformationService.java @@ -133,4 +133,6 @@ public interface IEnterpriseInformationService List enterpriseInformationAllListToJD(SearchType searchType); List enterpriseInformationQYDetails(EnterpriseInformation enterpriseInformation); List enterpriseInformationJDDetails(EnterpriseInformation enterpriseInformation); + + int addEnterprise(String enterpriseNumber,String companyOrgType); } 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 f7062ca5..dcc03c0f 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 @@ -887,6 +887,13 @@ public class EnterpriseInformationServiceImpl implements IEnterpriseInformationS } } + @Override + public int addEnterprise(String enterpriseNumber, String companyOrgType) { + EnterpriseInformation enterpriseInformation =ssztJbxx110497Service.selectSsztJbxx110497ByCode(enterpriseNumber); + enterpriseInformation.setCompanyOrgType(companyOrgType); + return this.insertEnterpriseInformation(enterpriseInformation); + } + public String getUrlParams(String urlStr,String paramKey) throws IOException { URL url = new URL(urlStr); URLConnection connection = url.openConnection();