Helius
2022-05-19 f681a6a7852eb7c868ea539155861729c3e99da1
src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -237,7 +237,7 @@
        select IFNULL(sum(IFNULL(b.amount,0) - IFNULL(b.cost_price*b.cnt, 0)),0)
        from mall_order_info a
        inner join mall_order_item b on a.id=b.order_id
        where status = 4
        where a.status in (2, 3, 4) and a.is_normal = 2 and a.order_type=1
        <if test="member != null">
            and member_id=#{memberId}
        </if>