瀏覽代碼

商品资料part3

Aslee 3 年之前
父節點
當前提交
20c20ec486
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/resources/mappings/modules/archive/CmProductArchiveMapper.xml

+ 2 - 2
src/main/resources/mappings/modules/archive/CmProductArchiveMapper.xml

@@ -9,8 +9,8 @@
 		if(a.productId is not null,s.name,a.shopName) AS "shopName",
 		if(a.productId is not null,p.mainImage,a.productImage) AS "productImage",
 		a.archiveLevel AS "archiveLevel",
-		a.productType AS "productType",
-		if(a.productId is not null,ifnull(p.commodityType,a.productClassify),a.productClassify) AS "productClassify",
+		if(a.productId is not null,ifnull(p.commodityType,a.productType),a.productType) AS "productType",
+		a.productClassify AS "productClassify",
 		if(a.productId is not null and p.commodityType is null,0,1) AS "existProductType",
 		a.addTime AS "addTime"
 	</sql>