|
@@ -163,7 +163,10 @@ public class OthspendingsServiceImpl extends CommonBaseServiceImpl<OthspendingsM
|
|
|
Double bk_amount = othspendings.getOs_amount();
|
|
Double bk_amount = othspendings.getOs_amount();
|
|
|
//付款方
|
|
//付款方
|
|
|
Bankinformation bankinformation = bankinformationMapper.selectByPrimaryKey(bk_id);
|
|
Bankinformation bankinformation = bankinformationMapper.selectByPrimaryKey(bk_id);
|
|
|
- Double beginamount = bankinformation.getBk_beginamount();
|
|
|
|
|
|
|
+ Double beginamount = bankinformation.getBk_beginamount() == null ? new Double(0) : bankinformation.getBk_beginamount();
|
|
|
|
|
+// if (beginamount < bk_amount){
|
|
|
|
|
+// throw new BizException(500, BizExceptionCode.BANK_AMOUNT_NOTENOUGH.getMessage());
|
|
|
|
|
+// }
|
|
|
Double spending = bankinformation.getBk_spending() == null ? new Double(0) : bankinformation.getBk_spending();
|
|
Double spending = bankinformation.getBk_spending() == null ? new Double(0) : bankinformation.getBk_spending();
|
|
|
Double incomme = bankinformation.getBk_income() == null ? new Double(0) : bankinformation.getBk_income();
|
|
Double incomme = bankinformation.getBk_income() == null ? new Double(0) : bankinformation.getBk_income();
|
|
|
bankinformation.setBk_thisamount(beginamount + incomme - spending - bk_amount);
|
|
bankinformation.setBk_thisamount(beginamount + incomme - spending - bk_amount);
|