|
|
@@ -36,10 +36,18 @@ class ApplyController extends BaseController
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$status = $get['status'] ?? 0;
|
|
|
+ $name = $get['name'] ?? '';
|
|
|
$where = [];
|
|
|
if (!empty($status)) {
|
|
|
$where['status'] = $status;
|
|
|
}
|
|
|
+ if (!empty($name)) {
|
|
|
+ if (is_numeric($name)) {
|
|
|
+ $where['mobile'] = ['like', $name];
|
|
|
+ } else {
|
|
|
+ $where['name'] = ['like', $name];
|
|
|
+ }
|
|
|
+ }
|
|
|
$list = ApplyService::getApplyList($where);
|
|
|
util::success($list);
|
|
|
}
|