| 
					
				 | 
			
			
				@@ -258,7 +258,7 @@ class VerifyApi { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->leftJoin("(select mainId,active,last_state,new_state,state,createTime from new_talent_checklog where md5(concat(createTime,companyId,mainId,`type`)) in (select md5(concat(max(createTime),companyId,mainId,`type`)) from `new_talent_checklog` where `type`=1 and `step`=3 and companyId='{$companyId}' and typeFileId is null group by mainId,`type`)) tl", "`tl`.`mainId`=ti.id") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->leftJoin(sprintf("(select id as resubmit,mainId from new_talent_checklog where state in(%d,%d) and step is null and `type`=1 and `active`=1 group by mainId) as tl2", TalentState::DEPT_VERIFY_REJECT, TalentState::REVERIFY_REJECT), "`tl2`.mainId=`ti`.id") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->where($where) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        ->whereRaw($whereRaw) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        ->where($whereRaw) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->whereRaw("find_in_set(:companyId,companyIds)", ["companyId" => $companyId])->count(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         $list = Talent::alias("ti") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -266,7 +266,7 @@ class VerifyApi { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->leftJoin("(select mainId,active,last_state,new_state,state,createTime from new_talent_checklog where md5(concat(createTime,companyId,mainId,`type`)) in (select md5(concat(max(createTime),companyId,mainId,`type`)) from `new_talent_checklog` where `type`=1 and `step`=3 and companyId='{$companyId}' and typeFileId is null group by mainId,`type`)) tl", "`tl`.`mainId`=ti.id") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->leftJoin(sprintf("(select id as resubmit,mainId from new_talent_checklog where state in(%d,%d) and step is null and `type`=1 and `active`=1 group by mainId) as tl2", TalentState::DEPT_VERIFY_REJECT, TalentState::REVERIFY_REJECT), "`tl2`.mainId=`ti`.id") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->where($where) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        ->whereRaw($whereRaw) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        ->where($whereRaw) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->whereRaw("find_in_set(:companyId,companyIds)", ["companyId" => $companyId]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->field("ti.*,tl.last_state as 'lastState',tl.state as 'realState',tl.new_state as 'newState',e.name as enterprise_name,e.type as enterprise_type,enterpriseTag,tc.name as talentConditionName,tl2.resubmit,tl.active as deptActive") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         ->limit($offset, $limit)->order("ti.createTime " . $order) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -859,7 +859,7 @@ class VerifyApi { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 ->leftJoin("(select mainId,active,description,last_state,new_state,state,createTime from new_talent_checklog where md5(concat(createTime,companyId,mainId,`type`)) in (select md5(concat(max(createTime),companyId,mainId,`type`)) from `new_talent_checklog` where `type`=1 and `step`=3 and companyId='{$companyId}' and typeFileId is null group by mainId,`type`)) tl", "`tl`.`mainId`=ti.id") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 ->leftJoin(sprintf("(select id as resubmit,mainId from new_talent_checklog where state in(%d,%d) and step is null and `type`=1 and `active`=1 group by mainId) as tl2", TalentState::DEPT_VERIFY_REJECT, TalentState::REVERIFY_REJECT), "`tl2`.mainId=`ti`.id") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 ->where($where) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                                ->whereRaw($whereRaw) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                ->where($whereRaw) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 ->whereRaw("find_in_set(:companyId,companyIds)", ["companyId" => $companyId]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 ->field($fields) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                 ->select()->toArray(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -871,7 +871,7 @@ class VerifyApi { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             ->leftJoin("new_talent_condition tc", "tc.id=ti.talent_condition") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             ->leftJoin("(select description,mainId,last_state,new_state,state,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") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             ->leftJoin("(select id as resubmit,mainId from new_talent_checklog where state=" . TalentState::REVERIFY_REJECT . " and `type`=1 and `active`=1 group by mainId) as tl2", "`tl2`.mainId=`ti`.id") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            ->whereRaw($whereRaw) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            ->where($whereRaw) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             ->where($where) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             ->field($fields) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             ->select()->toArray(); 
			 |