sugangqiang 1 жил өмнө
parent
commit
f0e26b8246

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

@@ -33,7 +33,7 @@ class TalentAllowance extends EnterpriseController {
     }
 
     public function list() {
-        $res = EnterpriseLaApi::getList($this->request);
+        $res = TalentAllowanceApi::getList($this->request);
         return json($res);
     }
 
@@ -55,7 +55,7 @@ class TalentAllowance extends EnterpriseController {
             return $this->save($info, $request);
         }
         $hand = $info ? "update" : "add";
-        $batch = $info["year"] ?: BatchApi::getValidBatch(ProjectState::LIVINGALLOWANCE, $this->user["type"])["batch"];
+        $batch = $info["year"] ?: BatchApi::getValidBatch(ProjectState::JBT, $this->user["type"])["batch"];
         return view("", ["year" => $batch, "row" => $info, "enterprise" => $ep, "hand" => $hand]);
     }