xiaoyong931011
2023-03-24 971f739f9ee5fb868d72f9a85d65e9f0791d5032
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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="cc.mrbird.febs.mall.mapper.MallMqRecordMapper">
 
    <select id="selectByOrderId" resultType="cc.mrbird.febs.mall.entity.MallMqRecord">
        select a.* from mall_mq_record a where a.order_id = #{orderId}
    </select>
 
    <select id="selectByStateLimitTen" resultType="cc.mrbird.febs.mall.entity.MallMqRecord">
        select
               a.*
        from
             mall_mq_record a
        where
              a.state = #{state}
            and a.retry_times > 0
        order by a.id asc
        limit 10
 
    </select>
 
</mapper>