소스 검색

卫健高教一样往前认定时间2023-01-01开始可以算津补贴

sugangqiang 1 년 전
부모
커밋
347117e940
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      app/enterprise/controller/TalentAllowance.php
  2. 2 2
      app/job/TalentAllowance.php

+ 2 - 2
app/enterprise/controller/TalentAllowance.php

@@ -404,8 +404,8 @@ class TalentAllowance extends EnterpriseController {
             $oldStartTimeField = "oldIdentifyGetTime";
             $newStartTimeField = "newIdentifyGetTime";
         }
-        if ($info["type"] == CommonConst::ENTERPRISE_WJ && date("Y", strtotime($talentInfo["identifyMonth"])) == "2023") {
-            $talentInfo["identifyMonth"] = "2022-12-01"; //让卫健包含2023全年
+        if (in_array($info["type"], [CommonConst::ENTERPRISE_WJ, CommonConst::ENTERPRISE_GJ]) && date("Y", strtotime($talentInfo["identifyMonth"])) == "2023") {
+            $talentInfo["identifyMonth"] = "2022-12-01"; //让卫健高教包含2023全年
         }
 
         $where = [];

+ 2 - 2
app/job/TalentAllowance.php

@@ -171,8 +171,8 @@ class TalentAllowance {
             $oldStartTimeField = "oldIdentifyGetTime";
             $newStartTimeField = "newIdentifyGetTime";
         }
-        if ($info["type"] == \app\common\state\CommonConst::ENTERPRISE_WJ && date("Y", strtotime($talentInfo["identifyMonth"])) == "2023") {
-            $talentInfo["identifyMonth"] = "2022-12-01"; //让卫健包含2023全年
+        if (in_array($info["type"], [\app\common\state\CommonConst::ENTERPRISE_WJ, \app\common\state\CommonConst::ENTERPRISE_GJ]) && date("Y", strtotime($talentInfo["identifyMonth"])) == "2023") {
+            $talentInfo["identifyMonth"] = "2022-12-01"; //让卫健高教包含2023全年
         }
 
         $where = [];