无关风月
2025-04-01 c0abf1b8be71aef5089151ca8601a3b69b21a09d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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.dsh.activity.mapper.HuiminCardMapper">
 
 
    <select id="getHuiminAgreementAndList" resultType="com.dsh.activity.entity.THuiminCard">
        select t1.* from t_huimin_card t1
        where
            find_in_set(#{storeId},t1.storeIds)
 
          and t1.endTime >= now()
        and t1.status = 1
            order by t1.sort desc
            limit #{pageNo}, #{pageSize}
 
    </select>
    <select id="getMyHuiminCardList" resultType="com.dsh.activity.model.response.MyHuiminCardVO">
        select t1.* from t_pay_huimin t1
        where  t1.status = 2
            and t1.appUserId = #{appUserId}
            limit #{pageNo}, #{pageSize}
 
    </select>
</mapper>