| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
- // +----------------------------------------------------------------------
- // | Author: CRMEB Team <admin@crmeb.com>
- // +----------------------------------------------------------------------
- namespace app\common\dao\user;
- use app\common\dao\BaseDao;
- use app\common\model\BaseModel;
- use app\common\model\user\AwardIntegralPrice;
- use app\common\model\user\AwardLake;
- /**
- * Class AwardLakeDao
- * @package app\common\dao\user
- * @author xaboy
- * @day 2020-05-07
- */
- class AwardLakeDao extends BaseDao
- {
- /**
- * @return BaseModel
- * @author xaboy
- * @day 2020-03-30
- */
- protected function getModel(): string
- {
- return AwardLake::class;
- }
- public function search($where)
- {
- // return $this->getModel()::getDB()->where($where);
- $query = $this->getModel()::getDB()
- ->when(isset($where['type']) && $where['type'] !== '',function($query) use($where){
- $query->where('type',$where['type']);
- });
- return $query;
- }
- }
|