- 修复getOrders按城市查询的BUG
This commit is contained in:
@@ -382,8 +382,7 @@ func (c *OrderManager) getOrders(ctx *jxcontext.Context, isIncludeSku bool, from
|
||||
return nil, 0, err
|
||||
}
|
||||
if len(cities) > 0 {
|
||||
sql += " JOIN store st ON t1.store_id = st.id"
|
||||
sqlWhere += " AND st.city_code IN (" + dao.GenQuestionMarks(len(cities)) + ")"
|
||||
sqlWhere += " AND t5.city_code IN (" + dao.GenQuestionMarks(len(cities)) + ") AND t5.id IS NOT NULL"
|
||||
sqlParams = append(sqlParams, cities)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user