aa
This commit is contained in:
@@ -910,12 +910,22 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
|
||||
sqlParams = append(sqlParams, utils.MustInterface2Int64(params["brandID"]))
|
||||
}
|
||||
}
|
||||
if params["deliveryType"] != nil {
|
||||
if params["deliveryType"].(string) != "" {
|
||||
sqlWhere += " AND t1.delivery_type = ?"
|
||||
sqlParams = append(sqlParams, params["deliveryType"].(string))
|
||||
if params["deliveryTypes"] != nil {
|
||||
var deliveryTypes []string
|
||||
if err = utils.UnmarshalUseNumber([]byte(params["deliveryTypes"].(string)), &deliveryTypes); err != nil {
|
||||
return nil, 0, err
|
||||
}
|
||||
if len(deliveryTypes) > 0 {
|
||||
sqlWhere += " AND t1.delivery_type IN (" + GenQuestionMarks(len(deliveryTypes)) + ")"
|
||||
sqlParams = append(sqlParams, deliveryTypes)
|
||||
}
|
||||
}
|
||||
// if params["deliveryType"] != nil {
|
||||
// if params["deliveryType"].(string) != "" {
|
||||
// sqlWhere += " AND t1.delivery_type = ?"
|
||||
// sqlParams = append(sqlParams, params["deliveryType"].(string))
|
||||
// }
|
||||
// }
|
||||
if params["cities"] != nil {
|
||||
var cities []int
|
||||
if err = utils.UnmarshalUseNumber([]byte(params["cities"].(string)), &cities); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user