Explorar o código

导出状态文字修改

sugangqiang %!s(int64=2) %!d(string=hai) anos
pai
achega
693a23bb49
Modificáronse 2 ficheiros con 10 adicións e 4 borrados
  1. 2 0
      app/common/api/TalentState.php
  2. 8 4
      app/common/api/VerifyApi.php

+ 2 - 0
app/common/api/TalentState.php

@@ -48,6 +48,8 @@ class TalentState {
 
     public static function getStateName($state) {
         switch ($state) {
+            case -2:
+                return "初审不通过";
             case 1:
                 return "保存未提交";
             case 2:

+ 8 - 4
app/common/api/VerifyApi.php

@@ -749,17 +749,21 @@ class VerifyApi {
             }
             if ($item["state"] == TalentState::SCND_SUBMIT) {
                 if ($item["last_state"] == TalentState::FST_VERIFY_REJECT) {
-                    $item["checkState"] = "待审(重新提交)";
+                    $item["checkState"] = "待审(重新提交)";
                 } else {
-                    $item["checkState"] = "待初审";
+                    $item["checkState"] = "待初审(首次提交)";
                 }
             } else if ($item["state"] == TalentState::FST_VERIFY_PASS) {
                 if (!$item["companyIds"] || $item["pass_dept_check"] == 1) {
-                    $item["checkState"] = "初审通过,待复审";
+                    $item["checkState"] = "待复核(初审通过)";
                 }
                 if ($item["pass_dept_check"] == 0) {
-                    $item["checkState"] = "初审通过,待部门审";
+                    $item["checkState"] = "待部门审";
                 }
+            } else if ($item["state"] == TalentState::DEPT_VERIFY_REJECT) {
+                $item["checkState"] = "待初审(部门并审驳回)";
+            } else if ($item["state"] == TalentState::DEPT_VERIFY_PASS) {
+                $item["checkState"] = "待复核(部门并审通过)";
             } else {
                 $item["checkState"] = TalentState::getStateName($item["state"]);
             }