fix
Hentua
2023-08-23 25828996cb8f2b971de722ce9a527c26bbc68cb2
src/main/resources/mapper/modules/MallOrderInfoMapper.xml
@@ -439,4 +439,18 @@
        GROUP BY goods_id
        ORDER BY goods_id desc
</select>
    <select id="selectAmountOrTeamAmount" resultType="java.math.BigDecimal">
        select IFNULL(sum(IFNULL(a.amount,0)),0) from mall_order_info a
        inner join mall_member b on a.member_id=b.ID
        <where>
            a.status in (2,3,4)
            <if test="type == 1">
                and b.invite_id=#{inviteId}
            </if>
            <if test="type == 2">
                and find_in_set(#{inviteId}, b.referrer_ids)
            </if>
        </where>
    </select>
</mapper>