fix
Helius
2022-06-17 2d25f8ca6ee3ebcdaa572169b2c478d23f6bd053
src/main/resources/mapper/modules/MallMoneyFlowMapper.xml
@@ -109,7 +109,8 @@
    </update>
    <select id="selectProfitByDateAndMemberId" resultType="java.math.BigDecimal">
        select ifnull(sum(a.amount),0) from mall_money_flow a where member_id=#{memberId} and type in (1,2) and date_format(a.CREATED_TIME, '%Y-%m-%d') = date_format(now(), '%Y-%m-%d');
        select ifnull(sum(a.amount),0) from mall_money_flow a
        where member_id=#{memberId} and flow_type=4 and date_format(a.CREATED_TIME, '%Y-%m-%d') = date_format(now(), '%Y-%m-%d') and amount > 0
    </select>
    <select id="selectCommissionIncome" resultType="java.math.BigDecimal">