fetch_order.model.php 645 B

1234567891011121314151617181920212223242526
  1. <?php
  2. defined('InShopNC') or exit('Access Invalid!');
  3. class fetch_orderModel extends Model
  4. {
  5. public function __construct()
  6. {
  7. parent::__construct('fetch_order');
  8. }
  9. public function getFetchOrderList($condition, $pagesize = '', $field = '*', $order = 'add_time desc', $limit = '')
  10. {
  11. $list = $this->field($field)->where($condition)->page($pagesize)->order($order)->limit($limit)->select();
  12. if (empty($list)) return [];
  13. return $list;
  14. }
  15. public function editFetchOrder($update,$condition)
  16. {
  17. return $this->where($condition)->update($update);
  18. }
  19. }