|  | @ -2666,12 +2666,15 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
 | 
	
		
			
				|  |  |                 com.alibaba.fastjson.JSONObject object = new com.alibaba.fastjson.JSONObject();
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 String deviceSn = "";
 | 
	
		
			
				|  |  |                 List<String> deviceSns = jdbcTemplate.queryForList("select pd.device_sn from wlyy_patient_device pd INNER JOIN dm_device dd " +
 | 
	
		
			
				|  |  |                         " on pd.device_id = dd.id where  pd.user = '" + patientTmp.get("id").toString() + "' and pd.del=0  and pd.category_code in (" + categoryCode + ") and FIND_IN_SET('" + topicItemTmp + "',dd.service_topic)", String.class);
 | 
	
		
			
				|  |  |                 String deviceCode = "";
 | 
	
		
			
				|  |  |                 List<Map<String, Object>> deviceSns = jdbcTemplate.queryForList("select pd.device_sn,pd.category_code from wlyy_patient_device pd INNER JOIN dm_device dd " +
 | 
	
		
			
				|  |  |                         " on pd.device_id = dd.id where  pd.user = '" + patientTmp.get("id").toString() + "' and pd.del=0  and pd.category_code in (" + categoryCode + ") and FIND_IN_SET('" + topicItemTmp + "',dd.service_topic)");
 | 
	
		
			
				|  |  |                 if (deviceSns.size() > 0) {
 | 
	
		
			
				|  |  |                     deviceSn = deviceSns.get(0);
 | 
	
		
			
				|  |  |                     deviceSn = deviceSns.get(0).get("device_sn").toString();
 | 
	
		
			
				|  |  |                     deviceCode = deviceSns.get(0).get("category_code").toString();
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 object.put("deviceSn", deviceSn);
 | 
	
		
			
				|  |  |                 object.put("deviceCode", deviceCode);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                 switch (topicItem) {
 | 
	
		
			
				|  |  |                     case "actionTrack":
 | 
	
	
		
			
				|  | @ -2712,14 +2715,17 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit
 | 
	
		
			
				|  |  |             for (int i = 0; i < list.size(); i++) {
 | 
	
		
			
				|  |  |                 Map<String, Object> patientTmp = list.get(i);
 | 
	
		
			
				|  |  |                 String deviceSn = "";
 | 
	
		
			
				|  |  |                 List<String> deviceSns = jdbcTemplate.queryForList("select pd.device_sn from wlyy_patient_device pd INNER JOIN dm_device dd " +
 | 
	
		
			
				|  |  |                         " on pd.device_id = dd.id where  pd.user = '" + patientTmp.get("id").toString() + "' and pd.del=0  and pd.category_code in (" + categoryCode + ") and FIND_IN_SET('" + topicItem + "',dd.service_topic)", String.class);
 | 
	
		
			
				|  |  |                 String deviceCode = "";
 | 
	
		
			
				|  |  |                 List<Map<String, Object>> deviceSns = jdbcTemplate.queryForList("select pd.device_sn,pd.category_code from wlyy_patient_device pd INNER JOIN dm_device dd " +
 | 
	
		
			
				|  |  |                         " on pd.device_id = dd.id where  pd.user = '" + patientTmp.get("id").toString() + "' and pd.del=0  and pd.category_code in (" + categoryCode + ") and FIND_IN_SET('" + topicItem + "',dd.service_topic)");
 | 
	
		
			
				|  |  |                 if (deviceSns.size() > 0) {
 | 
	
		
			
				|  |  |                     deviceSn = deviceSns.get(0);
 | 
	
		
			
				|  |  |                     deviceSn = deviceSns.get(0).get("device_sn").toString();
 | 
	
		
			
				|  |  |                     deviceCode = deviceSns.get(0).get("category_code").toString();
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                 JSONObject object = patientMonitoringInfo(patientTmp.get("id").toString(), "null", null,false);
 | 
	
		
			
				|  |  |                 object.put("deviceSn", deviceSn);
 | 
	
		
			
				|  |  |                 object.put("patientInfo", patientTmp);
 | 
	
		
			
				|  |  |                 object.put("deviceCode", deviceCode);
 | 
	
		
			
				|  |  |                 monitorInfos.add(object);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             result.put("topicInfo", monitorInfos);
 |