|  | @ -4,6 +4,7 @@ package com.yihu.jw.controller;/**
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.alibaba.fastjson.JSONArray;
 | 
	
		
			
				|  |  | import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | import com.sun.org.apache.xpath.internal.operations.Bool;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.health.bank.ActivityDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.MixEnvelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.ObjEnvelop;
 | 
	
	
		
			
				|  | @ -298,9 +299,9 @@ public class ActivityController extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if (null != status && "2".equals(status) ) {
 | 
	
		
			
				|  |  |                 stringBuffer.append("status=2;");
 | 
	
		
			
				|  |  |                 stringBuffer.append("status>1;").append("status<0;");
 | 
	
		
			
				|  |  |             } else if (null != status && "1".equals(status) ) {
 | 
	
		
			
				|  |  |                 stringBuffer.append("status<2;");
 | 
	
		
			
				|  |  |                 stringBuffer.append("status>=0;").append("status<2;");
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             if(null!=crowdType&&StringUtils.isNotBlank(crowdType)){
 | 
	
		
			
				|  |  |                 stringBuffer.append("crowdType="+crowdType+";");
 | 
	
	
		
			
				|  | @ -322,6 +323,27 @@ public class ActivityController extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 编辑活动:上下线、推荐
 | 
	
		
			
				|  |  |      *
 | 
	
		
			
				|  |  |      * @param type
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @PostMapping(value = HealthBankMapping.healthBank.findActivityByType)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "获取是否存在在线的竞走活动")
 | 
	
		
			
				|  |  |     public ObjEnvelop<Boolean> findActivityByType(
 | 
	
		
			
				|  |  |             @ApiParam(name = "type", value = "活动类型")
 | 
	
		
			
				|  |  |             @RequestParam(value = "type", required = true) String type) {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             JSONObject obj=service.findActivityByType(type);
 | 
	
		
			
				|  |  |             return  ObjEnvelop.getSuccess("获取成功!",obj);
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             e.printStackTrace();
 | 
	
		
			
				|  |  |             tracer.getCurrentSpan().logEvent(e.getMessage());
 | 
	
		
			
				|  |  |             return ObjEnvelop.getError("获取失败!"+e.getMessage());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 |