|
@@ -1244,6 +1244,7 @@ class Api extends BaseController {
|
|
|
$talentId = $this->request["talentId"];
|
|
|
$talentInfo = \app\common\api\VerifyApi::getTalentInfoById($talentId);
|
|
|
$project = ProjectState::TALENT;
|
|
|
+ $mainId = $talentId;
|
|
|
//检查是否有工作单位变更记录
|
|
|
$_where = [];
|
|
|
$_where[] = ["checkState", "=", 3];
|
|
@@ -1261,12 +1262,15 @@ class Api extends BaseController {
|
|
|
|
|
|
if ($workChange && !$baseChange) {
|
|
|
$project = ProjectState::WORKCHANGE;
|
|
|
+ $mainId = $workChange["id"];
|
|
|
}
|
|
|
if (!$workChange && $baseChange) {
|
|
|
$project = ProjectState::BASICCHANGE;
|
|
|
+ $mainId = $baseChange["id"];
|
|
|
}
|
|
|
if ($workChange && $baseChange) {
|
|
|
$project = strtotime($workChange["passTime"]) > strtotime($baseChange["newSubmitTime"]) ? ProjectState::WORKCHANGE : ProjectState::BASICCHANGE;
|
|
|
+ $mainId = strtotime($workChange["passTime"]) > strtotime($baseChange["newSubmitTime"]) ? $workChange["id"] : $baseChange["id"];
|
|
|
}
|
|
|
|
|
|
$type = $this->request["type"];
|
|
@@ -1279,6 +1283,9 @@ class Api extends BaseController {
|
|
|
$where[] = ["delete", "=", 0];
|
|
|
$where[] = ["type", "=", $type];
|
|
|
$rows = Db::table("new_common_filetype")->where($where)->order("must asc")->order("sn asc")->select()->toArray();
|
|
|
+ foreach ($rows as &$row) {
|
|
|
+ $row["mainId"] = $mainId;
|
|
|
+ }unset($row);
|
|
|
return json(["rows" => $rows]);
|
|
|
}
|
|
|
|
|
@@ -1299,5 +1306,4 @@ class Api extends BaseController {
|
|
|
public function getEnterpriseData() {
|
|
|
|
|
|
}
|
|
|
-
|
|
|
}
|