|  | @ -294,33 +294,13 @@ public class ActivityController extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |                                                 @ApiParam(name = "size", defaultValue = "10", value = ",每页分页大小")
 | 
	
		
			
				|  |  |                                                 @RequestParam(value = "size", required = false) Integer size) {
 | 
	
		
			
				|  |  |         try{
 | 
	
		
			
				|  |  |             StringBuffer stringBuffer=new StringBuffer();
 | 
	
		
			
				|  |  |             stringBuffer.append("delFlag=1;");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             if (StringUtils.isNotEmpty(type)) {
 | 
	
		
			
				|  |  |                 stringBuffer.append("type=").append(type).append(";");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if (StringUtils.isNotEmpty(filter)) {
 | 
	
		
			
				|  |  |                 stringBuffer.append("title?").append(filter).append(" g1;").append("organizer?").append(filter).append(" g1;").append("areaName?").append(filter).append(" g1;");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if (null != status && "2".equals(status) ) {
 | 
	
		
			
				|  |  |                 stringBuffer.append("status=-1,2;");
 | 
	
		
			
				|  |  |             } else if (null != status && "1".equals(status) ) {
 | 
	
		
			
				|  |  |                 stringBuffer.append("status=0,1;");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if(null!=crowdType&&StringUtils.isNotBlank(crowdType)){
 | 
	
		
			
				|  |  |                 stringBuffer.append("crowdType="+crowdType+";");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if(StringUtils.isNotBlank(releaseTime)){
 | 
	
		
			
				|  |  |                 stringBuffer.append("activityOfflineTime>="+releaseTime+" 00:00:00;");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if(StringUtils.isNotBlank(activityOfflineTime)){
 | 
	
		
			
				|  |  |                 stringBuffer.append("activityOfflineTime<="+ activityOfflineTime+" 59:59:59;");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             String sorts="-createTime";
 | 
	
		
			
				|  |  |             List<ActivityDO> activityDOList = service.search("", stringBuffer.toString(), sorts, page, size);
 | 
	
		
			
				|  |  |             int count = (int) service.getCount(stringBuffer.toString());
 | 
	
		
			
				|  |  |             return success(activityDOList, count, page, size);
 | 
	
		
			
				|  |  |             JSONObject obj = service.ListActivityDO(type, status,crowdType,releaseTime,activityOfflineTime,filter,page,size);
 | 
	
		
			
				|  |  | //            int count = (int) service.getCount(stringBuffer.toString());
 | 
	
		
			
				|  |  |             List<ActivityDO> list=(List<ActivityDO>)obj.get("activityDOList");
 | 
	
		
			
				|  |  |             int count =obj.getInteger("count");
 | 
	
		
			
				|  |  |             return success(list, count, page, size);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         }catch (Exception e){
 | 
	
		
			
				|  |  |             e.printStackTrace();
 | 
	
		
			
				|  |  |             tracer.getCurrentSpan().logEvent(e.getMessage());
 |