|
|
@ -89,11 +89,11 @@ public interface BsGasOrderSpreadMapperExt { |
|
|
|
BigDecimal queryNotCashOutAmount(@Param("userId") Long userId); |
|
|
|
BigDecimal queryNotCashOutAmount(@Param("userId") Long userId); |
|
|
|
|
|
|
|
|
|
|
|
@Select(" select " + |
|
|
|
@Select(" select " + |
|
|
|
" a.amount + a.cashOutAmount totalAmount," + |
|
|
|
" ROUND(a.amount + a.cashOutAmount,2) totalAmount," + |
|
|
|
" a.amount notWithdrawnAmount," + |
|
|
|
" a.amount notWithdrawnAmount," + |
|
|
|
" a.cashOutAmount," + |
|
|
|
" a.cashOutAmount," + |
|
|
|
" a.sysSperadAmount," + |
|
|
|
" a.sysSperadAmount," + |
|
|
|
" a.sysSperadAmount - a.cashOutAmount surplusAmount" + |
|
|
|
" ROUND(a.sysSperadAmount - a.cashOutAmount,2) surplusAmount" + |
|
|
|
" from " + |
|
|
|
" from " + |
|
|
|
" (SELECT" + |
|
|
|
" (SELECT" + |
|
|
|
" (select code_name from sec_dictionary where code_type = 'SYS_USER_SPREAD_ACCOUNT' and `status` = 1 LIMIT 1) sysSperadAmount," + |
|
|
|
" (select code_name from sec_dictionary where code_type = 'SYS_USER_SPREAD_ACCOUNT' and `status` = 1 LIMIT 1) sysSperadAmount," + |
|
|
|