Преглед изворни кода

修改人才申报审核(所有审核步骤)中,关于企业搜索,将各单位对应企业分开

sandm пре 1 година
родитељ
комит
06e8bfacfd
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      app/common/api/EnterpriseApi.php

+ 1 - 0
app/common/api/EnterpriseApi.php

@@ -21,6 +21,7 @@ class EnterpriseApi {
     public static function getSimpleList($extra = array()) {
         $where[] = ["active", "=", 1];
         $where[] = ["delete", "=", 0];
+        $where[] = ['type','=',session('user')['type']];
         if ($extra) {
             $where = array_merge($where, $extra);
         }