|
@@ -416,7 +416,7 @@ class TalentAllowance extends EnterpriseController {
|
|
public function delete() {
|
|
public function delete() {
|
|
$id = $this->request["id"];
|
|
$id = $this->request["id"];
|
|
$info = TalentAllowanceApi::getInfoById($id);
|
|
$info = TalentAllowanceApi::getInfoById($id);
|
|
- if ($info["checkState"] != 1 || $info["checkState"] != -1) {
|
|
|
|
|
|
+ if ($info["checkState"] != 1 && $info["checkState"] != -1) {
|
|
return new Response(Response::ERROR, "删除失败!此数据已提交审核,无法删除!");
|
|
return new Response(Response::ERROR, "删除失败!此数据已提交审核,无法删除!");
|
|
}
|
|
}
|
|
Db::startTrans();
|
|
Db::startTrans();
|