src/main/resources/mapper/measuringinstrumentledger/MeasuringInstrumentLedgerMapper.xml
@@ -62,6 +62,16 @@ AND record_date = DATE_FORMAT(#{req.recordDate},'%Y-%m-%d') </if> </where> ORDER BY update_time DESC ORDER BY create_time DESC </select> <select id="selectExistingCodes" resultType="java.lang.String"> SELECT code FROM measuring_instrument_ledger WHERE tenant_id = #{tenantId} AND code IN <foreach collection="codes" item="code" open="(" separator="," close=")"> #{code} </foreach> </select> </mapper>