| | |
| | | @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()) |
| | |
| | | */ |
| | | List<Map<String, Object>> selectItemReferenceCount(@Param("itemId") Long itemId); |
| | | |
| | | } |
| | | } |