|
@@ -389,6 +389,7 @@ class Api extends BaseController {
|
|
|
$talent_condition = $param["talent_condition"];
|
|
|
$token = $param["pageToken"];
|
|
|
$year = $param["year"];
|
|
|
+ $showOldFile = $param["showOldFile"];
|
|
|
$where[] = ["project", "=", $project];
|
|
|
$where[] = ["active", "=", 1];
|
|
|
$where[] = ["delete", "=", 0];
|
|
@@ -515,12 +516,12 @@ class Api extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
$old_types = [];
|
|
|
- if ($project == ProjectState::LEVELCHANGE) {
|
|
|
+ if ($project == ProjectState::LEVELCHANGE && $showOldFile == 1) {
|
|
|
$where = [];
|
|
|
$where[] = ["type", "=", $type];
|
|
|
$where[] = ["project", "=", $project];
|
|
|
$where[] = ["active", "=", 1];
|
|
|
- //$old_types = Db::table("un_common_filetype")->where($where)->order("must")->order("sn")->select()->toArray();
|
|
|
+ $old_types = Db::table("un_common_filetype")->where($where)->order("must")->order("sn")->select()->toArray();
|
|
|
}
|
|
|
if ($old_types) {
|
|
|
$rows = array_merge($rows, $old_types);
|
|
@@ -1242,5 +1243,4 @@ class Api extends BaseController {
|
|
|
public function getEnterpriseData() {
|
|
|
|
|
|
}
|
|
|
-
|
|
|
}
|