KKSU
2023-11-21 990c09c842d87d1f179e3a0070541da0457b8393
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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.MallProductBuyMapper">
 
    <select id="selectMemberIdAndNFTIdAndStateAndMateState" resultType="cc.mrbird.febs.mall.entity.MallProductBuy">
        select * from mall_product_buy
        <where>
            member_id = #{memberId}
            and product_nft_id = #{productNFTId}
            <if test="state != null">
                and state = #{state}
            </if>
            <if test="mateState != null">
                and mate_state = #{mateState}
            </if>
        </where>
    </select>
 
</mapper>