fix(bpm): 优化费用报销逻辑
- 修改了费用借支的判断条件,增加了对剩余金额的比较 - 只有当剩余金额大于 0 时才进行费用报销的处理
This commit is contained in:
parent
f9cf93ff69
commit
f0ada42b65
@ -153,7 +153,7 @@ public class BpmOAExpensesServiceImpl extends BpmOABaseService implements BpmOAE
|
||||
|
||||
// 判断申请人是否存在 费用借支
|
||||
LoanDTO loanDTO = loanApi.getByUserId(staffDTO.getId(), 2).getCheckedData();
|
||||
if (loanDTO != null) {
|
||||
if (loanDTO != null && loanDTO.getRemainingAmount().compareTo(BigDecimal.ZERO) > 0) {
|
||||
|
||||
if (loanDTO.getRemainingAmount().compareTo(expenses.getTotalMoney()) >= 0) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user