WorkMemberRelationDao.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\dao\work;
  12. use app\dao\BaseDao;
  13. use app\model\work\WorkMemberRelation;
  14. /**
  15. * 企业微信成员关联表
  16. * Class WorkMemberRelationDao
  17. * @package app\dao\work
  18. */
  19. class WorkMemberRelationDao extends BaseDao
  20. {
  21. /**
  22. * @return string
  23. */
  24. protected function setModel(): string
  25. {
  26. return WorkMemberRelation::class;
  27. }
  28. /**
  29. * @param array $where
  30. * @param array|string[] $field
  31. * @return array
  32. */
  33. public function getMemberRelationList(array $where, array $field = ['*'])
  34. {
  35. return $this->getModel()->where($where)->field($field)->select()->toArray();
  36. }
  37. }