|
@@ -98,13 +98,13 @@ class VerifyApi {
|
|
|
$enterprise_tag_kvs = DictApi::selectByParentCode("enterprise_tag");
|
|
|
$count = Talent::alias("ti")
|
|
|
->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition")
|
|
|
- ->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")
|
|
|
+ ->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
|
|
|
->leftJoin("new_talent_checklog tl", "tl.mainId=ti.id and tl.id=(select id from new_talent_checklog where mainId=ti.id and `step` is null and active=1 and typeFileId is null order by createTime desc limit 1)")
|
|
|
->where($where)
|
|
|
->whereRaw("find_in_set(:companyId,companyIds)", ["companyId" => $companyId])->count();
|
|
|
$list = Talent::alias("ti")
|
|
|
->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition")
|
|
|
- ->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")
|
|
|
+ ->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
|
|
|
->leftJoin("new_talent_checklog tl", "tl.mainId=ti.id and tl.id=(select id from new_talent_checklog where mainId=ti.id and `step` is null and active=1 and typeFileId is null order by createTime desc limit 1)")
|
|
|
->where($where)
|
|
|
->whereRaw("find_in_set(:companyId,companyIds)", ["companyId" => $companyId])
|
|
@@ -156,8 +156,8 @@ class VerifyApi {
|
|
|
break;
|
|
|
}
|
|
|
$enterprise_tag_kvs = DictApi::selectByParentCode("enterprise_tag");
|
|
|
- $count = Talent::alias("ti")->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")->where($where)->count();
|
|
|
- $list = Talent::alias("ti")->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")
|
|
|
+ $count = Talent::alias("ti")->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")->where($where)->count();
|
|
|
+ $list = Talent::alias("ti")->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
|
|
|
->where($where)
|
|
|
->limit($offset, $limit)
|
|
|
->order("ti.createTime " . $order)->field("ti.*,e.name as enterpriseName,e.type as enterprise_type,enterpriseTag")->select()->toArray();
|
|
@@ -274,12 +274,12 @@ class VerifyApi {
|
|
|
break;
|
|
|
}
|
|
|
$count = Talent::alias("ti")
|
|
|
- ->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")
|
|
|
+ ->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
|
|
|
->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition")
|
|
|
->leftJoin("new_talent_checklog tl", "tl.mainId=ti.id and tl.id=(select id from new_talent_checklog where mainId=ti.id and `step` is null and active=1 and typeFileId is null order by createTime desc limit 1)")
|
|
|
->whereRaw($whereRaw)->where($where)->count();
|
|
|
$list = Talent::alias("ti")
|
|
|
- ->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")
|
|
|
+ ->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
|
|
|
->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition")
|
|
|
->leftJoin("new_talent_checklog tl", "tl.mainId=ti.id and tl.id=(select id from new_talent_checklog where mainId=ti.id and `step` is null and active=1 and typeFileId is null order by createTime desc limit 1)")
|
|
|
->whereRaw($whereRaw)
|
|
@@ -315,11 +315,11 @@ class VerifyApi {
|
|
|
break;
|
|
|
}
|
|
|
$count = Talent::alias("ti")
|
|
|
- ->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")
|
|
|
+ ->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
|
|
|
->leftJoin("new_talent_checklog tl", "tl.mainId=ti.id and tl.id=(select id from new_talent_checklog where mainId=ti.id and `step` is null and active=1 and typeFileId is null order by createTime desc limit 1)")
|
|
|
->where($where)->count();
|
|
|
$list = Talent::alias("ti")
|
|
|
- ->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")
|
|
|
+ ->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
|
|
|
->leftJoin("new_talent_checklog tl", "tl.mainId=ti.id and tl.id=(select id from new_talent_checklog where mainId=ti.id and `step` is null and active=1 and typeFileId is null order by createTime desc limit 1)")
|
|
|
->where($where)->limit($offset, $limit)->order("ti.createTime " . $order)->field("ti.*,tl.last_state as 'lastState',tl.state as 'realState',e.name as enterprise_name,e.type as enterprise_type,enterpriseTag")->select()->toArray();
|
|
|
}
|
|
@@ -424,7 +424,7 @@ class VerifyApi {
|
|
|
}
|
|
|
$list = Talent::alias("ti")
|
|
|
->field($fields)
|
|
|
- ->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")
|
|
|
+ ->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")
|
|
|
->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition")
|
|
|
->leftJoin("new_talent_checklog tl", "tl.mainId=ti.id and tl.id=(select id from new_talent_checklog where mainId=ti.id and `step` is null and active=1 and typeFileId is null order by createTime desc limit 1)")
|
|
|
->whereRaw($where)
|
|
@@ -478,7 +478,7 @@ class VerifyApi {
|
|
|
default:
|
|
|
return null;
|
|
|
}
|
|
|
- return Talent::alias("ti")->leftJoin("new_enterprise e", "e.id=ti.enterprise_id")->where($where)->field("ti.*,e.agentName,e.agentPhone")->select()->toArray();
|
|
|
+ return Talent::alias("ti")->leftJoin("un_enterprise e", "e.id=ti.enterprise_id")->where($where)->field("ti.*,e.agentName,e.agentPhone")->select()->toArray();
|
|
|
}
|
|
|
|
|
|
public static function setPublic($mainId, $state, $msg, $batch = null, $type = 1) {
|