src/main/resources/mapper/dapp/MemberCoinChargeDao.xml
@@ -29,4 +29,24 @@ </if> </select> <select id="selectTotalAmountByCreateTimeAndInviteId" resultType="cc.mrbird.febs.dapp.vo.AdminMemberChargeVo"> SELECT IFNULL(sum(amount),0) AS totalCharge, count(id) AS sheetIn FROM member_coin_charge WHERE date_format(create_time, '%Y-%m-%d') = date_format(#{createTime}, '%Y-%m-%d') <if test="description !=null and description != ''"> and member_id IN ( SELECT id FROM dapp_member WHERE FIND_IN_SET(#{description}, referer_ids) ) </if> </select> </mapper>