|
@@ -134,7 +134,14 @@ class Talent extends AdminController {
|
|
|
public function fst_verify() {
|
|
|
$enterprises = EnterpriseApi::getSimpleList();
|
|
|
$conditions = TalentConditionApi::getList([1, 2, 3, 4, 5, 6, 7], $this->user["type"]);
|
|
|
- return view("", ["enterprises" => $enterprises, "talent_conditions" => $conditions]);
|
|
|
+ $industry_field_new = array_column(DictApi::findChildDictByCode("industry_field"), "code");
|
|
|
+ foreach ($industry_field_new as &$field) {
|
|
|
+ $field .= "_field";
|
|
|
+ }
|
|
|
+ $parent_industry_fields = implode(",", $industry_field_new);
|
|
|
+ $where[] = ["d2.code", "in", $parent_industry_fields];
|
|
|
+ $industry_field_old = \app\common\model\Dict::alias("d1")->field("d1.*,d2.`name` as pname")->leftJoin("new_talent_dict d2", "d1.pid=d2.id")->order("name asc")->where($where)->select();
|
|
|
+ return view("", ["enterprises" => $enterprises, "talent_conditions" => $conditions, "industry_field_old" => $industry_field_old]);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -1458,7 +1465,7 @@ class Talent extends AdminController {
|
|
|
}
|
|
|
}
|
|
|
if ($where) {
|
|
|
- $files = \think\facade\Db::table("new_common_filetype")->where($where)->select();
|
|
|
+ $files = \think\facade\Db::table("new_common_filetype")->where($where)->order("sn asc")->select();
|
|
|
} else {
|
|
|
$files = [];
|
|
|
}
|
|
@@ -1475,9 +1482,9 @@ class Talent extends AdminController {
|
|
|
$where[] = ["delete", "=", 0];
|
|
|
if ($condition && $condition["bindFileTypes"]) {
|
|
|
$whr[] = ["id", "in", explode(",", $condition["bindFileTypes"])];
|
|
|
- $files = \think\facade\Db::table("new_common_filetype")->whereOr([$where, $whr])->select();
|
|
|
+ $files = \think\facade\Db::table("new_common_filetype")->whereOr([$where, $whr])->order("sn asc")->select();
|
|
|
} else {
|
|
|
- $files = \think\facade\Db::table("new_common_filetype")->where($where)->select();
|
|
|
+ $files = \think\facade\Db::table("new_common_filetype")->where($where)->order("sn asc")->select();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1519,9 +1526,9 @@ class Talent extends AdminController {
|
|
|
$where[] = ["delete", "=", 0];
|
|
|
if ($condition && $condition["bindFileTypes"]) {
|
|
|
$whr[] = ["id", "in", explode(",", $condition["bindFileTypes"])];
|
|
|
- $files = \think\facade\Db::table("new_common_filetype")->whereOr([$where, $whr])->select();
|
|
|
+ $files = \think\facade\Db::table("new_common_filetype")->whereOr([$where, $whr])->order("sn asc")->select();
|
|
|
} else {
|
|
|
- $files = \think\facade\Db::table("new_common_filetype")->where($where)->select();
|
|
|
+ $files = \think\facade\Db::table("new_common_filetype")->where($where)->order("sn asc")->select();
|
|
|
}
|
|
|
$responseObj->code = 200;
|
|
|
$responseObj->id = $id;
|