| | |
| | | /** |
| | | * MDM 物料主数据 Mapper |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @Mapper |
| | | public interface MdmItemMapper extends BaseMapperX<MdmItemDO> { |
| | |
| | | .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) { |
| | |
| | | .inIfPresent(MdmItemDO::getCategoryId, categoryIds) |
| | | .eqIfPresent(MdmItemDO::getItemType, reqVO.getItemType()) |
| | | .eqIfPresent(MdmItemDO::getStatus, reqVO.getStatus()) |
| | | .orderByAsc(MdmItemDO::getSort) |
| | | .orderByDesc(MdmItemDO::getId)); |
| | | } |
| | | |
| | |
| | | */ |
| | | List<Map<String, Object>> selectItemReferenceCount(@Param("itemId") Long itemId); |
| | | |
| | | } |
| | | } |