From 28dce68d3c42b204e468625dab64a6c3fff62c5b Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Fri, 25 Feb 2022 18:56:45 +0800
Subject: [PATCH] 问题修复

---
 src/main/java/org/springblade/modules/zc/controller/ZcController.java |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/springblade/modules/zc/controller/ZcController.java b/src/main/java/org/springblade/modules/zc/controller/ZcController.java
index a6b84d6..3a1937d 100644
--- a/src/main/java/org/springblade/modules/zc/controller/ZcController.java
+++ b/src/main/java/org/springblade/modules/zc/controller/ZcController.java
@@ -216,21 +216,23 @@
 		user.setRealName(zc.getSname());
 		user.setSex(Integer.valueOf(zc.getSex()));
 		user.setPhone(zc.getPhone());
-		user.setDeptId(zc.getDeptid());
+		//user.setDeptId(zc.getDeptid());
 		user.setRoleId(zc.getParentId());
 		user.setWorkaddress(zc.getWorkaddress());
 		user.setWorkjurisdiction(zc.getWorkjurisdiction());
-		user.setJurisdiction(zc.getJurisdiction());
 		user.setExamination_type("0");
 		user.setExamination_mx("正常");
 		user.setCardid(zc.getCardid());
-		if (zc.getSignal() != null) {
-			user.setSignal(zc.getSignal());
+		if (zc.getSignals() != "") {
+			user.setSignals(zc.getSignals());
 		}
 		user.setStype("0");
-		user.setAddress(zc.getAddress());
+		if (zc.getAddress()!=""){
+			user.setAddress(zc.getAddress());
+			user.setJurisdiction(zc.getJurisdiction());
+		}
 		iUserService.saveOrUpdate(user);
-		String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,deptid,parent_id,jurisdiction,cardid,address)" +
+		String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,parent_id,jurisdiction,cardid,address)" +
 			"values(" + "'" + zc.getId() + "'" +
 			"," + "'" + zc.getUsername() + "'" +
 			"," + "'" + zc.getPassword() + "'" +
@@ -238,13 +240,26 @@
 			"," + "'" + zc.getSex() + "'" +
 			"," + "'" + zc.getPhone() + "'" +
 			"," + "'" + zc.getZctime() + "'" +
-			"," + "'" + zc.getDeptid() + "'" +
 			"," + "'" + zc.getParentId() + "'" +
 			"," + "'" + zc.getJurisdiction() + "'" +
 			"," + "'" + zc.getCardid() + "'" +
 			"," + "'" + zc.getAddress() + "'"
 			+ ")";
-		FtpUtil.sqlFileUpload(s);
+//		String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,deptid,parent_id,jurisdiction,cardid,address)" +
+//			"values(" + "'" + zc.getId() + "'" +
+//			"," + "'" + zc.getUsername() + "'" +
+//			"," + "'" + zc.getPassword() + "'" +
+//			"," + "'" + zc.getSname() + "'" +
+//			"," + "'" + zc.getSex() + "'" +
+//			"," + "'" + zc.getPhone() + "'" +
+//			"," + "'" + zc.getZctime() + "'" +
+//			"," + "'" + zc.getDeptid() + "'" +
+//			"," + "'" + zc.getParentId() + "'" +
+//			"," + "'" + zc.getJurisdiction() + "'" +
+//			"," + "'" + zc.getCardid() + "'" +
+//			"," + "'" + zc.getAddress() + "'"
+//			+ ")";
+//		FtpUtil.sqlFileUpload(s);
 		return R.success("新增成功");
 	}
 

--
Gitblit v1.9.3