StoreActivityRelatedDao.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\common\dao\store;
  12. use app\common\dao\BaseDao;
  13. use app\common\model\store\StoreActivity;
  14. use app\common\model\store\StoreActivityRelated;
  15. /**
  16. *
  17. * Class StoreActivityDao
  18. * @package app\common\dao\system\merchant
  19. */
  20. class StoreActivityRelatedDao extends BaseDao
  21. {
  22. protected function getModel(): string
  23. {
  24. return StoreActivityRelated::class;
  25. }
  26. /**
  27. * 根据条件搜索数据
  28. *
  29. * 本函数旨在通过提供的条件数组来执行搜索操作。它封装了搜索逻辑,使调用者可以通过简单地传递条件数组来执行复杂的搜索。
  30. * 条件数组可以包含多个条件,每个条件由字段名和对应的值组成,可以用于构建SQL查询中的WHERE子句。
  31. *
  32. * @param array $where 搜索条件数组,包含一个或多个搜索条件
  33. * @return mixed 返回搜索结果,具体类型取决于getSearch方法的实现
  34. */
  35. public function search(array $where = [])
  36. {
  37. return $this->getSearch($where);
  38. }
  39. }