v1.0.79 #91

Merged
timi merged 9 commits from dev into master 2026-11-20 05:12:15 +00:00
Showing only changes of commit 78cfe0708c - Show all commits
@@ -174,7 +174,13 @@ public class GaoPointRedemptionServiceImplement implements GaoPointRedemptionSer
}
if (selection.product().getProductType() == GaoProduct.ProductType.GOODS) {
GaoStockChangeItem stockItem = stockItem(selection, quantity, baseQuantity);
stockService.outForRedemption(storeId, redemption.getId(), stockItem, requestNo, operatorUserId);
GaoProductStockRecord stockRecord = stockService.outForRedemption(storeId, redemption.getId(), stockItem, requestNo, operatorUserId);
for (Attachment source : attachmentService.listByBizId(Attachment.BizType.GAO_POINT_REDEMPTION, redemption.getId())) {
Attachment copy = attachmentService.clone(source.getId());
copy.setBizType(Attachment.BizType.GAO_STOCK_RECORD);
copy.setBizId(stockRecord.getId());
attachmentService.update(copy);
}
}
return detail(storeId, redemption.getId());
}