12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace app\services\activity\integral;
- use app\dao\activity\integral\StoreIntegralOrderStatusDao;
- use app\services\BaseServices;
- use crmeb\traits\ServicesTrait;
- class StoreIntegralOrderStatusServices extends BaseServices
- {
- use ServicesTrait;
-
- public function __construct(StoreIntegralOrderStatusDao $dao)
- {
- $this->dao = $dao;
- }
-
- public function getStatusList(array $where)
- {
- [$page, $limit] = $this->getPageValue();
- $list = $this->dao->getStatusList($where, $page, $limit);
- 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');
- }
- }
|