aa
This commit is contained in:
@@ -4362,7 +4362,7 @@ type QueryPageSkusResult struct {
|
||||
CityName string `json:"cityName"`
|
||||
}
|
||||
|
||||
func QueryPageSkus(ctx *jxcontext.Context, vendorID int, vendorStoreID, keyword string, lng, lat float64, radius, offset, pageSize int) (pagedInfo *model.PagedInfo, err error) {
|
||||
func QueryPageSkus(ctx *jxcontext.Context, vendorID int, vendorStoreIDs []string, keyword string, lng, lat float64, radius, offset, pageSize int) (pagedInfo *model.PagedInfo, err error) {
|
||||
var (
|
||||
db = dao.GetDB()
|
||||
results []*QueryPageSkusResult
|
||||
@@ -4410,9 +4410,9 @@ func QueryPageSkus(ctx *jxcontext.Context, vendorID int, vendorStoreID, keyword
|
||||
sql += " AND t1.sku_name LIKE ?"
|
||||
sqlParams = append(sqlParams, keywordLike)
|
||||
}
|
||||
if vendorStoreID != "" {
|
||||
sql += " AND t1.store_id LIKE ?"
|
||||
sqlParams = append(sqlParams, "%"+vendorStoreID+"%")
|
||||
if len(vendorStoreIDs) > 0 {
|
||||
sql += " AND t1.store_id IN (" + dao.GenQuestionMarks(len(vendorStoreIDs)) + ")"
|
||||
sqlParams = append(sqlParams, vendorStoreIDs)
|
||||
}
|
||||
sql += `
|
||||
LIMIT ? OFFSET ?
|
||||
|
||||
Reference in New Issue
Block a user