This commit is contained in:
suyl
2021-06-09 16:50:02 +08:00
parent b2d5395c29
commit a76b6c5aaa
2 changed files with 20 additions and 0 deletions

View File

@@ -915,6 +915,22 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
sqlParams = append(sqlParams, utils.MustInterface2Int64(params["brandID"]))
}
}
if params["marketManPhone"] != nil {
sqlWhere += " AND t5.market_man_phone = ?"
sqlParams = append(sqlParams, params["marketManPhone"].(string))
}
if params["jdPhone"] != nil {
sqlWhere += " AND t5.operator_phone = ?"
sqlParams = append(sqlParams, params["jdPhone"].(string))
}
if params["mtPhone"] != nil {
sqlWhere += " AND t5.operator_phone2 = ?"
sqlParams = append(sqlParams, params["mtPhone"].(string))
}
if params["ebaiPhone"] != nil {
sqlWhere += " AND t5.operator_phone3 = ?"
sqlParams = append(sqlParams, params["ebaiPhone"].(string))
}
if params["deliveryTypes"] != nil {
var deliveryTypes []string
if err = utils.UnmarshalUseNumber([]byte(params["deliveryTypes"].(string)), &deliveryTypes); err != nil {