Browse Source

卫健2023年认证的可获得全年津补贴

sugangqiang 1 year ago
parent
commit
a2a76a0673
2 changed files with 6 additions and 0 deletions
  1. 3 0
      app/enterprise/controller/TalentAllowance.php
  2. 3 0
      app/job/TalentAllowance.php

+ 3 - 0
app/enterprise/controller/TalentAllowance.php

@@ -404,6 +404,9 @@ 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全年
+        }
 
         $where = [];
         $where[] = ["idCard", "=", $info["idCard"]];

+ 3 - 0
app/job/TalentAllowance.php

@@ -171,6 +171,9 @@ 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全年
+        }
 
         $where = [];
         $where[] = ["idCard", "=", $info["idCard"]];