tuqin
2026-09-24 034f720f0bbc7f253c15613c28d994d7abf401eb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.ruoyi.measuringinstrumentledger.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.measuringinstrumentledger.pojo.MeasuringInstrumentLedger;
import org.apache.ibatis.annotations.Param;
 
import java.util.Collection;
import java.util.List;
 
/**
 * @author :yys
 * @date : 2025/8/5 9:20
 */
public interface MeasuringInstrumentLedgerMapper extends BaseMapper<MeasuringInstrumentLedger> {
 
    /**
     * 分页查询
     *
     * @param page
     * @param measuringInstrumentLedger
     * @return
     */
    IPage<MeasuringInstrumentLedger> listPage(Page page,@Param("req") MeasuringInstrumentLedger measuringInstrumentLedger);
 
    List<MeasuringInstrumentLedger> listPage(@Param("req") MeasuringInstrumentLedger measuringInstrumentLedger);
 
    List<String> selectExistingCodes(@Param("tenantId") Long tenantId, @Param("codes") Collection<String> codes);
 
    /**
     * 下拉:当前租户全部计量器具(用于校准/检定选择,豁免数据范围过滤)
     *
     * @param tenantId 租户ID
     * @return 计量器具列表
     */
    List<MeasuringInstrumentLedger> listOptions(@Param("tenantId") Long tenantId);
}