免费金额创建订单
This commit is contained in:
parent
b37be9472f
commit
cbdf804c9c
@ -43,6 +43,7 @@ public class AccountItemVO {
|
||||
private String checkStatus;
|
||||
private Integer isPostpaid;
|
||||
|
||||
|
||||
public String getOrderType() {
|
||||
return orderType == null ? "" : orderType.trim();
|
||||
}
|
||||
|
@ -101,8 +101,10 @@ public class AccountItemServiceImpl extends DefaultBaseService implements IAccou
|
||||
new1 = old1 + accountItemVO.getAccountMoney();
|
||||
} else {
|
||||
new1 = old1 - accountItemVO.getAccountMoney();
|
||||
if (accountItemVO.getIsPostpaid() == 0 && new1 < 0) {
|
||||
throw new SaveException("余额不足抵扣");
|
||||
if(accountItemVO.getAccountMoney() != 0) {
|
||||
if (accountItemVO.getIsPostpaid() == 0 && new1 < 0) {
|
||||
throw new SaveException("余额不足抵扣");
|
||||
}
|
||||
}
|
||||
}
|
||||
accountItemVO.setAccountBeforeMoney(old1);
|
||||
|
Loading…
Reference in New Issue
Block a user