| | |
| | | select IFNULL(sum(IFNULL(amount,0)),0) from mall_achieve_record |
| | | where |
| | | member_id = #{memberId} |
| | | and payTime >= #{date} |
| | | and pay_time >= #{date} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectAchieveTotalByCreateTime" resultType="java.math.BigDecimal"> |
| | | select IFNULL(sum(IFNULL(amount,0)),0) from mall_achieve_record |
| | | where payTime >= #{date} |
| | | where pay_time >= #{date} |
| | | </select> |
| | | |
| | | <select id="selectAchieveByMemberId" resultType="java.math.BigDecimal"> |
| | |
| | | a.address address, |
| | | a.account_type accountType, |
| | | a.create_time createTime |
| | | from mall_member a |
| | | where a.referrer_id=#{inviteId} |
| | | from dapp_member a |
| | | where a.referer_id=#{inviteId} |
| | | </select> |
| | | |
| | | <select id="selectCountByInvitedId" resultType="cc.mrbird.febs.dapp.entity.MallAchieveRecord"> |