|
@@ -52,6 +52,9 @@ class TalentAllowance {
|
|
|
$allowanceType = $data["allowanceType"];
|
|
|
if ($method == 1) {
|
|
|
$ti = \app\common\api\VerifyApi::getTalentInfoById($talentId);
|
|
|
+ if ($ti["talent_type"] == 1 && $ti["enterpriseType"] == \app\common\state\CommonConst::ENTERPRISE_WJ && $allowanceType == AllowanceTypeEnum::JBT_JT) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
} else {
|
|
|
$where[] = ["card_number", "=", $importRow[1]];
|
|
|
$where[] = ["delete", "=", 0];
|
|
@@ -59,6 +62,9 @@ class TalentAllowance {
|
|
|
$ti = Db::table("new_talent_info")->where($where)->find();
|
|
|
$talentId = $ti["id"];
|
|
|
$ti = \app\common\api\VerifyApi::getTalentInfoById($talentId);
|
|
|
+ if ($ti["talent_type"] == 1 && $ti["enterpriseType"] == \app\common\state\CommonConst::ENTERPRISE_WJ && $allowanceType == AllowanceTypeEnum::JBT_JT) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|
|
|
if ($ti["checkState"] != TalentState::CERTIFICATED || $ti["enterprise_id"] != $enterprise["uid"] || !$year || !$allowanceType) {
|
|
|
return false;
|