Browse Source

更新数据恢复接口

sandm 1 năm trước cách đây
mục cha
commit
561d25ad1c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/admin/controller/System.php

+ 1 - 0
app/admin/controller/System.php

@@ -54,6 +54,7 @@ class System extends AdminController {
         $where[] = ["e.type", "=", $type];
         $where[] = ["tl.createUser", "=", "系统"];
         $where[] = ["tl.state", "=", \app\common\api\TalentState::FST_VERIFY_FAIL];
+        $where[] = ["ti.delete", "=", 0];
         $list = \app\enterprise\model\Talent::alias("ti")
                         ->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
                         ->leftJoin("(select mainId,last_state,new_state,state,createUser,createTime from new_talent_checklog where md5(concat(createTime,mainId,`type`)) in (select md5(concat(max(createTime),mainId,`type`)) from `new_talent_checklog` where `type`=1 and `step` is null and active=1 and typeFileId is null group by mainId,`type`)) tl", "`tl`.`mainId`=ti.id")