- GetOrderSkuInfo don't append sku spec if already existed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user