From d54fbc9d4f8981fa0f7f613b33a28a8cd4f764ea Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期日, 25 十月 2026 16:29:53 +0800
Subject: [PATCH] feat(system): 优化用户搜索功能并完善ERP和MES模块验证逻辑
---
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/category/MdmItemCategoryMapper.java | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/category/MdmItemCategoryMapper.java b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/category/MdmItemCategoryMapper.java
index 0678ec4..21db47a 100644
--- a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/category/MdmItemCategoryMapper.java
+++ b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/category/MdmItemCategoryMapper.java
@@ -13,7 +13,7 @@
/**
* MDM 鐗╂枡鍒嗙被 Mapper
*
- * @author 鑺嬮亾婧愮爜
+ * @author 瓒呯骇绠$悊鍛�
*/
@Mapper
public interface MdmItemCategoryMapper extends BaseMapperX<MdmItemCategoryDO> {
@@ -42,6 +42,10 @@
return selectOne(MdmItemCategoryDO::getCode, code);
}
+ default MdmItemCategoryDO selectByName(String name) {
+ return selectOne(MdmItemCategoryDO::getName, name);
+ }
+
default MdmItemCategoryDO selectByParentIdAndName(Long parentId, String name) {
return selectOne(new LambdaQueryWrapperX<MdmItemCategoryDO>()
.eq(MdmItemCategoryDO::getParentId, parentId)
@@ -60,4 +64,8 @@
return selectList(MdmItemCategoryDO::getId, ids);
}
+ default MdmItemCategoryDO selectByItemOrProduct(String itemOrProduct) {
+ return selectOne(MdmItemCategoryDO::getItemOrProduct, itemOrProduct);
+ }
+
}
\ No newline at end of file
--
Gitblit v1.9.3