1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
-
-
- namespace app\admin\model;
-
- use think\Db;
- use think\Model;
-
-
- class ArchivesFlag extends Model
- {
-
- protected function initialize()
- {
-
- parent::initialize();
- }
-
-
-
- public function getList($where = [])
- {
- if (empty($where)) {
- $where['status'] = ['gt', 0];
- }
- $result = Db::name('archives_flag')->where($where)
- ->order("sort_order asc, id asc")
- ->cache(true, EYOUCMS_CACHE_TIME, 'archives_flag')
- ->select();
-
- return $result;
- }
- }
|