去掉是否平安项目校验
This commit is contained in:
@@ -20,7 +20,7 @@ class IndexController extends AdminController
|
||||
'accountable',
|
||||
User::class,
|
||||
function ($query) {
|
||||
$query->where('type', 'pingan')->whereHas('identity', function ($q) {
|
||||
$query->whereHas('identity', function ($q) {
|
||||
$q->where('identity_id', 1);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -38,13 +38,10 @@ class IndexController extends AdminController
|
||||
'3' => '核销失败',
|
||||
]);
|
||||
$filter->between('created_at', '核销时间')->datetime();
|
||||
$users = User::query()
|
||||
->whereHas('identity', function ($query) {
|
||||
$query->where('identity_id', 1);
|
||||
})
|
||||
->where('type', 'pingan')
|
||||
->get()
|
||||
->pluck('nickname', 'id');
|
||||
$users = User::whereHas('identity', function ($query) {
|
||||
$query->where('identity_id', 1);
|
||||
})->get()->pluck('nickname', 'id');
|
||||
|
||||
$filter->equal('user_id', '渠道')->select($users);
|
||||
$filter->equal('thirdPartyGoodsId', '优惠政策')->select(ActivityRule::pluck('title', 'code'));
|
||||
});
|
||||
|
||||
@@ -13,7 +13,7 @@ use Encore\Admin\Grid;
|
||||
class IndexController extends AdminController
|
||||
{
|
||||
|
||||
protected $title = '平安渠道打款处理';
|
||||
protected $title = '渠道打款处理';
|
||||
|
||||
/**
|
||||
* Notes:
|
||||
@@ -59,7 +59,6 @@ class IndexController extends AdminController
|
||||
->whereHas('identity', function ($query) {
|
||||
$query->where('identity_id', 1);
|
||||
})
|
||||
->where('type', 'pingan')
|
||||
->get()
|
||||
->pluck('nickname', 'id');
|
||||
|
||||
|
||||
@@ -33,13 +33,10 @@ class LogController extends AdminController
|
||||
$grid->filter(function ($filter) {
|
||||
$filter->column(1 / 2, function ($filter) {
|
||||
$filter->between('paid_at', '打款时间')->datetime();
|
||||
$users = User::query()
|
||||
->whereHas('identity', function ($query) {
|
||||
$query->where('identity_id', 1);
|
||||
})
|
||||
->where('type', 'pingan')
|
||||
->get()
|
||||
->pluck('nickname', 'id');
|
||||
$users = User::whereHas('identity', function ($query) {
|
||||
$query->where('identity_id', 1);
|
||||
})->get()->pluck('nickname', 'id');
|
||||
|
||||
$filter->equal('user_id', '渠道')->select($users);
|
||||
});
|
||||
$filter->column(1 / 2, function ($filter) {
|
||||
|
||||
@@ -43,7 +43,7 @@ class IndexController extends AdminController
|
||||
$actions->add(new Callback);
|
||||
}
|
||||
|
||||
if ($actions->row->type == 'pingan' && $actions->row->identity_id == 1 && $user->id == 1) {
|
||||
if ($actions->row->identity_id == 1 && $user->id == 1) {
|
||||
$actions->add(new Profit);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user