From a6f4dda63df5a7f468a6ec429d67e9c4095ce9f0 Mon Sep 17 00:00:00 2001
From: zepengdev <lzpsmith@outlook.com>
Date: Fri, 13 Jun 2025 16:45:33 +0800
Subject: [PATCH] feat(product): 优化商品图片功能 refactor(store): 重构店铺-商户关联 fix(api): 标准化接口字段

---
 oying-system/src/main/java/com/oying/modules/pc/product/service/impl/ProductServiceImpl.java |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/oying-system/src/main/java/com/oying/modules/pc/product/service/impl/ProductServiceImpl.java b/oying-system/src/main/java/com/oying/modules/pc/product/service/impl/ProductServiceImpl.java
index 5a91767..879e105 100644
--- a/oying-system/src/main/java/com/oying/modules/pc/product/service/impl/ProductServiceImpl.java
+++ b/oying-system/src/main/java/com/oying/modules/pc/product/service/impl/ProductServiceImpl.java
@@ -10,7 +10,6 @@
 import com.oying.utils.FileUtil;
 import com.oying.utils.PageResult;
 import com.oying.utils.PageUtil;
-import com.oying.utils.SecurityUtils;
 import lombok.RequiredArgsConstructor;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
@@ -46,7 +45,6 @@
     @Override
     @Transactional(rollbackFor = Exception.class)
     public void create(Product resources) {
-        resources.setCreateBy(SecurityUtils.getCurrentUserId());
         productMapper.insert(resources);
     }
 
@@ -55,7 +53,6 @@
     public void update(Product resources) {
         Product product = getById(resources.getProductId());
         product.copy(resources);
-        product.setUpdateBy(SecurityUtils.getCurrentUserId());
         productMapper.updateById(product);
     }
 
@@ -81,9 +78,9 @@
             map.put("商品名称", product.getName());
             map.put("商品标题", product.getTitle());
             map.put("分类ID", product.getCategoryId());
-            map.put("状态:1000-草稿 1001上架 1002下架", product.getStatus());
-            map.put("主图片", product.getMainImage());
-            map.put("详情图片", product.getDetailImage());
+            map.put("状态", product.getStatus());
+            map.put("主图片", product.getMainImageId());
+            map.put("主图地址", product.getMainImageUrl());
             map.put("商品描述", product.getDescription());
             map.put("销售价格", product.getPrice());
             map.put("库存数量", product.getStockQuantity());

--
Gitblit v1.9.3