Sfoglia il codice sorgente

更新汇总导出

sandm 2 anni fa
parent
commit
91b7607b2a
1 ha cambiato i file con 12 aggiunte e 0 eliminazioni
  1. 12 0
      app/Admin/Controllers/Recruit/RecruitController.php

+ 12 - 0
app/Admin/Controllers/Recruit/RecruitController.php

@@ -1976,6 +1976,7 @@ class RecruitController extends Controller
         $where = [];
         $where[] = ['audit','>',0];
         $where[] = ['recruit_appoint_info.recruit_id', '=', $data['id']];
+
         $param = parse_url($data['where']);
         parse_str($param['query'],$param);
         if (is_array($param)) {
@@ -1983,6 +1984,17 @@ class RecruitController extends Controller
             foreach ($param as $k => $v) {
                 if ($k == 'realname') {
                     $where[] = [$k, 'like', "%$v%"];
+                } elseif ($k == 'id') {
+                    $where[] = ['recruit_appoint_info.recruit_id', '=', $v];
+                } elseif($k == 'print_bs'){
+                    $where[] = ['recruit_ticket.ex_type', '=', 1];
+                    $where[] = ['recruit_ticket.ex_status', '=', $v];
+                } elseif($k == 'print_js'){
+                    $where[] = ['recruit_ticket.ex_type', '=', 2];
+                    $where[] = ['recruit_ticket.ex_status', '=', $v];
+                } elseif($k == 'print_ms'){
+                    $where[] = ['recruit_ticket.ex_type', '=', 3];
+                    $where[] = ['recruit_ticket.ex_status', '=', $v];
                 } elseif ($k != '_pjax' and $k != 'page' && $k != 'perpage') {
                     $where[] = [$k, '=', $v];
                 }