根据excel导入标品
This commit is contained in:
@@ -577,9 +577,10 @@ func GetStorePriceScore(db *DaoDB, storeIDs, vendorIDs []int, fromScore, toScore
|
||||
LEFT JOIN act_map c ON c.act_id = b.act_id
|
||||
LEFT JOIN act d ON d.id = c.act_id
|
||||
WHERE 1=1
|
||||
AND d.status = ?
|
||||
`
|
||||
sqlParams := []interface{}{
|
||||
model.ActSkuDirectDown, model.ActSkuSecKill,
|
||||
model.ActSkuDirectDown, model.ActSkuSecKill, model.ActStatusCreated,
|
||||
}
|
||||
if len(storeIDs) > 0 {
|
||||
sql += " AND a.store_id IN(" + GenQuestionMarks(len(storeIDs)) + ")"
|
||||
@@ -592,12 +593,12 @@ func GetStorePriceScore(db *DaoDB, storeIDs, vendorIDs []int, fromScore, toScore
|
||||
sql += `
|
||||
AND NOW() BETWEEN d.begin_at AND d.end_at
|
||||
AND a.status = ?
|
||||
AND a.deleted_at = ?
|
||||
AND a.deleted_at = ? AND b.deleted_at = ? AND c.deleted_at = ? AND d.deleted_at = ?
|
||||
GROUP BY 1,2,3)t1
|
||||
GROUP BY 1)t2 ON t2.store_id = a.store_id
|
||||
WHERE 1=1
|
||||
`
|
||||
sqlParams = append(sqlParams, model.StoreSkuBindStatusNormal, utils.DefaultTimeValue)
|
||||
sqlParams = append(sqlParams, model.StoreSkuBindStatusNormal, utils.DefaultTimeValue, utils.DefaultTimeValue, utils.DefaultTimeValue, utils.DefaultTimeValue)
|
||||
if fromScore != 0 || toScore != 0 {
|
||||
sql += " AND a.score BETWEEN ? AND ?"
|
||||
sqlParams = append(sqlParams, fromScore, toScore)
|
||||
|
||||
Reference in New Issue
Block a user