From cd048126c03d069b148183b8460d62916439e0f3 Mon Sep 17 00:00:00 2001 From: liujun Date: Fri, 22 Dec 2023 13:39:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8Bbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/api/ApiXgfUserController.java | 2 +- .../service/xgf/impl/XgfUserServiceImpl.java | 9 +++-- .../mybatis/datasource/xgf/XgfUserMapper.xml | 37 +++++++++++-------- 3 files changed, 29 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/zcloud/controller/api/ApiXgfUserController.java b/src/main/java/com/zcloud/controller/api/ApiXgfUserController.java index 23147099..20906c30 100644 --- a/src/main/java/com/zcloud/controller/api/ApiXgfUserController.java +++ b/src/main/java/com/zcloud/controller/api/ApiXgfUserController.java @@ -27,7 +27,7 @@ public class ApiXgfUserController extends BaseController { PageData request = this.getPageData(); xgfUserService.init(request); Map response = new HashMap(); - response.put("result", "response"); + response.put("result", "success"); return response; } catch (Exception e) { e.printStackTrace(); diff --git a/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java b/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java index 17de5f5d..23725dc7 100644 --- a/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java +++ b/src/main/java/com/zcloud/service/xgf/impl/XgfUserServiceImpl.java @@ -71,7 +71,9 @@ public class XgfUserServiceImpl implements XgfUserService { condition.clear(); condition.put("DEPARTMENT_ID",x.get("MANAGER_DEPARTMENT_ID")); PageData regDepartmentEntity = departmentService.getCorpDepartment(condition); - x.put("MANAGER_DEPARTMENT_NAME",regDepartmentEntity.get("NAME")); + if (regDepartmentEntity != null && regDepartmentEntity.size() > 0) { + x.put("MANAGER_DEPARTMENT_NAME",regDepartmentEntity.get("NAME")); + } xgfUserMapper.save(x); xgfUserDetailsMapper.save(x); } else { @@ -83,8 +85,9 @@ public class XgfUserServiceImpl implements XgfUserService { condition.clear(); condition.put("DEPARTMENT_ID",x.get("MANAGER_DEPARTMENT_ID")); PageData regDepartmentEntity = departmentService.getCorpDepartment(condition); - x.put("MANAGER_DEPARTMENT_NAME",regDepartmentEntity.get("NAME")); - + if (regDepartmentEntity != null && regDepartmentEntity.size() > 0) { + x.put("MANAGER_DEPARTMENT_NAME",regDepartmentEntity.get("NAME")); + } x.put("ISDELETE", "0"); x.put("VALID_FLAG", "1"); x.put("STATUS", "2"); diff --git a/src/main/resources/mybatis/datasource/xgf/XgfUserMapper.xml b/src/main/resources/mybatis/datasource/xgf/XgfUserMapper.xml index 53ccf893..c5aaab28 100644 --- a/src/main/resources/mybatis/datasource/xgf/XgfUserMapper.xml +++ b/src/main/resources/mybatis/datasource/xgf/XgfUserMapper.xml @@ -74,7 +74,7 @@ update set - ISDELETE = '1' + IS_DELETE = '1' where XGF_USER_ID = #{XGF_USER_ID} @@ -89,7 +89,7 @@ VALID_FLAG = #{VALID_FLAG}, BELONG_TO_CORP = #{BELONG_TO_CORP}, BELONG_TO_CORP_NAME = #{BELONG_TO_CORP_NAME}, - ISDELETE = #{ISDELETE}, + IS_DELETE = #{IS_DELETE}, CREATE_TIME = #{CREATE_TIME}, CORPINFO_ID = #{CORPINFO_ID}, STATUS = #{STATUS}, @@ -151,7 +151,7 @@ from f - where f.ISDELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID} + where f.IS_DELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID} and(f.BELONG_TO_CORP_NAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')) @@ -166,7 +166,7 @@ from f - where f.ISDELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID} + where f.IS_DELETE = '0' and f.CORPINFO_ID = #{pd.CORPINFO_ID} @@ -174,7 +174,7 @@ update set - ISDELETE = '1', + IS_DELETE = '1', OPERATOR = #{OPERATOR}, OPERATTIME = #{OPERATTIME} where @@ -191,23 +191,30 @@ from f - where f.ISDELETE = '0' - and XGF_USER_ID in + where f.IS_DELETE = '0' + and f.XGF_USER_ID in #{item} + + and a.STUDY_STATUS = #{pd.STUDY_STATUS} + + + and a.CORPINFO_ID = #{pd.CORPINFO_ID} + +