This commit is contained in:
richboo111
2022-07-27 16:12:29 +08:00
parent 2a73940961
commit a4c1c1dc75

View File

@@ -133,7 +133,7 @@ func GetOrderByID(db *DaoDB, orderID string) (*model.Order, error) {
}
if orderID != "" {
sql += "AND order_id = ?"
sqlParams = append(sqlParams, TableOrder, orderID)
sqlParams = append(sqlParams, orderID)
}
orderInfos := &model.Order{}
if err := GetRow(db, orderInfos, sql, sqlParams); err != nil {