分享收益查询 类型增加
This commit is contained in:
parent
24571a7c64
commit
054ecad4d8
|
|
@ -43,6 +43,7 @@ public class UserMoneyDetailsServiceImpl extends ServiceImpl<UserMoneyDetailsDao
|
|||
arrayList.add(1);
|
||||
arrayList.add(6);
|
||||
arrayList.add(7);
|
||||
arrayList.add(8);
|
||||
queryWrapper.in("classify", arrayList);
|
||||
}
|
||||
queryWrapper.orderByDesc("create_time");
|
||||
|
|
|
|||
|
|
@ -7,11 +7,11 @@
|
|||
</select>
|
||||
|
||||
<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 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>
|
||||
|
||||
<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 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>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue