From 27d22de4e07c9bd75f44f14bf6bd06d3bc56a7c6 Mon Sep 17 00:00:00 2001 From: qianshijiang <1965297290@qq.com> Date: Wed, 26 Nov 2025 10:44:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=97=A5=E5=BF=97=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zt-gateway/src/main/resources/logback-spring.xml | 8 +++++--- .../src/main/resources/logback-spring.xml | 8 +++++--- .../src/main/resources/logback-spring.xml | 8 +++++--- .../src/main/resources/logback-spring.xml | 8 +++++--- .../src/main/resources/logback-spring.xml | 8 +++++--- 5 files changed, 25 insertions(+), 15 deletions(-) diff --git a/zt-gateway/src/main/resources/logback-spring.xml b/zt-gateway/src/main/resources/logback-spring.xml index 0e551414..c23fa5d2 100644 --- a/zt-gateway/src/main/resources/logback-spring.xml +++ b/zt-gateway/src/main/resources/logback-spring.xml @@ -31,7 +31,7 @@ ${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false} - ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB} + ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-50MB} ${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-0} @@ -56,14 +56,16 @@ + - - + + + diff --git a/zt-module-infra/zt-module-infra-server/src/main/resources/logback-spring.xml b/zt-module-infra/zt-module-infra-server/src/main/resources/logback-spring.xml index 0e551414..c23fa5d2 100644 --- a/zt-module-infra/zt-module-infra-server/src/main/resources/logback-spring.xml +++ b/zt-module-infra/zt-module-infra-server/src/main/resources/logback-spring.xml @@ -31,7 +31,7 @@ ${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false} - ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB} + ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-50MB} ${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-0} @@ -56,14 +56,16 @@ + - - + + + diff --git a/zt-module-mp/zt-module-mp-server/src/main/resources/logback-spring.xml b/zt-module-mp/zt-module-mp-server/src/main/resources/logback-spring.xml index 0e551414..c23fa5d2 100644 --- a/zt-module-mp/zt-module-mp-server/src/main/resources/logback-spring.xml +++ b/zt-module-mp/zt-module-mp-server/src/main/resources/logback-spring.xml @@ -31,7 +31,7 @@ ${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false} - ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB} + ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-50MB} ${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-0} @@ -56,14 +56,16 @@ + - - + + + diff --git a/zt-module-report/zt-module-report-server/src/main/resources/logback-spring.xml b/zt-module-report/zt-module-report-server/src/main/resources/logback-spring.xml index 0e551414..c23fa5d2 100644 --- a/zt-module-report/zt-module-report-server/src/main/resources/logback-spring.xml +++ b/zt-module-report/zt-module-report-server/src/main/resources/logback-spring.xml @@ -31,7 +31,7 @@ ${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false} - ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB} + ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-50MB} ${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-0} @@ -56,14 +56,16 @@ + - - + + + diff --git a/zt-module-system/zt-module-system-server/src/main/resources/logback-spring.xml b/zt-module-system/zt-module-system-server/src/main/resources/logback-spring.xml index 0e551414..c23fa5d2 100644 --- a/zt-module-system/zt-module-system-server/src/main/resources/logback-spring.xml +++ b/zt-module-system/zt-module-system-server/src/main/resources/logback-spring.xml @@ -31,7 +31,7 @@ ${LOGBACK_ROLLINGPOLICY_CLEAN_HISTORY_ON_START:-false} - ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-10MB} + ${LOGBACK_ROLLINGPOLICY_MAX_FILE_SIZE:-50MB} ${LOGBACK_ROLLINGPOLICY_TOTAL_SIZE_CAP:-0} @@ -56,14 +56,16 @@ + - - + + + From 5698c341857f1bf2b8c2dacee67a3a61d3a7d758 Mon Sep 17 00:00:00 2001 From: chenbowen Date: Wed, 26 Nov 2025 11:34:04 +0800 Subject: [PATCH 2/2] =?UTF-8?q?iwork=20=E4=BA=BA=E5=91=98=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E5=90=8C=E6=AD=A5=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/user/vo/user/UserSaveReqVO.java | 4 ++++ .../iwork/impl/IWorkSyncProcessorImpl.java | 1 + .../system/service/user/AdminUserServiceImpl.java | 13 ++++++++----- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/controller/admin/user/vo/user/UserSaveReqVO.java b/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/controller/admin/user/vo/user/UserSaveReqVO.java index 248f6ff3..049c6875 100644 --- a/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/controller/admin/user/vo/user/UserSaveReqVO.java +++ b/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/controller/admin/user/vo/user/UserSaveReqVO.java @@ -88,6 +88,10 @@ public class UserSaveReqVO { @JsonIgnore private boolean skipAssociationValidation; + @Schema(hidden = true) + @JsonIgnore + private boolean skipMobileValidation; + // ========== 仅【创建】时,需要传递的字段 ========== @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "123456") diff --git a/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/service/integration/iwork/impl/IWorkSyncProcessorImpl.java b/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/service/integration/iwork/impl/IWorkSyncProcessorImpl.java index 1983d537..9ed9fdbd 100644 --- a/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/service/integration/iwork/impl/IWorkSyncProcessorImpl.java +++ b/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/service/integration/iwork/impl/IWorkSyncProcessorImpl.java @@ -439,6 +439,7 @@ public class IWorkSyncProcessorImpl implements IWorkSyncProcessor { req.setSex(resolveSex(source.getSex())); req.setStatus(status.getStatus()); req.setSkipAssociationValidation(true); + req.setSkipMobileValidation(true); return req; } diff --git a/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/service/user/AdminUserServiceImpl.java b/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/service/user/AdminUserServiceImpl.java index fc45afba..4fc1267e 100644 --- a/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/service/user/AdminUserServiceImpl.java +++ b/zt-module-system/zt-module-system-server/src/main/java/com/zt/plat/module/system/service/user/AdminUserServiceImpl.java @@ -109,7 +109,7 @@ public class AdminUserServiceImpl implements AdminUserService { // 1.2 校验正确性 validateUserForCreateOrUpdate(null, createReqVO.getUsername(), createReqVO.getMobile(), createReqVO.getEmail(), createReqVO.getDeptIds(), createReqVO.getPostIds(), - createReqVO.isSkipAssociationValidation()); + createReqVO.isSkipAssociationValidation(), createReqVO.isSkipMobileValidation()); // 2.1 插入用户 AdminUserDO user = BeanUtils.toBean(createReqVO, AdminUserDO.class); user.setStatus(CommonStatusEnum.ENABLE.getStatus()); @@ -155,7 +155,7 @@ public class AdminUserServiceImpl implements AdminUserService { } }); // 1.3 校验正确性 - validateUserForCreateOrUpdate(null, registerReqVO.getUsername(), null, null, null, null, false); + validateUserForCreateOrUpdate(null, registerReqVO.getUsername(), null, null, null, null, false, false); // 2. 插入用户 AdminUserDO user = BeanUtils.toBean(registerReqVO, AdminUserDO.class); @@ -175,7 +175,7 @@ public class AdminUserServiceImpl implements AdminUserService { // 1. 校验正确性 AdminUserDO oldUser = validateUserForCreateOrUpdate(updateReqVO.getId(), updateReqVO.getUsername(), updateReqVO.getMobile(), updateReqVO.getEmail(), updateReqVO.getDeptIds(), - updateReqVO.getPostIds(), updateReqVO.isSkipAssociationValidation()); + updateReqVO.getPostIds(), updateReqVO.isSkipAssociationValidation(), updateReqVO.isSkipMobileValidation()); // 2.1 只更新非空字段 AdminUserDO updateObj = new AdminUserDO(); @@ -514,7 +514,8 @@ public class AdminUserServiceImpl implements AdminUserService { } private AdminUserDO validateUserForCreateOrUpdate(Long id, String username, String mobile, String email, - Set deptIds, Set postIds, boolean skipAssociationValidation) { + Set deptIds, Set postIds, boolean skipAssociationValidation, + boolean skipMobileValidation) { // 关闭数据权限,避免因为没有数据权限,查询不到数据,进而导致唯一校验不正确 return DataPermissionUtils.executeIgnore(() -> { // 校验用户存在 @@ -522,7 +523,9 @@ public class AdminUserServiceImpl implements AdminUserService { // 校验用户名唯一 - 注释掉,允许用户名重复 // validateUsernameUnique(id, username); // 校验手机号唯一 - validateMobileUnique(id, mobile); + if (!skipMobileValidation) { + validateMobileUnique(id, mobile); + } // 校验邮箱唯一 validateEmailUnique(id, email); // 校验岗位处于开启状态