查询分享收益接口修改

This commit is contained in:
GYJ
2024-12-12 16:40:41 +08:00
parent a6bcb3da8f
commit 9775cf129a
5 changed files with 43 additions and 1 deletions

View File

@@ -5,4 +5,14 @@
<select id="monthIncome" resultType="Double">
select sum(money) from user_money_details where user_id=#{userId} and classify=4 and type=2 and state=2 and date_format(create_time,'%Y-%m')=date_format(#{date},'%Y-%m')
</select>
</mapper>
<select id="queryUserInviteMoney" resultType="Double">
select sum(money) from user_money_details where user_id=#{userId} and classify in (1,6,7) and type=1 and state=2 and money_type=1
</select>
<select id="queryUserInviteGoldMoney" resultType="Double">
select sum(money) from user_money_details where user_id=#{userId} and classify in (1,6,7) and type=1 and state=2 and money_type=2
</select>
</mapper>