Przeglądaj źródła

up - 查询条件

liugc 1 rok temu
rodzic
commit
b604f1ed52
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      app/common/service/ExcelExportService.php

+ 6 - 0
app/common/service/ExcelExportService.php

@@ -167,6 +167,12 @@ class ExcelExportService
                 if (isset($params['recruiting_behalf']) && !empty($params['recruiting_behalf'])) {
                     $where[] = ['a.recruiting_behalf','like' ,"%".$params['recruiting_behalf']."%"];
                 }
+                if (isset($params['is_recruiting_behalf']) && !empty($params['is_recruiting_behalf'])) {
+                    if ($params['is_recruiting_behalf'] == 1)
+                        $where[] = ['a.recruiting_behalf','<>' ,""];
+                    else
+                        $where[] = ['a.recruiting_behalf','=' ,""];
+                }
                 if (isset($params['mobile']) && !empty($params['mobile'])) {
                     $where[] = ['a.mobile','=' ,$params['mobile']];
                 }