From a64c024dd83f27c0a38f1361a1e7d1f5a63f250f Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 11 Jan 2019 22:17:11 +0800 Subject: [PATCH] - GetOrderSkuInfo don't append sku spec if already existed --- business/jxcallback/orderman/orderman_ext.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 137f98f9d..263afbc66 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -91,7 +91,7 @@ func (c *OrderManager) GetOrderSkuInfo(ctx *jxcontext.Context, vendorOrderID str if globals.OrderUseNewTable { fullSkuNameSQL := "t1.sku_name" if vendorID == model.VendorIDJD { - fullSkuNameSQL = "CONCAT(t1.sku_name, IF(t3.is_spu = 1, CONCAT('约', t2.spec_quality, t2.spec_unit, '/', t3.unit, ';'), ''))" + fullSkuNameSQL = "CONCAT(t1.sku_name, IF(t3.is_spu = 1 AND LOCATE(';', t1.sku_name) = 0, CONCAT('[约', t2.spec_quality, t2.spec_unit, '/', t3.unit, ']'), ''))" } db := dao.GetDB() if vendorID == model.VendorIDELM {