SynchronizedBinder.php 940 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Class Withdraw
  5. * Author: Yitan
  6. * Date: 2017/11/06
  7. * @package app\common\models
  8. */
  9. namespace app\common\models;
  10. use Illuminate\Support\Facades\Config;
  11. use app\common\traits\CreateOrderSnTrait;
  12. /**
  13. * Class Withdraw
  14. * @package app\common\models
  15. * @property int id
  16. * @property int type_id
  17. * @property float amounts
  18. * @property int status
  19. */
  20. class SynchronizedBinder extends BaseModel
  21. {
  22. protected $table = 'yz_synchronized_binder';
  23. protected $guarded = [''];
  24. public $timestamps = false;
  25. public static function searchLog($search)
  26. {
  27. $model = self::select(['id', 'old_uid', 'new_uid', 'created_at'])->uniacid();
  28. if ($search['member_id']) {
  29. $model->where('old_uid', $search['member_id']);
  30. }
  31. if ($search['mark_member_id']) {
  32. $model->where('new_uid', $search['mark_member_id']);
  33. }
  34. return $model;
  35. }
  36. }