|  | @ -6,6 +6,7 @@ import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | import com.yihu.jw.care.config.YsConfig;
 | 
	
		
			
				|  |  | import com.yihu.jw.care.dao.device.PatientDeviceDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.care.dao.label.WlyyPatientLabelDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.care.util.DeviceUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.care.device.DevicePatientDevice;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.ResponseContant;
 | 
	
		
			
				|  |  | import com.yihu.jw.rm.iot.IotRequestMapping;
 | 
	
	
		
			
				|  | @ -47,6 +48,8 @@ public class YsDeviceService {
 | 
	
		
			
				|  |  |     private HttpClientUtil httpClientUtil;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private PatientDeviceDao patientDeviceDao;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private DeviceUtil deviceUtil;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 获取萤石设备assesToken
 | 
	
	
		
			
				|  | @ -224,10 +227,12 @@ public class YsDeviceService {
 | 
	
		
			
				|  |  |                 case 0:
 | 
	
		
			
				|  |  |                     result.put(ResponseContant.resultFlag,ResponseContant.success);
 | 
	
		
			
				|  |  |                     result.put(ResponseContant.resultMsg,tmp);
 | 
	
		
			
				|  |  |                     deviceUtil.updateOnLineStatus(deviceSerial,1);
 | 
	
		
			
				|  |  |                     break;
 | 
	
		
			
				|  |  |                 case 1:
 | 
	
		
			
				|  |  |                     result.put(ResponseContant.resultFlag,ResponseContant.fail);
 | 
	
		
			
				|  |  |                     result.put(ResponseContant.resultMsg,"设备不在线");
 | 
	
		
			
				|  |  |                     deviceUtil.updateOnLineStatus(deviceSerial,0);
 | 
	
		
			
				|  |  |                     break;
 | 
	
		
			
				|  |  |                 case 2:
 | 
	
		
			
				|  |  |                     result.put(ResponseContant.resultFlag,ResponseContant.fail);
 | 
	
	
		
			
				|  | @ -253,7 +258,6 @@ public class YsDeviceService {
 | 
	
		
			
				|  |  |                     result.put(ResponseContant.resultFlag,ResponseContant.fail);
 | 
	
		
			
				|  |  |                     result.put(ResponseContant.resultMsg,"设备接入限制");
 | 
	
		
			
				|  |  |                     break;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         else {
 |