...
|
...
|
@@ -59,8 +59,9 @@ class ActivityModel extends Model |
|
|
public function selectCityData($city_id){
|
|
|
$order = "create_time desc";
|
|
|
$where['a.delete_time'] = ['eq',0];
|
|
|
$where['a.position_id'] = $city_id;
|
|
|
$where['is_up'] = ['eq',1];
|
|
|
if (!empty($city_id)){
|
|
|
$where['a.position_id'] = $city_id;
|
|
|
}
|
|
|
$data = $this->alias('a')
|
|
|
->field('a.*,p.province_name,act.type_name')
|
|
|
->join('activity_type act','act.id=a.activity_type','LEFT')
|
...
|
...
|
@@ -74,8 +75,11 @@ class ActivityModel extends Model |
|
|
public function selectTypeData($type_id){
|
|
|
$order = "create_time desc";
|
|
|
$where['a.delete_time'] = ['eq',0];
|
|
|
$where['a.activity_type'] = $type_id;
|
|
|
$where['is_up'] = ['eq',1];
|
|
|
if (!empty($type_id)){
|
|
|
$where['a.activity_type'] = $type_id;
|
|
|
}
|
|
|
|
|
|
|
|
|
$data = $this->alias('a')
|
|
|
->field('a.*,p.province_name,act.type_name')
|
|
|
->join('activity_type act','act.id=a.activity_type','LEFT')
|
...
|
...
|
|