<?xml version="1.0" encoding="UTF-8"?>
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
<mapper namespace="com.xcong.excoin.modules.station.dao.StrategyEventLogDao">
|
|
<select id="selectByApiKeyMd5" resultType="com.xcong.excoin.modules.station.entity.StrategyEventLog">
|
SELECT * FROM strategy_event_log
|
WHERE api_key_md5 = #{apiKeyMd5}
|
ORDER BY event_time DESC
|
LIMIT 200
|
</select>
|
|
<select id="countByEventId" resultType="int">
|
SELECT COUNT(1) FROM strategy_event_log WHERE event_id = #{eventId}
|
</select>
|
|
</mapper>
|