Эх сурвалжийг харах

人才申请批次号修改

sugangqiang 2 жил өмнө
parent
commit
27c9db0a40

+ 2 - 1
app/enterprise/controller/Talent.php

@@ -101,9 +101,10 @@ class Talent extends EnterpriseController {
         }
         $checkState = $info["checkState"] ?: 0;
 
+        $batch = \app\common\api\BatchApi::getValidBatch(\app\common\state\ProjectState::TALENT, $this->user["type"]);
         $info["enterprise"] = $ep;
         $info["talent_type_list"] = DictApi::findChildDictByCode("talent_type");
-        return view($tpl, ["year" => date("Y"), "checkState" => $checkState, "row" => $info]);
+        return view($tpl, ["year" => $batch["batch"], "checkState" => $checkState, "row" => $info]);
     }
 
     /**