package com.ruoyi.stock.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.ruoyi.account.bean.dto.purchase.PurchaseInboundDto;
|
import com.ruoyi.account.bean.vo.purchase.PurchaseInboundVo;
|
import com.ruoyi.sales.dto.SalesLedgerDto;
|
import com.ruoyi.sales.pojo.SalesLedger;
|
import com.ruoyi.stock.dto.StockInRecordDto;
|
import com.ruoyi.stock.execl.StockInRecordExportData;
|
import com.ruoyi.stock.pojo.StockInRecord;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
public interface StockInRecordMapper extends BaseMapper<StockInRecord> {
|
IPage<StockInRecordDto> listPage(Page page, @Param("params") StockInRecordDto stockInRecordDto);
|
|
List<StockInRecordExportData> listStockInRecordExportData(@Param("params") StockInRecordDto stockInRecordDto);
|
|
IPage<PurchaseInboundVo> listPageAccountPurchase(Page page, @Param("req") PurchaseInboundDto purchaseInboundDto);
|
|
/**
|
* 代储入库可绑定的销售订单(销售台账)下拉,只出 ledger_type='代储' 的台账。
|
*
|
* <p>销售台账是入库单要引用的主数据,而 {@code sales_ledger} 不在 {@code IgnoreTableConfig.IGNORE_TABLES}
|
* 白名单里,按 create_user/dept_id 过滤会让油库角色选不到销售建的台账,所以这里显式跳过数据权限(只读查询)。</p>
|
*/
|
IPage<SalesLedger> bindableSalesLedgerPage(Page page, @Param("req") SalesLedgerDto salesLedgerDto);
|
}
|