feat:修改校验出库单状态
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user