浏览代码

在库人才判断中排除被取消人才

sugangqiang 11 月之前
父节点
当前提交
ee7083c9d1
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/enterprise/validate/TalentInfo.php

+ 1 - 0
app/enterprise/validate/TalentInfo.php

@@ -157,6 +157,7 @@ class TalentInfo extends Validate {
         $where = [];
         $where[] = ["card_number", "=", $value];
         $where[] = ["checkState", "=", TalentState::CERTIFICATED];
+        $where[] = ["isEffect", "<>", 4];
         $talentInfo = $db->where($where)->find();
         if ($talentInfo)
             return "您已经是在库人才,不需要重复申报";