src/main/resources/mapper/measuringinstrumentledger/MeasuringInstrumentLedgerMapper.xml
@@ -74,4 +74,12 @@ #{code} </foreach> </select> <!-- 下拉选择:当前租户全部计量器具。SQL 带 /*data_scope*/ 标记,仅此查询豁免数据范围过滤 --> <select id="listOptions" resultType="com.ruoyi.measuringinstrumentledger.pojo.MeasuringInstrumentLedger"> SELECT /*data_scope*/ id, code, name, model, unit, most_date, valid, record_date FROM measuring_instrument_ledger WHERE tenant_id = #{tenantId} ORDER BY create_time DESC </select> </mapper>