Commit 65a99a57 by 向延琳

获取单个加limit one

1 parent cbfe2d9e
......@@ -35,6 +35,11 @@
</sql>
<select id="getHisBySnAndSeq" resultMap="FreqRecordDtoMap">
SELECT * FROM t_freq_record WHERE sn =#{sn} AND freq_flag =#{seq};
SELECT *
FROM t_freq_record
WHERE sn = #{sn}
AND freq_flag = #{seq}
order by id desc
limit 1
</select>
</mapper>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!