123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?php
- namespace app\dao\other\queue;
- use app\dao\BaseDao;
- use app\model\other\queue\QueueAuxiliary;
- class QueueAuxiliaryDao extends BaseDao
- {
-
- protected function setModel(): string
- {
- return QueueAuxiliary::class;
- }
-
- public function saveOrderCacheLog(array $data)
- {
- return $this->getModel()->insertGetId($data);
- }
-
- public function getOrderExpreList(array $where, int $page = 0, int $limit = 0)
- {
- return $this->search($where)->when($page && $limit, function ($query) use ($page, $limit) {
- $query->page($page, $limit);
- })->order('add_time asc')->select()->toArray();
- }
-
- public function getOrderCacheOne(array $where)
- {
- return $this->search($where)->find();
- }
-
- public function deliveryLogList(array $where, int $page = 0, int $limit = 0, string $order = '')
- {
- foreach ($where as $k => $v) {
- if ($v == "") unset($where[$k]);
- }
- return $this->search($where)
- ->order(($order ? $order . ' ,' : '') . 'add_time desc')
- ->page($page, $limit)->select()->toArray();
- }
-
- public function getCacheOidList($bindingId, $type)
- {
- return $this->search(['binding_id' => $bindingId, 'type' => $type])->select()->toArray();
- }
- }
|