KKSU
2023-12-01 1816a5486fd93a3d8a5722c57fb047678f6a26f6
src/main/resources/mapper/modules/MallProductBuyMapper.xml
@@ -39,4 +39,19 @@
        order by a.CREATED_TIME asc
    </select>
    <select id="selectBuyListInPage" resultType="cc.mrbird.febs.mall.vo.ApiOrderBuyVo">
        select
               a.*
        from mall_product_buy a
        where a.member_id = #{record.memberId}
        order by a.CREATED_TIME desc
    </select>
    <select id="selectListByMemberIdAndState" resultType="java.lang.Integer">
        select count(id)
        from mall_product_buy a
        where a.member_id = #{memberId}
          and a.state = #{state}
    </select>
</mapper>