瀏覽代碼

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

sugangqiang 1 年之前
父節點
當前提交
a2a76a0673
共有 2 個文件被更改,包括 6 次插入0 次删除
  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"]];