|
@@ -344,6 +344,7 @@ class Api extends BaseController {
|
|
$where[] = ["type", "=", $type];
|
|
$where[] = ["type", "=", $type];
|
|
switch ($project) {
|
|
switch ($project) {
|
|
case 1:
|
|
case 1:
|
|
|
|
+ case 8:
|
|
//if (in_array($checkState, [TalentState::BASE_VERIFY_FAIL, 0, TalentState::FST_SAVE, TalentState::FST_SUBMIT, TalentState::BASE_VERIFY_PASS]) && $isMix != 1) {
|
|
//if (in_array($checkState, [TalentState::BASE_VERIFY_FAIL, 0, TalentState::FST_SAVE, TalentState::FST_SUBMIT, TalentState::BASE_VERIFY_PASS]) && $isMix != 1) {
|
|
//$where[] = ["step", "=", 1]; //只查找人才第一步所需文件
|
|
//$where[] = ["step", "=", 1]; //只查找人才第一步所需文件
|
|
//} else {
|
|
//} else {
|
|
@@ -608,6 +609,7 @@ class Api extends BaseController {
|
|
$url = "";
|
|
$url = "";
|
|
switch ($type) {
|
|
switch ($type) {
|
|
case 1:
|
|
case 1:
|
|
|
|
+ case 8:
|
|
case 19:
|
|
case 19:
|
|
$fileinfo = Db::table("new_talent_file")->where($where)->findOrEmpty();
|
|
$fileinfo = Db::table("new_talent_file")->where($where)->findOrEmpty();
|
|
$filename = $fileinfo["orignName"];
|
|
$filename = $fileinfo["orignName"];
|
|
@@ -686,6 +688,11 @@ class Api extends BaseController {
|
|
$enterprise_info = \app\common\model\Enterprise::findOrEmpty($info["enterpriseId"]);
|
|
$enterprise_info = \app\common\model\Enterprise::findOrEmpty($info["enterpriseId"]);
|
|
$zip_filename = sprintf("%s(%s)工作单位变更材料.zip", $info["talentName"], $enterprise_info["name"]);
|
|
$zip_filename = sprintf("%s(%s)工作单位变更材料.zip", $info["talentName"], $enterprise_info["name"]);
|
|
break;
|
|
break;
|
|
|
|
+ case ProjectState::LEVELCHANGE:
|
|
|
|
+ $info = \app\enterprise\model\TalentTypeChange::findOrEmpty($id);
|
|
|
|
+ $enterprise_info = \app\common\model\Enterprise::findOrEmpty($info["enterpriseId"]);
|
|
|
|
+ $zip_filename = sprintf("%s(%s)人才层次变更材料.zip", $info["talentName"], $enterprise_info["name"]);
|
|
|
|
+ break;
|
|
case ProjectState::INTEGRAL:
|
|
case ProjectState::INTEGRAL:
|
|
$where[] = ["type", "=", $type];
|
|
$where[] = ["type", "=", $type];
|
|
$record = \app\common\api\IntegralRecordApi::getOne($id);
|
|
$record = \app\common\api\IntegralRecordApi::getOne($id);
|
|
@@ -759,6 +766,14 @@ class Api extends BaseController {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
|
|
+ case ProjectState::LEVELCHANGE:
|
|
|
|
+ if ($this->user["usertype"] == 2) {
|
|
|
|
+ $user_id = $this->user["uid"];
|
|
|
|
+ $talent_info = \app\enterprise\model\TalentTypeChange::findOrEmpty($mainId);
|
|
|
|
+ if ($user_id == $talent_info["enterpriseId"])
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
case ProjectState::LIVINGALLOWANCE:
|
|
case ProjectState::LIVINGALLOWANCE:
|
|
if ($this->user["usertype"] == 2) {
|
|
if ($this->user["usertype"] == 2) {
|
|
$user_id = $this->user["uid"];
|
|
$user_id = $this->user["uid"];
|