package net.lab1024.sa.admin.module.business.wms.base.item.dao;

import java.util.List;

import net.lab1024.sa.admin.module.business.wms.base.address.domain.vo.AddressVO;
import net.lab1024.sa.admin.module.business.wms.base.item.domain.entity.ItemEntity;
import net.lab1024.sa.admin.module.business.wms.base.item.domain.form.ItemQueryForm;
import net.lab1024.sa.admin.module.business.wms.base.item.domain.vo.ItemVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 物料信息 Dao
 *
 * @Author 霍锦
 * @Date 2024-11-25 17:08:18
 * @Copyright 友仓
 */

@Mapper
@Component
public interface ItemDao extends BaseMapper<ItemEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<ItemVO> queryPage(Page page, @Param("queryForm") ItemQueryForm queryForm);

    //游标分页
    List<ItemVO> listByCursor(@Param("lastId") Long lastId, @Param("pageSize") int pageSize,@Param("queryForm") ItemQueryForm queryForm);

}
