|
|
@ -76,6 +76,7 @@ public class PurchasereturnRecordMainServiceImpl implements PurchasereturnRecord |
|
|
|
mainDO.setOutTransactionType(businesstypeDO.getOutTransactionType()); |
|
|
|
mainDO.setFromAreaCodes(businesstypeDO.getOutAreaCodes()); |
|
|
|
mainDO.setToAreaCodes(businesstypeDO.getInAreaCodes()); |
|
|
|
mainDO.setId(null); |
|
|
|
purchasereturnRecordMainMapper.insert(mainDO); |
|
|
|
//库存事务
|
|
|
|
List<TransactionCreateReqVO> transactionCreateReqVOList = new ArrayList<>(); |
|
|
@ -84,6 +85,7 @@ public class PurchasereturnRecordMainServiceImpl implements PurchasereturnRecord |
|
|
|
for (PurchasereturnRecordDetailDO detailDO : subDOList) { |
|
|
|
detailDO.setMasterId(mainDO.getId()); |
|
|
|
detailDO.setNumber(number); |
|
|
|
detailDO.setId(null); |
|
|
|
//添加库存事务入list
|
|
|
|
TransactionCreateReqVO transactionCreateReqVOIn = new TransactionCreateReqVO(); |
|
|
|
BeanUtils.copyProperties(detailDO, transactionCreateReqVOIn); |
|
|
|