Browse Source

✨ feat(order): 调整订单创建时的商品图片存储方式

- 将goodsImage字段替换为imageFileId,存储图片文件ID而非完整URL
- 优化订单数据结构,与商品模块的图片管理保持一致
yourname 4 months ago
parent
commit
6e42b52ee6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/server/modules/orders/order.service.ts

+ 1 - 1
src/server/modules/orders/order.service.ts

@@ -120,7 +120,7 @@ export class OrderService extends GenericCrudService<Order> {
         orderNo,
         goodsId: info.goods.id,
         goodsName: info.goods.name,
-        goodsImage: info.goods.image,
+        imageFileId: info.goods.imageFileId,
         goodsType: info.goods.goodsType,
         supplierId: info.goods.supplierId,
         costPrice: info.goods.costPrice,