|
|
|
@ -15,7 +15,7 @@ public interface BsUserSpreadAccountRecordMapperExt { |
|
|
|
|
Integer withdrawChance(@Param("userId") Long userId); |
|
|
|
|
|
|
|
|
|
@Select("<script>" + |
|
|
|
|
" select sum(transaction_amount) from bs_user_spread_account_record where 1 = 1" + |
|
|
|
|
" select sum(transaction_amount) from bs_user_spread_account_record where status = 1" + |
|
|
|
|
" <if test='param.userId != null'> and user_id = #{param.userId} </if>" + |
|
|
|
|
" <if test='param.userPhone != null'> and user_phone like concat('%',#{param.userPhone},'%') </if>" + |
|
|
|
|
" <if test='param.type != null'> and type = #{param.type} </if>" + |
|
|
|
|