|
@@ -60,7 +60,7 @@ public class ListenerMaterialApply implements TaskListener, ExecutionListener {
|
|
BigDecimal amount = new BigDecimal(detail.get("amount").toString());
|
|
BigDecimal amount = new BigDecimal(detail.get("amount").toString());
|
|
BigDecimal subtract = amount.add(occupyDetails.getOrDefault(materialName, BigDecimal.ZERO)).subtract(inventoryDetails.getOrDefault(materialName, BigDecimal.ZERO));
|
|
BigDecimal subtract = amount.add(occupyDetails.getOrDefault(materialName, BigDecimal.ZERO)).subtract(inventoryDetails.getOrDefault(materialName, BigDecimal.ZERO));
|
|
if (subtract.compareTo(BigDecimal.ZERO) > 0) {
|
|
if (subtract.compareTo(BigDecimal.ZERO) > 0) {
|
|
- msg += materialName + " 现有库存:" + inventoryDetails.getOrDefault(materialName, BigDecimal.ZERO) + " 单据占用:" + occupyDetails.getOrDefault(materialName, BigDecimal.ZERO) + " 缺失:" + subtract +" ";
|
|
|
|
|
|
+ msg += materialName + " 现有库存:" + inventoryDetails.getOrDefault(materialName, BigDecimal.ZERO) + " 单据占用:" + occupyDetails.getOrDefault(materialName, BigDecimal.ZERO) + " 需要补足:" + subtract +" ";
|
|
}
|
|
}
|
|
};
|
|
};
|
|
if (StringUtils.isNotBlank(msg)) {
|
|
if (StringUtils.isNotBlank(msg)) {
|