Commit a3f14e6b authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/trade-node' into 'master'

search add mobile condition See merge request !24
parents e2789c7b 613a21e6
...@@ -109,13 +109,13 @@ class CoinReleaseCheckController extends BaseController ...@@ -109,13 +109,13 @@ class CoinReleaseCheckController extends BaseController
if ($model->load($get) && $model->validate()) { if ($model->load($get) && $model->validate()) {
$page = $get['page'] ?? 1; $page = $get['page'] ?? 1;
$limit = $get['limit'] ?? 10; $limit = $get['limit'] ?? 10;
$mobile = $get['mobile'] ?? '';
$query = CoinReleaseCheck::find()->andFilterWhere(['!=', 'status', 0])->andFilterWhere([ $query = CoinReleaseCheck::find()->andFilterWhere(['!=', 'status', 0])->andFilterWhere([
'status' => $model->status, 'status' => $model->status,
'coin' => $model->coin, 'coin' => $model->coin,
'check_first_uid' => $model->check_first_uid, 'check_first_uid' => $model->check_first_uid,
'check_second_uid' => $model->check_second_uid, 'check_second_uid' => $model->check_second_uid,
]); ]);
$user_id = Yii::$app->user->identity->id; $user_id = Yii::$app->user->identity->id;
$auth = Yii::$app->authManager; $auth = Yii::$app->authManager;
$user_role = current($auth->getRolesByUser($user_id)); $user_role = current($auth->getRolesByUser($user_id));
...@@ -141,6 +141,10 @@ class CoinReleaseCheckController extends BaseController ...@@ -141,6 +141,10 @@ class CoinReleaseCheckController extends BaseController
if ($model->end_time) { if ($model->end_time) {
$query = $query->andFilterWhere(['<=', 'create_time', $model->end_time]); $query = $query->andFilterWhere(['<=', 'create_time', $model->end_time]);
} }
if($mobile){
$query = $query->andFilterWhere(['mobile' => $mobile]);
}
$count = $query->count(); $count = $query->count();
$datas = $query->limit($limit)->offset(($page - 1) * $limit)->orderBy('id desc')->asArray()->all(); $datas = $query->limit($limit)->offset(($page - 1) * $limit)->orderBy('id desc')->asArray()->all();
//获取审核员id //获取审核员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