| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <?php
- /**
- * Created by PhpStorm.
- * User: wangming
- * Date: 2019/1/22
- * Time: 21:34
- */
- class Common_guest{
- public function __construct()
- {
- }
- static public function getInfoById($id)
- {
- $Table_common_guest = new Table_common_guest();
- return $Table_common_guest->getInfoById($id);
- }
- static public function getInfoByPhone($phone)
- {
- $Table_common_guest = new Table_common_guest();
- return $Table_common_guest->getInfoByPhone($phone);
- }
- static public function getInfoByOpenId($openId)
- {
- $Table_common_guest = new Table_common_guest();
- return $Table_common_guest->getInfoByOpenId($openId);
- }
- static public function add($attrs)
- {
- $Table_common_guest = new Table_common_guest();
- $id = $Table_common_guest->add($attrs);
- return $id;
- }
- static public function edit($id, $attrs)
- {
- $Table_common_guest = new Table_common_guest();
- return $Table_common_guest->edit($id, $attrs);
- }
- static public function update($id, $attrs)
- {
- $Table_common_guest = new Table_common_guest();
- return $Table_common_guest->update($id, $attrs);
- }
- static public function del($id)
- {
- $Table_common_guest = new Table_common_guest();
- return $Table_common_guest->del($id);
- }
- static public function getList($filter = array(), $count=0, $page=0, $pageSize=0)
- {
- $Table_common_guest = new Table_common_guest();
- return $Table_common_guest->getList($filter, $count, $page, $pageSize);
- }
- static public function getListByPage($filter = array(), $page=0, $pagesize=0){
- $Table_common_guest = new Table_common_guest();
- return $Table_common_guest->getList($filter, 0, $page, $pagesize);
- }
- static public function getCountAll($filter = array()){
- $Table_common_guest = new Table_common_guest();
- return $Table_common_guest->getList($filter, 1);
- }
- }
|