提交代码

master
胡锐 3 weeks ago
parent 06dad7f973
commit 8a615ef604
  1. 4
      service/src/main/java/com/hfkj/dao/BsGasOrderSpreadMapperExt.java

@ -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," +

Loading…
Cancel
Save