fix(printer): 修正照片打印产品数量设置
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good

- 将照片打印产品的数量固定为1
- 保留购买次数为源ID列表的大小
- 确保每个照片打印项只计算一次数量
This commit is contained in:
2026-02-14 19:22:50 +08:00
parent f9c776b3ab
commit 062a128dcc

View File

@@ -2037,7 +2037,7 @@ public class PrinterServiceImpl implements PrinterService {
ProductItem photoItem = new ProductItem();
photoItem.setProductType(ProductType.PHOTO_PRINT);
photoItem.setProductId(scenicId.toString());
photoItem.setQuantity(sourceIds.size());
photoItem.setQuantity(1);
photoItem.setPurchaseCount(sourceIds.size());
photoItem.setScenicId(scenicId.toString());
productItems.add(photoItem);