1234567891011121314151617181920212223242526 |
- <?php
- defined('InShopNC') or exit('Access Invalid!');
- class fetch_orderModel extends Model
- {
- public function __construct()
- {
- parent::__construct('fetch_order');
- }
- public function getFetchOrderList($condition, $pagesize = '', $field = '*', $order = 'add_time desc', $limit = '')
- {
- $list = $this->field($field)->where($condition)->page($pagesize)->order($order)->limit($limit)->select();
- if (empty($list)) return [];
- return $list;
- }
- public function editFetchOrder($update,$condition)
- {
- return $this->where($condition)->update($update);
- }
- }
|