8 小时以前 7bf754a7835d06f26240c4ca15bc5f83650de377
src/main/java/com/ruoyi/stock/mapper/StockInRecordMapper.java
@@ -5,6 +5,8 @@
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;
@@ -18,4 +20,12 @@
    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);
}