gaoluyang
2026-10-26 48ee7c963f29f5614a8f86c08608620cc6310793
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/item/MdmItemMapper.java
@@ -20,6 +20,9 @@
@Mapper
public interface MdmItemMapper extends BaseMapperX<MdmItemDO> {
    @org.apache.ibatis.annotations.Select("SELECT COALESCE(MAX(CAST(SUBSTRING(code, 5) AS UNSIGNED)), 0) FROM mdm_item WHERE deleted = 0 AND code LIKE CONCAT(#{prefix}, '%')")
    Integer selectMaxSequenceByPrefix(@Param("prefix") String prefix);
    default PageResult<MdmItemDO> selectPage(MdmItemPageReqVO reqVO, Collection<Long> categoryIds) {
        return selectPage(reqVO, new LambdaQueryWrapperX<MdmItemDO>()
                .likeIfPresent(MdmItemDO::getCode, reqVO.getCode())
@@ -92,4 +95,4 @@
     */
    List<Map<String, Object>> selectItemReferenceCount(@Param("itemId") Long itemId);
}
}