| | |
| | | /** |
| | | * MDM 物料分类 Mapper |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @Mapper |
| | | public interface MdmItemCategoryMapper extends BaseMapperX<MdmItemCategoryDO> { |
| | |
| | | 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) |
| | |
| | | return selectList(MdmItemCategoryDO::getId, ids); |
| | | } |
| | | |
| | | default MdmItemCategoryDO selectByItemOrProduct(String itemOrProduct) { |
| | | return selectOne(MdmItemCategoryDO::getItemOrProduct, itemOrProduct); |
| | | } |
| | | |
| | | } |