From a3d9cd860ed721f7ca1be0907c28b9e2c3a64a9e Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Fri, 27 Aug 2021 17:07:47 +0800
Subject: [PATCH] 1.许可审批

---
 src/main/java/org/springblade/modules/information/controller/InformationController.java |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/information/controller/InformationController.java b/src/main/java/org/springblade/modules/information/controller/InformationController.java
index 4aeecaa..96104dd 100644
--- a/src/main/java/org/springblade/modules/information/controller/InformationController.java
+++ b/src/main/java/org/springblade/modules/information/controller/InformationController.java
@@ -207,7 +207,35 @@
 	@ApiOperationSupport(order = 5)
 	@ApiOperation(value = "修改", notes = "传入information")
 	public R update(@Valid @RequestBody Information information) throws Exception {
-		return R.status(informationService.updateById(information));
+		informationService.updateById(information);
+		String ip = "http://192.168.0.108";
+		String businessLicense = information.getBusinessLicense().substring(26, information.getBusinessLicense().length());
+		String licence = information.getLicence().substring(26, information.getLicence().length());
+		//内网同步
+		String s1 = "update sys_information set creditcode = " + "'" + information.getCreditcode() + "'" +
+			",enterprisename = " + "'" + information.getEnterprisename() + "'" +
+			",representative = " + "'" + information.getRepresentative() + "'" +
+			",establishtime = " + "'" + new SimpleDateFormat("yyyy-MM-dd").format(information.getEstablishtime()) + "'" +
+			",registeredcapital = " + "'" + information.getRegisteredcapital() + "'" +
+			",organizationcode = " + "'" + information.getOrganizationcode() + "'" +
+			",registrationnumber = " + "'" + information.getRegistrationnumber() + "'" +
+			",enterprises = " + "'" + information.getEnterprises() + "'" +
+			",address = " + "'" + information.getAddress() + "'" +
+			",business = " + "'" + information.getBusiness() + "'" +
+			",region = " + "'" + information.getRegion() + "'" +
+			",registration = " + "'" + information.getRegistration() + "'" +
+			",industry = " + "'" + information.getIndustry() + "'" +
+			",departmentid = " + "'" + information.getDepartmentid() + "'" +
+			",stats = " + "'" + information.getStats() + "'" +
+			",jurisdiction = " + "'" + information.getJurisdiction() + "'" +
+			",representativecell = " + "'" + information.getRepresentativecell() + "'" +
+			",contacts = " + "'" + information.getContacts() + "'" +
+			",contactscell = " + "'" + information.getContactscell() + "'" +
+			",business_License = " + "'" + ip + businessLicense + "'" +
+			",licence = " + "'" + ip + licence + "'" +
+			" " + "where id = " + "'" + information.getId() + "'";
+		FtpUtil.sqlFileUpload(s1);
+		return R.success("修改成功");
 	}
 
 	/**

--
Gitblit v1.9.3