This commit is contained in:
邹宗楠
2025-12-18 09:33:16 +08:00
parent aa0e94ac6e
commit 422ff821f1
13 changed files with 69360 additions and 69319 deletions

View File

@@ -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 {