From 6a48d04a36bc459ed761d787ee3d537652185d36 Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期二, 27 十月 2026 15:06:50 +0800
Subject: [PATCH] refactor(permission): 清理新高电力查询菜单及权限注解
---
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