KKSU
2023-11-27 83b56237a9e0b379b46d31ab77def13226f33548
src/main/resources/mapper/modules/MallProductNftMapper.xml
@@ -32,6 +32,28 @@
        order by a.CREATED_TIME desc
    </select>
    <select id="getBuyRecordList" resultType="cc.mrbird.febs.mall.entity.MallProductBuyRecord">
        SELECT
        a.*,
        b.account_login
        FROM mall_product_buy_record a
        left join mall_member b on a.member_id = b.id
        <where>
            <if test="record != null" >
                <if test="record.accountLogin!=null and record.accountLogin!=''">
                    and a.buy_id in  (
                    SELECT
                    c.id
                    FROM mall_product_buy c
                    left join mall_member d on c.member_id = d.id
                        where d.account_login like concat('%',  #{record.accountLogin},'%')
                    )
                </if>
            </if>
        </where>
        order by a.CREATED_TIME desc
    </select>
    <select id="getSellList" resultType="cc.mrbird.febs.mall.vo.AdminMallProductSellVo">
        SELECT
            a.*,