From d8626e7445a7a9d9cf08aa51a5dc864b8482721e Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Thu, 02 Dec 2021 16:41:16 +0800
Subject: [PATCH] 1.附件

---
 src/main/java/org/springblade/modules/recordk/controller/RecordkController.java |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/springblade/modules/recordk/controller/RecordkController.java b/src/main/java/org/springblade/modules/recordk/controller/RecordkController.java
index 83f1fce..da1b77a 100644
--- a/src/main/java/org/springblade/modules/recordk/controller/RecordkController.java
+++ b/src/main/java/org/springblade/modules/recordk/controller/RecordkController.java
@@ -107,9 +107,9 @@
 		recordkService.save(recordk);
 		String offtime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(recordk.getOfficetime());
 		String pertime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(recordk.getPermitime());
-		String s = "insert into sys_record(id,creditCode,enterpriseName,representative," +
+		String s = "insert into sys_recordk(id,creditCode,enterpriseName,representative," +
 			"registeredCapital,organizationCode,registrationNumber,identificationNumber,enterprises," +
-			"address,business,region,registration,industry,type,permitime,deptid,ptype,representativecell,contacts,contactscell,perid,offices,officetime,cardid)" +
+			"address,business,region,registration,industry,type,permitime,deptid,ptype,representativecell,contacts,contactscell,perid,offices,officetime,cardid,overtime)" +
 			"values(" + "'" + recordk.getId() + "'" + "," + "'" + recordk.getCreditcode() + "'" + "," + "'" + recordk.getEnterprisename() + "'" + "," + "'"
 			+ recordk.getRepresentative() + "'" + "," +"'" + recordk.getRegisteredcapital() + "'" + "," + "'"
 			+ recordk.getOrganizationcode() + "'" + "," + "'" + recordk.getRegistrationnumber() + "'" + "," +
@@ -117,7 +117,7 @@
 			recordk.getAddress() + "'" + "," + "'" + recordk.getBusiness() + "'" + "," + "'" +
 			recordk.getRegion() + "'" + "," + "'" + recordk.getRegistration() + "'" + "," + "'" + recordk.getIndustry() + "'" + "," + "'" + recordk.getType() + "'" + "," + "'" + pertime + "'" + "," + "'" + recordk.getDeptid() + "'" + "," + "'" + recordk.getPtype() + "'" + "," +
 			"'" + recordk.getRepresentativecell() + "'" + "," + "'" + recordk.getContacts() + "'" + "," + "'" + recordk.getContactscell() + "'" + "," +
-			"'" + recordk.getPerid() + "'" + "," + "'" + recordk.getOffices() + "'" + "," + "'" + offtime + "'"+ "," + "'" + recordk.getCardid() + "'"+")";
+			"'" + recordk.getPerid() + "'" + "," + "'" + recordk.getOffices() + "'" + "," + "'" + offtime + "'"+ "," + "'" + recordk.getCardid() + "'"+"," + "'" + new SimpleDateFormat("yyyy-MM-dd").format(recordk.getOvertime()) + "'"+")";
 		FtpUtil.sqlFileUpload(s);
 		return R.success("成功");
 	}
@@ -150,6 +150,15 @@
 	@ApiOperationSupport(order = 5)
 	@ApiOperation(value = "修改", notes = "传入recordk")
 	public R update(@Valid @RequestBody Recordk recordk) {
+		String s1 = "update sys_recordk set type = " + "'" + recordk.getType() + "'" +
+			",papprove = " + "'" + recordk.getPapprove() + "'"+
+			",xapprove = " + "'" + recordk.getXapprove() + "'"+
+			",sapprove = " + "'" + recordk.getSapprove() + "'"+
+			",popinion = " + "'" + recordk.getPopinion() + "'"+
+			",sopinion = " + "'" + recordk.getSopinion() + "'"+
+			",xopinion = " + "'" + recordk.getXopinion() + "'"+
+			" " +"where id = " + "'" + recordk.getId() + "'";
+		FtpUtil.sqlFileUpload(s1);
 		return R.status(recordkService.updateById(recordk));
 	}
 

--
Gitblit v1.9.3