|
|
|
|
@ -331,11 +331,11 @@ public class StOtherOutRecordServiceImpl extends BaseServiceImpl<StOtherOutRecor |
|
|
|
|
throw new RuntimeException("操作人ID不能为空"); |
|
|
|
|
} |
|
|
|
|
StRealtimeStock stock = baseMapper.getStock(goodsCode, piNo); |
|
|
|
|
stock.setOutQuantity(stock.getQuantity()); |
|
|
|
|
|
|
|
|
|
if (stock == null) { |
|
|
|
|
throw new RuntimeException("未查询到该物料[" + goodsCode + "]批次[" + piNo + "]的库存数据"); |
|
|
|
|
} |
|
|
|
|
stock.setOutQuantity(stock.getQuantity()); |
|
|
|
|
|
|
|
|
|
StOtherOutRecord stOtherOutRecord = new StOtherOutRecord(); |
|
|
|
|
stOtherOutRecord.setOutType(StOtherOutRecord.OUT_TYPE_PRODUCTION); |
|
|
|
|
stOtherOutRecord.setPicker(userId); |
|
|
|
|
@ -344,7 +344,7 @@ public class StOtherOutRecordServiceImpl extends BaseServiceImpl<StOtherOutRecor |
|
|
|
|
this.addOtherOutRecord(stOtherOutRecord, Collections.singletonList(stock) , AuthUtil.getUser()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
@Override |
|
|
|
|
public List<StOtherOutRecordExcel> exportStOtherOutRecord(Wrapper<StOtherOutRecord> queryWrapper) { |
|
|
|
|
List<StOtherOutRecordExcel> stOtherOutRecordList = baseMapper.exportStOtherOutRecord(queryWrapper); |
|
|
|
|
//stOtherOutRecordList.forEach(stOtherOutRecord -> {
|
|
|
|
|
|