浏览代码

增加离职、银行卡、层次变更删除信息的判断

sandm 1 年之前
父节点
当前提交
c1539a0634
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/enterprise/controller/Talent.php

+ 3 - 0
app/enterprise/controller/Talent.php

@@ -1575,6 +1575,7 @@ class Talent extends EnterpriseController {
         if ($type == ProjectState::QUIT) {
             $_where = [];
             $_where[] = ["checkState", "not in", [3]];
+            $_where[] = ["delete", "<>", 1];
             $idCards = Db::table("un_talent_quit")->where($_where)->column("idCard");
             $sList = array_merge($sList, (array) $idCards);
             $where[] = ["active", "=", 1];
@@ -1582,6 +1583,7 @@ class Talent extends EnterpriseController {
         if ($type == ProjectState::BANKCHANGE) {
             $_where = [];
             $_where[] = ["checkState", "not in", [3]];
+            $_where[] = ["delete", "<>", 1];
             $idCards = Db::table("un_talent_bank_change")->where($_where)->column("idCard");
             $sList = array_merge($sList, (array) $idCards);
         }
@@ -1589,6 +1591,7 @@ class Talent extends EnterpriseController {
             $_where = [];
             $_where[] = ["checkState", "not in", [35, -1]];
             $_where[] = ["isPublic", "<", 5];
+            $_where[] = ["delete", "<>", 1];
             $idCards = Db::table("un_talent_type_change")->where($_where)->column("idCard");
             $sList = array_merge($sList, (array) $idCards);
         }