KKSU
2024-02-19 3882ab4f0e77d46cddb08a4c67bbda6ba44ce8d8
src/main/resources/mapper/modules/MallProductBuyMapper.xml
@@ -58,9 +58,14 @@
    <select id="selectSellListInPage" resultType="cc.mrbird.febs.mall.vo.ApiOrderSellVo">
        select a.*
        from mall_product_sell a
        where a.state = #{record.state}
          and a.member_id = #{record.memberId}
        where  a.member_id = #{record.memberId}
        order by a.CREATED_TIME desc
    </select>
    <select id="selectTotalPerk" resultType="cc.mrbird.febs.mall.entity.MallProductBuy">
        select SUM(total_perk) from mall_product_buy
        where state = 3
        GROUP BY member_id;
    </select>
</mapper>