feat:修改校验出库单状态

This commit is contained in:
zhouz
2026-07-27 14:56:20 +08:00
parent b54fbb614a
commit 2269022205
3 changed files with 14 additions and 2 deletions

View File

@@ -223,7 +223,13 @@ public class IostorInvServiceImpl implements IostorInvService {
@Override
@Transactional(rollbackFor = Exception.class)
public void updateOutbound(IostorInvUpdateReqVO reqVO) {
validateIostorInvExists(String.valueOf(reqVO.getIostorinvId()));
IostorInvDO current = iostorInvMapper.selectById(reqVO.getIostorinvId());
if (current == null) {
throw exception(IOSTOR_INV_NOT_EXISTS);
}
if (!"10".equals(current.getBillStatus())) {
throw exception(IOSTOR_INV_UPDATE_STATUS_INVALID);
}
Map<Long, AvailableInventoryRespVO> inventorySnapshot = validateAndLockInventory(reqVO);
BigDecimal totalWeight = reqVO.getDetails().stream()
.map(IostorInvCreateReqVO.Detail::getPlanQty)