wmsInventory

This commit is contained in:
liumingxiy 2024-11-13 17:54:35 +08:00
parent 9188de1d50
commit 62c8ab2cfb

View File

@ -107,13 +107,15 @@ public class WmsInventoryPlanServiceImpl implements IWmsInventoryPlanService {
wmsInventoryPlan.setUpdateTime(DateUtils.getNowDate());
wmsInventoryPlan.getWmsInventoryList().forEach(wmsInventory -> {
wmsInventory.setUpdateTime(DateUtils.getNowDate());
if (wmsInventory.getInventoryCount() != null && wmsInventory.getInventoryCount() != 0) {
if (wmsInventory.getInventoryCount() != null) {
wmsInventory.setInventoryTime(new Date(System.currentTimeMillis()));
wmsInventory.setDiffCount(Math.abs(wmsInventory.getSystemCount() - wmsInventory.getInventoryCount()));
}
if (wmsInventory.getAgCount() != null && wmsInventory.getAgCount() != 0) {
if (wmsInventory.getAgCount() != null) {
wmsInventory.setAgTime(new Date(System.currentTimeMillis()));
wmsInventory.setDiffCount(Math.abs(wmsInventory.getSystemCount() - wmsInventory.getAgCount()));
} else {
wmsInventory.setAgTime(null);
}
wmsInventoryMapper.updateWmsInventory(wmsInventory);
});