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();