| | |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectSumAchieveByMemberIds" resultType="cc.mrbird.febs.mall.entity.MallAchieveRecord"> |
| | | <select id="selectSumAchieveByMemberIds" resultType="java.math.BigDecimal"> |
| | | select IFNULL(sum(IFNULL(amount,0)),0) |
| | | from mall_achieve_record |
| | | where member_id IN |
| | |
| | | and date_format(achieve_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d'); |
| | | </select> |
| | | |
| | | <select id="selectListByDate" resultType="cc.mrbird.febs.mall.entity.MallAchieveRecord"> |
| | | select * from mall_achieve_record |
| | | where date_format(achieve_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d'); |
| | | </select> |
| | | |
| | | <select id="selectSumAchieveByMemberId" resultType="java.math.BigDecimal"> |
| | | select IFNULL(sum(IFNULL(amount,0)),0) |
| | | from mall_achieve_record |
| | | where member_id = #{memberId}; |
| | | </select> |
| | | |
| | | </mapper> |