| 
					
				 | 
			
			
				@@ -11,6 +11,7 @@ import com.zanxiang.game.data.serve.service.IAdsOrderDetailService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.zanxiang.game.data.serve.utils.Page; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.zanxiang.module.util.bean.BeanUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.extern.slf4j.Slf4j; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.apache.commons.lang3.ArrayUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.apache.commons.lang3.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.nutz.dao.Cnd; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.nutz.dao.Dao; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -33,10 +34,10 @@ public class AdsOrderDetailService implements IAdsOrderDetailService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public Page<AdsOrderDetailVO> listOfPage(AdsOrderDetailListDTO dto) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        /*if (StringUtils.isBlank(dto.getPitcherId()) && !SecurityUtil.isManager()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (StringUtils.isBlank(dto.getPitcherId()) && !SecurityUtil.isManager()) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // 只有管理员才能查看全部数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             dto.setPitcherId(SecurityUtil.getUserId().toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        }*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Pager pager = dto.toPage(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Criteria cri = Cnd.cri(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (StringUtils.isNotBlank(dto.getSourceSystem())) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -63,8 +64,8 @@ public class AdsOrderDetailService implements IAdsOrderDetailService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (StringUtils.isNotBlank(dto.getGameId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             cri.where().andEquals("order_game_id", dto.getGameId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (StringUtils.isNotBlank(dto.getChannelId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            cri.where().andEquals("agent_id", dto.getChannelId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (ArrayUtils.isNotEmpty(dto.getChannelId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            cri.where().andIn("agent_id", dto.getChannelId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (StringUtils.isNotBlank(dto.getAccountId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             cri.where().andEquals("account_id", dto.getAccountId()); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -157,8 +158,8 @@ public class AdsOrderDetailService implements IAdsOrderDetailService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (StringUtils.isNotBlank(dto.getGameId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             cri.where().andEquals("order_game_id", dto.getGameId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if (StringUtils.isNotBlank(dto.getChannelId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            cri.where().andEquals("agent_id", dto.getChannelId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (ArrayUtils.isNotEmpty(dto.getChannelId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            cri.where().andIn("agent_id", dto.getChannelId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (StringUtils.isNotBlank(dto.getAccountId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             cri.where().andEquals("account_id", dto.getAccountId()); 
			 |