云
2026-11-05 81806860ff519555f494ac3c871dc92615d06cd4
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/item/MdmItemMapper.java
@@ -15,7 +15,7 @@
/**
 * MDM 物料主数据 Mapper
 *
 * @author 芋道源码
 * @author 超级管理员
 */
@Mapper
public interface MdmItemMapper extends BaseMapperX<MdmItemDO> {
@@ -30,7 +30,9 @@
                .eqIfPresent(MdmItemDO::getBrandId, reqVO.getBrandId())
                .eqIfPresent(MdmItemDO::getStatus, reqVO.getStatus())
                .betweenIfPresent(MdmItemDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(MdmItemDO::getId));
                .orderByAsc(MdmItemDO::getSort)
                .orderByDesc(MdmItemDO::getId)
                .notIn(reqVO.getExcludeIds() != null && !reqVO.getExcludeIds().isEmpty(), MdmItemDO::getId, reqVO.getExcludeIds()));
    }
    default List<MdmItemDO> selectList(MdmItemPageReqVO reqVO, Collection<Long> categoryIds) {
@@ -40,6 +42,7 @@
                .inIfPresent(MdmItemDO::getCategoryId, categoryIds)
                .eqIfPresent(MdmItemDO::getItemType, reqVO.getItemType())
                .eqIfPresent(MdmItemDO::getStatus, reqVO.getStatus())
                .orderByAsc(MdmItemDO::getSort)
                .orderByDesc(MdmItemDO::getId));
    }
@@ -91,4 +94,4 @@
     */
    List<Map<String, Object>> selectItemReferenceCount(@Param("itemId") Long itemId);
}
}