From 2e517e44a313ba1ac9b9763ba94d6c599f84ac10 Mon Sep 17 00:00:00 2001 From: water_xu Date: Tue, 10 Sep 2024 16:51:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E5=9B=9E=E6=BB=9A=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E4=B8=AD=E5=8F=B0=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zcloud/controller/system/UsersController.java | 15 +++++++++------ .../com/zcloud/syncData/SyncDataAdviceAspect.java | 4 ++-- .../mybatis/datasource/system/UsersMapper.xml | 5 +++++ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/zcloud/controller/system/UsersController.java b/src/main/java/com/zcloud/controller/system/UsersController.java index bfde8859..b536e79c 100644 --- a/src/main/java/com/zcloud/controller/system/UsersController.java +++ b/src/main/java/com/zcloud/controller/system/UsersController.java @@ -778,7 +778,7 @@ public class UsersController extends BaseController { } map.put("result", errInfo); map.put("code","0"); - map.put("syncInfo", JSONUtil.toJsonStr(usersService.findById(pd))); +// map.put("syncInfo", JSONUtil.toJsonStr(usersService.findById(pd))); return map; } @@ -798,7 +798,7 @@ public class UsersController extends BaseController { usersService.editUserFuns(pd); //执行修改 map.put("result", errInfo); map.put("code", "0"); - map.put("syncInfo", JSONUtil.toJsonStr(usersService.findById(pd))); +// map.put("syncInfo", JSONUtil.toJsonStr(usersService.findById(pd))); return map; } @@ -830,7 +830,7 @@ public class UsersController extends BaseController { FHLOG.save(Jurisdiction.getUsername(), "从个人资料中修改" + pd.getString("USERNAME") + "的资料"); //记录日志 map.put("result", errInfo); map.put("code", "0"); - map.put("syncInfo", JSONUtil.toJsonStr(usersService.findById(pd))); +// map.put("syncInfo", JSONUtil.toJsonStr(usersService.findById(pd))); return map; } @@ -915,11 +915,14 @@ public class UsersController extends BaseController { pd.put("IP", ""); //IP pd.put("STATUS", "0"); //状态 pd.put("ISMAIN", "0"); //状态 - pd.put("ISDELETE", "1"); //是否删除,0表示不删除 +// pd.put("ISDELETE", "1"); //是否删除,0表示不删除 + // 人员中台暂时不用 + pd.put("ISDELETE", "0"); //是否删除,0表示不删除 pd.put("SKIN", "pcoded-navbar navbar-image-3,navbar pcoded-header navbar-expand-lg navbar-light header-dark,"); //用户默认皮肤 pd.put("PASSWORD", new SimpleHash("SHA-1", pd.getString("USERNAME"), pd.getString("PASSWORD")).toString()); //密码加密 pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); - pd.put("ISPUSH", "0"); +// pd.put("ISPUSH", "0"); + // 人员中台暂时不用 Map resultMap = doCheck(pd.getString("USERNAME"), pd.getString("USER_ID_CARD"), ""); if (resultMap.get("result").equals("success")) { if (null == usersService.findByUsername(pd)) { //判断用户名是否存在 @@ -1029,7 +1032,7 @@ public class UsersController extends BaseController { map.put("USER_ID",ID); map.put("result", errInfo); //返回结果 map.put("code", "0"); - map.put("syncInfo", JSONUtil.toJsonStr(userinfo)); +// map.put("syncInfo", JSONUtil.toJsonStr(userinfo)); } else { map.put("result", "您输入的身份证号和用户名二次校验失败,请确认后重新申请"); //返回结果 } diff --git a/src/main/java/com/zcloud/syncData/SyncDataAdviceAspect.java b/src/main/java/com/zcloud/syncData/SyncDataAdviceAspect.java index d50553f2..dabed28d 100644 --- a/src/main/java/com/zcloud/syncData/SyncDataAdviceAspect.java +++ b/src/main/java/com/zcloud/syncData/SyncDataAdviceAspect.java @@ -25,8 +25,8 @@ import java.util.Map; * 作者:water_xu * 官网:www.zcloudchina.com */ -@Aspect -@Component +//@Aspect +//@Component @SuppressWarnings("all") public class SyncDataAdviceAspect { diff --git a/src/main/resources/mybatis/datasource/system/UsersMapper.xml b/src/main/resources/mybatis/datasource/system/UsersMapper.xml index e7625a89..cc3d91d4 100644 --- a/src/main/resources/mybatis/datasource/system/UsersMapper.xml +++ b/src/main/resources/mybatis/datasource/system/UsersMapper.xml @@ -634,10 +634,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and (u.ISPUSH = "1" or u.ISMAIN = "1") and u.ISDELETE = '0' + + AND u.ISDELETE = '0' + + AND