1
This commit is contained in:
@@ -1046,6 +1046,20 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
||||
}
|
||||
}
|
||||
}
|
||||
if params["fromStoreIDs"] != nil {
|
||||
var fromStoreIDs []int
|
||||
if err = utils.UnmarshalUseNumber([]byte(params["fromStoreIDs"].(string)), &fromStoreIDs); err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
if len(fromStoreIDs) > 0 {
|
||||
if fromStoreIDs[0] == 0 { // 容错
|
||||
sqlWhere += " AND 1 = 0"
|
||||
} else {
|
||||
sqlWhere += " AND t1.from_store_id IN (" + GenQuestionMarks(len(fromStoreIDs)) + ")"
|
||||
sqlParams = append(sqlParams, fromStoreIDs)
|
||||
}
|
||||
}
|
||||
}
|
||||
if params["statuss"] != nil {
|
||||
var statuss []int
|
||||
if err = utils.UnmarshalUseNumber([]byte(params["statuss"].(string)), &statuss); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user