You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
877 B
38 lines
877 B
<?php
|
|
defined('IN_IA') or exit('Access Denied');
|
|
load()->classs('table');
|
|
|
|
class AgentareaTable extends We7Table {
|
|
|
|
protected $tableName = 'wlmerchant_oparea';
|
|
|
|
public function getAreaList() {
|
|
return $this->query->from($this->tableName)->orderby('sort', 'DESC')->getall();
|
|
}
|
|
|
|
public function selectFields($select) {
|
|
$this->query->select($select);
|
|
return $this;
|
|
}
|
|
|
|
public function searchWithLevel($level) {
|
|
$this->query->where('level', $level);
|
|
return $this;
|
|
}
|
|
|
|
public function searchWithHot() {
|
|
$this->query->where('ishot', 1);
|
|
return $this;
|
|
}
|
|
|
|
public function searchWithOpen() {
|
|
$this->query->where('status', 1);
|
|
return $this;
|
|
}
|
|
|
|
public function searchWithUniacid($uniacid) {
|
|
$this->query->where('uniacid', $uniacid);
|
|
return $this;
|
|
}
|
|
|
|
}
|