更换显示的店铺
This commit is contained in:
parent
7b566f3fb8
commit
6eb9e3777c
@ -25,9 +25,9 @@ class LocalStoreLogic extends Logic
|
||||
$s = "and address like '%" . $data['c_name'] . "%'";
|
||||
}
|
||||
|
||||
// if ($data['c_name'] == '嘉兴市') {
|
||||
// $city_where[] = ['lstore_id', '=', 22];
|
||||
// }
|
||||
if ($data['c_name'] == '嘉兴市') {
|
||||
$city_where[] = ['lstore_id', '=', 138];
|
||||
}
|
||||
}
|
||||
|
||||
$count = $model->where('is_delete', 0)
|
||||
@ -47,11 +47,11 @@ class LocalStoreLogic extends Logic
|
||||
// FROM ls_local_store where is_delete = 0 $s
|
||||
// ORDER BY distance limit $page,$size";
|
||||
|
||||
// if (isset($data['c_name']) && $data['c_name'] == '嘉兴市') {
|
||||
// $sql = "SELECT * FROM ls_local_store where lstore_id = 22 and is_delete = 0 and store_state = 1 and shopLogo is not null $s ORDER BY lstore_id asc limit " . $page . "," . $size;
|
||||
// } else {
|
||||
if (isset($data['c_name']) && $data['c_name'] == '嘉兴市') {
|
||||
$sql = "SELECT * FROM ls_local_store where lstore_id = 138 and is_delete = 0 and store_state = 1 and shopLogo is not null $s ORDER BY lstore_id asc limit " . $page . "," . $size;
|
||||
} else {
|
||||
$sql = "SELECT * FROM ls_local_store where is_delete = 0 and store_state = 1 and shopLogo is not null $s ORDER BY lstore_id asc limit " . $page . "," . $size;
|
||||
// }
|
||||
}
|
||||
|
||||
// var_dump($sql);
|
||||
$lists = Db::query($sql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user