Record queryCash = dao.queryCash(accountCash); BigDecimal dbMoney = queryCash.getBigDecimal("freeMoney"); BigDecimal requestMoney = new BigDecimal(accountCash.getCashMoney());
requestMoney.compareTo(dbMoney)>0
-1 小于 0 等于1 大于