| | |
| | | </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"> |