Эх сурвалжийг харах

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

sugangqiang 1 жил өмнө
parent
commit
347117e940

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

@@ -404,8 +404,8 @@ class TalentAllowance extends EnterpriseController {
             $oldStartTimeField = "oldIdentifyGetTime";
             $oldStartTimeField = "oldIdentifyGetTime";
             $newStartTimeField = "newIdentifyGetTime";
             $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 = [];
         $where = [];

+ 2 - 2
app/job/TalentAllowance.php

@@ -171,8 +171,8 @@ class TalentAllowance {
             $oldStartTimeField = "oldIdentifyGetTime";
             $oldStartTimeField = "oldIdentifyGetTime";
             $newStartTimeField = "newIdentifyGetTime";
             $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 = [];
         $where = [];