优化仓库权限

This commit is contained in:
季圣华
2021-07-12 01:01:20 +08:00
parent a3c36a5562
commit c6a1a7b4de
2 changed files with 28 additions and 11 deletions

View File

@@ -206,9 +206,13 @@ public class DepotHeadController {
Supplier supplier = supplierService.getSupplier(organId);
BigDecimal beginNeed = BigDecimal.ZERO;
if (("客户").equals(supType)) {
beginNeed = supplier.getBeginNeedGet();
if(supplier.getBeginNeedGet()!=null) {
beginNeed = supplier.getBeginNeedGet();
}
} else if (("供应商").equals(supType)) {
beginNeed = supplier.getBeginNeedPay();
if(supplier.getBeginNeedPay()!=null) {
beginNeed = supplier.getBeginNeedPay();
}
}
BigDecimal firstMoney = depotHeadService.findTotalPay(organId, beginTime, supType)
.subtract(accountHeadService.findTotalPay(organId, beginTime, supType)).add(beginNeed);