浏览代码

up - 查询条件

liugc 1 年之前
父节点
当前提交
b604f1ed52
共有 1 个文件被更改,包括 6 次插入0 次删除
  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']];
                 }