UserBrokerageFrozen.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. namespace app\model\user;
  12. use crmeb\basic\BaseModel;
  13. use think\Model;
  14. /**
  15. * 佣金冻结
  16. * Class UserBrokerageFrozen
  17. * @package app\model\user
  18. */
  19. class UserBrokerageFrozen extends BaseModel
  20. {
  21. /**
  22. * 设置主键
  23. * @var string
  24. */
  25. protected $pk = 'id';
  26. /**
  27. * 设置表名
  28. * @var string
  29. */
  30. protected $name = 'user_brokerage_frozen';
  31. /**
  32. * 用户id搜索器
  33. * @param Model $query
  34. * @param $value
  35. */
  36. public function searchUidAttr($query, $value)
  37. {
  38. $query->where('uid', $value);
  39. }
  40. /**
  41. * 状态搜索器
  42. * @param Model $query
  43. * @param $value
  44. */
  45. public function searchStatusAttr($query, $value)
  46. {
  47. $query->where('status', $value);
  48. }
  49. /**
  50. * @param Model $query
  51. * @param $value
  52. */
  53. public function searchOrderIdAttr($query, $value)
  54. {
  55. $query->where('order_id', $value);
  56. }
  57. }