소스 검색

补充上一条修改

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

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

@@ -413,7 +413,8 @@ class TalentAllowance extends EnterpriseController {
         $where[] = ["checkState", "=", MainState::PASS];
         $where[] = ["isPublic", ">=", 5];
         $where[] = [$oldStartTimeField, "<=", $info["year"] . "-12-31"];
-        $typeList = TalentTypeChange::where($where)->field("oldTalentArrange,oldIdentifyCondition,oldIdentifyGetTime,oldIdentifyOutTime,oldIdentifyMonth,oldCertificateStartTime,oldCertificateOutTime,newIdentifyMonth")->order("createTime desc")->select()->toArray();
+        $typeList = TalentTypeChange::where($where)->field("oldTalentArrange,oldIdentifyCondition,oldIdentifyGetTime,oldIdentifyOutTime,oldIdentifyMonth,oldCertificateStartTime,oldCertificateOutTime,newIdentifyMonth,newIdentifyGetTime")->order("createTime desc")->select()->toArray();
+
         $typeList[] = [
             "oldTalentArrange" => $talentInfo["talent_arrange"],
             "oldIdentifyCondition" => $talentInfo["talent_condition"],
@@ -422,7 +423,8 @@ class TalentAllowance extends EnterpriseController {
             "oldIdentifyMonth" => $talentInfo["identifyMonth"],
             "oldCertificateStartTime" => $talentInfo["certificateGetTime"],
             "oldCertificateOutTime" => $talentInfo["certificateExpireTime"],
-            "newIdentifyMonth" => $info["year"] . "-12-31"
+            "newIdentifyMonth" => $info["year"] . "-12-31",
+            "newIdentifyGetTime" => $info["year"] . "-12-31"
         ];
         $totalMonth = \DateUtil::getMonthBetweenDates($info["year"] . "-01-01", $info["year"] . "-12-31");
         /*         * 获取上一年度有效的人才层次 */

+ 3 - 2
app/job/TalentAllowance.php

@@ -180,7 +180,7 @@ class TalentAllowance {
         $where[] = ["checkState", "=", MainState::PASS];
         $where[] = ["isPublic", ">=", 5];
         $where[] = [$oldStartTimeField, "<=", $info["year"] . "-12-31"];
-        $typeList = TalentTypeChange::where($where)->field("oldTalentArrange,oldIdentifyCondition,oldIdentifyGetTime,oldIdentifyOutTime,oldIdentifyMonth,oldCertificateStartTime,oldCertificateOutTime,newIdentifyMonth")->order("createTime desc")->select()->toArray();
+        $typeList = TalentTypeChange::where($where)->field("oldTalentArrange,oldIdentifyCondition,oldIdentifyGetTime,oldIdentifyOutTime,oldIdentifyMonth,oldCertificateStartTime,oldCertificateOutTime,newIdentifyMonth,newIdentifyGetTime")->order("createTime desc")->select()->toArray();
         $typeList[] = [
             "oldTalentArrange" => $talentInfo["talent_arrange"],
             "oldIdentifyCondition" => $talentInfo["talent_condition"],
@@ -189,7 +189,8 @@ class TalentAllowance {
             "oldIdentifyMonth" => $talentInfo["identifyMonth"],
             "oldCertificateStartTime" => $talentInfo["certificateGetTime"],
             "oldCertificateOutTime" => $talentInfo["certificateExpireTime"],
-            "newIdentifyMonth" => $info["year"] . "-12-31"
+            "newIdentifyMonth" => $info["year"] . "-12-31",
+            "newIdentifyGetTime" => $info["year"] . "-12-31"
         ];
         $totalMonth = \DateUtil::getMonthBetweenDates($info["year"] . "-01-01", $info["year"] . "-12-31");
         /*         * 获取上一年度有效的人才层次 */