|  | @ -5,9 +5,11 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
 | 
	
		
			
				|  |  | import com.yihu.fastdfs.FastDFSUtil;
 | 
	
		
			
				|  |  | import com.yihu.jw.care.dao.device.DeviceSosLogDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.care.dao.device.PatientDeviceDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.care.dao.device.PatientSafeAreaDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.base.patient.BasePatientDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.care.device.DevicePatientDevice;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.care.device.DeviceSosLogDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.care.device.PatientSafeAreaDO;
 | 
	
		
			
				|  |  | import com.yihu.jw.exception.business.file_upload.*;
 | 
	
		
			
				|  |  | import com.yihu.jw.patient.dao.BasePatientDao;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.iot.common.UploadVO;
 | 
	
	
		
			
				|  | @ -52,6 +54,8 @@ public class SecurityOrderUtil {
 | 
	
		
			
				|  |  |     private String fastdfs_file_url;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private DeviceSosLogDao sosLogDao;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private PatientSafeAreaDao safeAreaDao;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /***创建安防工单***/
 | 
	
		
			
				|  |  |     public JSONObject createSecurityOrder(String deviceSN, String sceneUrl, JSONObject result,JSONObject addressInfo, Integer orderSource, String dictCode, String topicItem, String warnInfo){
 | 
	
	
		
			
				|  | @ -97,7 +101,12 @@ public class SecurityOrderUtil {
 | 
	
		
			
				|  |  |                 }else{
 | 
	
		
			
				|  |  |                     return new JSONObject();
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 if ("1".equals(dictCode)){//疑似离开安全区域 v1.5电子围栏为确认管理时触发
 | 
	
		
			
				|  |  |                     List<PatientSafeAreaDO> safeAreaDOS = safeAreaDao.findByPatient(patientDO.getId());
 | 
	
		
			
				|  |  |                     if (safeAreaDOS.size()>0){
 | 
	
		
			
				|  |  |                         return new JSONObject();
 | 
	
		
			
				|  |  |                     }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 JSONObject jsonObject = new JSONObject();
 | 
	
		
			
				|  |  |                 jsonObject.put("patient",patientDO.getId());
 | 
	
		
			
				|  |  |                 jsonObject.put("patientName",patientDO.getName());
 |