Explorar el Código

up - 查询条件

liugc hace 1 año
padre
commit
b604f1ed52
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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']];
                 }