wmsInventory
This commit is contained in:
parent
9188de1d50
commit
62c8ab2cfb
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user