123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
- namespace app\services\order;
- use app\dao\order\StoreOrderStatusDao;
- use app\services\BaseServices;
- use crmeb\traits\ServicesTrait;
- class StoreOrderStatusServices extends BaseServices
- {
- use ServicesTrait;
-
- public function __construct(StoreOrderStatusDao $dao)
- {
- $this->dao = $dao;
- }
-
- public function getStatusList(array $where)
- {
- $list = $this->dao->getStatusList($where);
- foreach ($list as &$item) {
- if (is_int($item['change_time'])) $item['change_time'] = date('Y-m-d H:i:s', $item['change_time']);
- }
- $count = $this->dao->count($where);
- return compact('list', 'count');
- }
- }
|