1
This commit is contained in:
@@ -766,6 +766,9 @@ func getGetStoresSkusBaseSQL(db *dao.DaoDB, storeIDs, skuIDs []int, upcs []strin
|
|||||||
sql += " AND t4.location_code LIKE ? "
|
sql += " AND t4.location_code LIKE ? "
|
||||||
sqlParams = append(sqlParams, "%"+params["minStock"].(string)+"%")
|
sqlParams = append(sqlParams, "%"+params["minStock"].(string)+"%")
|
||||||
}
|
}
|
||||||
|
if params["isLocationCode"] != "" && params["isLocationCode"] != nil {
|
||||||
|
sql += " AND (t4.location_code = '' OR t4.location_code = 'EMPTY_VALUE') "
|
||||||
|
}
|
||||||
return sql, sqlParams, err
|
return sql, sqlParams, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ func (c *StoreSkuController) GetStoreSkus() {
|
|||||||
// @Param minStock query int false "最小库存"
|
// @Param minStock query int false "最小库存"
|
||||||
// @Param maxStock query int false "最大库存"
|
// @Param maxStock query int false "最大库存"
|
||||||
// @Param locationCode query string false "货架码"
|
// @Param locationCode query string false "货架码"
|
||||||
|
// @Param isLocationCode query bool false "是否有货架码"
|
||||||
// @Success 200 {object} controllers.CallResult
|
// @Success 200 {object} controllers.CallResult
|
||||||
// @Failure 200 {object} controllers.CallResult
|
// @Failure 200 {object} controllers.CallResult
|
||||||
// @router /GetStoresSkus [get,post]
|
// @router /GetStoresSkus [get,post]
|
||||||
|
|||||||
Reference in New Issue
Block a user