Commit 6696f2a1 by guojuxing

到账金额不能超过计划金额

parent 5f95d0fe
......@@ -154,6 +154,10 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA
if (accountAmount == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "到账金额不能为空");
}
if (tab.getPlannedAmount() < accountAmount) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "到账金额不能超过计划金额");
}
TransferAccountsApprovalDTO dto = new TransferAccountsApprovalDTO();
dto.setTransferApprovalId(transferApprovalId);
dto.setAccountAmount(accountAmount);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment