瀏覽代碼

高教去掉2023年全年追认

sugangqiang 10 月之前
父節點
當前提交
7c5d24e3bf
共有 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

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

+ 2 - 2
app/job/TalentAllowance.php

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