123456789101112131415161718192021222324 |
- <?php
- defined('InShopNC') or exit('Access Invalid!');
- class refill_exceptionModel extends Model
- {
- public function __construct()
- {
- parent::__construct('refill_exception');
- }
- public function getRefillExceptionList($condition, $pagesize = '',$total = 0, $field = '*', $order = 'create_time desc', $limit = '', $master = false)
- {
- $list = $this->field($field)->where($condition)->page($pagesize,$total)->order($order)->limit($limit)->master($master)->select();
- if (empty($list)) return [];
- return $list;
- }
- public function ExceptionHandled($exc_id, $update)
- {
- $update['exc_state'] = 1;
- return $this->where(['exc_id' => $exc_id])->update($update);
- }
- }
|