From def836728da5e1f5124eab712f7cb9685209f08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E9=B9=8F=E9=A3=9E?= Date: Wed, 8 Apr 2026 10:08:20 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat(config):=20=E6=B7=BB=E5=8A=A0Web?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=B1=BB=E6=94=AF=E6=8C=81=E5=A4=9A=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E6=8B=A6=E6=88=AA=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 创建WebConfig配置类实现WebMvcConfigurer接口 - 注入LanguageInterceptor多语言拦截器依赖 - 注册拦截器到拦截器链并设置拦截所有路径(**) --- .../quotation/config/WebConfig.java | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 nflg-mobilebroken-quotation/src/main/java/com/nflg/mobilebroken/quotation/config/WebConfig.java diff --git a/nflg-mobilebroken-quotation/src/main/java/com/nflg/mobilebroken/quotation/config/WebConfig.java b/nflg-mobilebroken-quotation/src/main/java/com/nflg/mobilebroken/quotation/config/WebConfig.java new file mode 100644 index 00000000..1e0f1cc4 --- /dev/null +++ b/nflg-mobilebroken-quotation/src/main/java/com/nflg/mobilebroken/quotation/config/WebConfig.java @@ -0,0 +1,21 @@ +package com.nflg.mobilebroken.quotation.config; + +import com.nflg.mobilebroken.starter.interceptor.LanguageInterceptor; +import org.springframework.context.annotation.Configuration; +import org.springframework.web.servlet.config.annotation.InterceptorRegistry; +import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; + +import javax.annotation.Resource; + +@Configuration +public class WebConfig implements WebMvcConfigurer { + + @Resource + private LanguageInterceptor languageInterceptor; + + @Override + public void addInterceptors(InterceptorRegistry registry) { + // 注册拦截器并指定拦截路径 + registry.addInterceptor(languageInterceptor).addPathPatterns("/**"); + } +} From a97e80f85791e1a5c00f009ad52c0091597e7a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E9=B9=8F=E9=A3=9E?= Date: Fri, 10 Apr 2026 14:30:56 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91?= =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E4=BB=A3=E7=90=86=E5=95=86=E5=AD=90=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E4=B8=8D=E9=9C=80=E8=A6=81=E9=83=A8=E9=97=A8id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/pojo/request/ApproveAppUserApplyforRequest.java | 6 ------ .../repository/service/impl/AppUserApplyforServiceImpl.java | 1 - 2 files changed, 7 deletions(-) diff --git a/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/request/ApproveAppUserApplyforRequest.java b/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/request/ApproveAppUserApplyforRequest.java index 2b7661d9..84b180e2 100644 --- a/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/request/ApproveAppUserApplyforRequest.java +++ b/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/request/ApproveAppUserApplyforRequest.java @@ -15,10 +15,4 @@ public class ApproveAppUserApplyforRequest { @JsonIgnore private String password; - - /** - * 部门id - */ - @NotNull(message = "部门不能为空") - private Long departmentId; } diff --git a/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/AppUserApplyforServiceImpl.java b/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/AppUserApplyforServiceImpl.java index 57786b36..361ce94c 100644 --- a/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/AppUserApplyforServiceImpl.java +++ b/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/AppUserApplyforServiceImpl.java @@ -220,7 +220,6 @@ public class AppUserApplyforServiceImpl extends ServiceImpl