Commit 613a21e6 authored by shajiaiming's avatar shajiaiming

search add mobile condition

parent e2789c7b
......@@ -109,13 +109,13 @@ class CoinReleaseCheckController extends BaseController
if ($model->load($get) && $model->validate()) {
$page = $get['page'] ?? 1;
$limit = $get['limit'] ?? 10;
$mobile = $get['mobile'] ?? '';
$query = CoinReleaseCheck::find()->andFilterWhere(['!=', 'status', 0])->andFilterWhere([
'status' => $model->status,
'coin' => $model->coin,
'check_first_uid' => $model->check_first_uid,
'check_second_uid' => $model->check_second_uid,
]);
$user_id = Yii::$app->user->identity->id;
$auth = Yii::$app->authManager;
$user_role = current($auth->getRolesByUser($user_id));
......@@ -141,6 +141,10 @@ class CoinReleaseCheckController extends BaseController
if ($model->end_time) {
$query = $query->andFilterWhere(['<=', 'create_time', $model->end_time]);
}
if($mobile){
$query = $query->andFilterWhere(['mobile' => $mobile]);
}
$count = $query->count();
$datas = $query->limit($limit)->offset(($page - 1) * $limit)->orderBy('id desc')->asArray()->all();
//获取审核员id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment