KKSU
2023-11-21 990c09c842d87d1f179e3a0070541da0457b8393
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.order_id asc
        limit 10
 
    </select>
 
</mapper>