From fe88835f05a2e0a2515418c06a2c5c2e41ded9e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E9=B9=8F=E9=A3=9E?= Date: Tue, 17 Mar 2026 18:10:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(repository):=20=E4=BF=AE=E5=A4=8D=E6=8A=A5?= =?UTF-8?q?=E4=BB=B7=E6=A8=A1=E5=9E=8B=E7=A6=81=E7=94=A8=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=9A=84=E7=A9=BA=E5=80=BC=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改 QuotationModelForbidMapper.xml 中的 isForbid 查询语句 - 使用 IFNULL 函数处理可能的空值情况,避免返回 null 值 - 将 ShoppingSearchVO 中的 moduleName 字段类型从 Integer 改为 String - 确保模块名称字段能够正确存储字符串类型的值 --- .../mobilebroken/common/pojo/vo/ShoppingSearchVO.java | 2 +- .../main/resources/mapper/QuotationModelForbidMapper.xml | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/ShoppingSearchVO.java b/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/ShoppingSearchVO.java index eccbc30f..149487b8 100644 --- a/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/ShoppingSearchVO.java +++ b/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/ShoppingSearchVO.java @@ -11,7 +11,7 @@ public class ShoppingSearchVO { /** * 模块名称 */ - private Integer moduleName; + private String moduleName; /** * 系列名称 diff --git a/nflg-mobilebroken-repository/src/main/resources/mapper/QuotationModelForbidMapper.xml b/nflg-mobilebroken-repository/src/main/resources/mapper/QuotationModelForbidMapper.xml index 9440f242..d8e5e612 100644 --- a/nflg-mobilebroken-repository/src/main/resources/mapper/QuotationModelForbidMapper.xml +++ b/nflg-mobilebroken-repository/src/main/resources/mapper/QuotationModelForbidMapper.xml @@ -25,8 +25,11 @@