分享收益查询 fix

This commit is contained in:
GYJ 2024-12-25 09:43:52 +08:00
parent 1f4de9490c
commit 1252d63bfd
2 changed files with 2 additions and 4 deletions

View File

@ -42,8 +42,6 @@ public class UserMoneyDetailsServiceImpl extends ServiceImpl<UserMoneyDetailsDao
ArrayList<Integer> arrayList = new ArrayList<>(); ArrayList<Integer> arrayList = new ArrayList<>();
arrayList.add(1); arrayList.add(1);
arrayList.add(6); arrayList.add(6);
arrayList.add(7);
arrayList.add(8);
queryWrapper.in("classify", arrayList); queryWrapper.in("classify", arrayList);
} }
queryWrapper.orderByDesc("create_time"); queryWrapper.orderByDesc("create_time");

View File

@ -7,11 +7,11 @@
</select> </select>
<select id="queryUserInviteMoney" resultType="Double"> <select id="queryUserInviteMoney" resultType="Double">
select sum(money) from user_money_details where user_id=#{userId} and classify in (1,6,7,8) and type=1 and state=2 and money_type=1 select sum(money) from user_money_details where user_id=#{userId} and classify in (1,6) and type=1 and state=2 and money_type=1
</select> </select>
<select id="queryUserInviteGoldMoney" resultType="Double"> <select id="queryUserInviteGoldMoney" resultType="Double">
select sum(money) from user_money_details where user_id=#{userId} and classify in (1,6,7,8) and type=1 and state=2 and money_type=2 select sum(money) from user_money_details where user_id=#{userId} and classify in (1,6) and type=1 and state=2 and money_type=2
</select> </select>