供应链管理

This commit is contained in:
gaowdong 2025-07-11 16:39:27 +08:00
parent 0b8d75223e
commit 41fbb4ddbe
2 changed files with 6 additions and 0 deletions

View File

@ -104,6 +104,9 @@ public class ImsIntoInventoryServiceImpl implements IImsIntoInventoryService
if(Objects.isNull(imsIntoInventoryVO)) {
throw new ServiceException("入库单不存在");
}
if(Long.valueOf(2).equals(imsIntoInventoryVO.getStatus())) {
throw new ServiceException("入库单已入库");
}
ImsIntoInventory imsIntoInventory = new ImsIntoInventory();
BeanUtils.copyProperties(imsIntoInventoryUpdate, imsIntoInventory);
imsIntoInventory.setUpdateTime(DateUtils.getNowDate());

View File

@ -123,6 +123,9 @@ public class ImsOutInventoryServiceImpl implements IImsOutInventoryService
if(Objects.isNull(imsOutInventoryVO)) {
throw new ServiceException("出库单不存在");
}
if(Long.valueOf(2).equals(imsOutInventoryVO.getStatus())) {
throw new ServiceException("该出库单已出库");
}
ImsOutInventory imsOutInventory = new ImsOutInventory();
BeanUtils.copyProperties(imsOutInventoryUpdate, imsOutInventory);
imsOutInventory.setUpdateTime(DateUtils.getNowDate());