From 2f5e395632ed97b8aad1ba0d5c7d3ecff397f7fe Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Thu, 16 Sep 2021 10:32:46 +0800
Subject: [PATCH] 1.统计
---
src/main/java/org/springblade/modules/information/controller/InformationController.java | 20 +++++++++-----------
1 files changed, 9 insertions(+), 11 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 ce78b24..46ee616 100644
--- a/src/main/java/org/springblade/modules/information/controller/InformationController.java
+++ b/src/main/java/org/springblade/modules/information/controller/InformationController.java
@@ -186,8 +186,8 @@
informationService.save(information);
String formatStr = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(information.getEstablishtime());
//Integer id = information.getId();
- String s = "insert into sys_information(id,creditcode,enterprisename,representative,establishtime," +
- "registeredcapital,organizationcode,registrationnumber, enterprises, address," +
+ String s = "insert into sys_information(id,creditCode,enterpriseName,representative,establishTime," +
+ "registeredCapital,organizationCode,registrationNumber, enterprises, address," +
" business,region,registration,industry,departmentid,stats,jurisdiction,representativecell,contacts,contactscell) " +
"values(" + "'" + information.getId() + "'" + "," + "'" + information.getCreditcode() + "'" + "," + "'" + information.getEnterprisename() + "'" + "," + "'" + information.getRepresentative() + "'" + "," +
"'" + formatStr + "'" + "," + "'" + information.getRegisteredcapital() + "'" + "," + "'" + information.getOrganizationcode() + "'" + "," + "'" + information.getRegistrationnumber() + "'" + "," + "'" + information.getEnterprises() + "'" + "," + "'" +
@@ -222,13 +222,12 @@
format = new SimpleDateFormat("yyyy-MM-dd").format(information.getEstablishtime());
}
//内网同步
- String s1 = "update sys_information set creditcode = " + "'" + information.getCreditcode() + "'" +
- ",enterprisename = " + "'" + information.getEnterprisename() + "'" +
+ String s1 = "update sys_information set creditCode = " + "'" + information.getCreditcode() + "'" +
+ ",enterpriseName = " + "'" + information.getEnterprisename() + "'" +
",representative = " + "'" + information.getRepresentative() + "'" +
- ",establishtime = " + "'" + format + "'" +
- ",registeredcapital = " + "'" + information.getRegisteredcapital() + "'" +
- ",organizationcode = " + "'" + information.getOrganizationcode() + "'" +
- ",registrationnumber = " + "'" + information.getRegistrationnumber() + "'" +
+ ",establishTime = " + "'" + format + "'" +
+ ",registeredCapital = " + "'" + information.getRegisteredcapital() + "'" +
+ ",jurisdiction = " + "'" + information.getJurisdiction() + "'" +
",enterprises = " + "'" + information.getEnterprises() + "'" +
",address = " + "'" + information.getAddress() + "'" +
",business = " + "'" + information.getBusiness() + "'" +
@@ -237,7 +236,6 @@
",industry = " + "'" + information.getIndustry() + "'" +
",departmentid = " + "'" + information.getDepartmentid() + "'" +
",stats = " + "'" + information.getStats() + "'" +
- ",jurisdiction = " + "'" + information.getJurisdiction() + "'" +
",representativecell = " + "'" + information.getRepresentativecell() + "'" +
",contacts = " + "'" + information.getContacts() + "'" +
",contactscell = " + "'" + information.getContactscell() + "'" +
@@ -331,9 +329,9 @@
Integer a = Integer.valueOf(numj);
String numz = lists.get(i).get("numz").toString();
Integer b = Integer.valueOf(numz);
- Integer c = b - a;
+ //Integer c = b - a;
map.put("numj", a);
- map.put("nmuwj", c);
+ map.put("nmuwj", b);
list.add(map);
}
return R.data(list);
--
Gitblit v1.9.3