<?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>
|