refill_exception.model.php 732 B

123456789101112131415161718192021222324
  1. <?php
  2. defined('InShopNC') or exit('Access Invalid!');
  3. class refill_exceptionModel extends Model
  4. {
  5. public function __construct()
  6. {
  7. parent::__construct('refill_exception');
  8. }
  9. public function getRefillExceptionList($condition, $pagesize = '',$total = 0, $field = '*', $order = 'create_time desc', $limit = '', $master = false)
  10. {
  11. $list = $this->field($field)->where($condition)->page($pagesize,$total)->order($order)->limit($limit)->master($master)->select();
  12. if (empty($list)) return [];
  13. return $list;
  14. }
  15. public function ExceptionHandled($exc_id, $update)
  16. {
  17. $update['exc_state'] = 1;
  18. return $this->where(['exc_id' => $exc_id])->update($update);
  19. }
  20. }