This commit is contained in:
suyl
2021-06-24 14:20:00 +08:00
parent 998ebe942f
commit 38a162969b

View File

@@ -1151,7 +1151,7 @@ func GetStoresSkusSaleInfoNew(ctx *jxcontext.Context, vendorIDs, storeIDs, skuID
sql += " AND (e.name LIKE ? OR d.name LIKE ? OR d.id = ? OR a.vendor_order_id = ?)"
sqlParams = append(sqlParams, "%"+keyword+"%", "%"+keyword+"%", keyword, keyword)
}
sql += " GROUP BY 1, 2, 3, 4, 5, 6"
sql += " GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9"
if dataMap["saleCountBegin"] != nil || dataMap["saleCountEnd"] != nil {
sql += " HAVING"
if dataMap["saleCountBegin"] != nil {