|  | @ -30,7 +30,7 @@ public class CopdXeekDeviceService  {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public JSONObject getDeviceData(String patient,String deviceSN, String reportType, String parameter, String time, String begin, String end){
 | 
	
		
			
				|  |  |         List<Map<String,Object>> detailList = new ArrayList<>();
 | 
	
		
			
				|  |  |         StringBuilder sql = new StringBuilder(" select de.*,dict.name,lu.inspect_time from xmiot.wlyy_copd_xeek_lung_detail de," +
 | 
	
		
			
				|  |  |         StringBuilder sql = new StringBuilder(" select inspect_time dayTime,de.*,dict.name,lu.inspect_time from xmiot.wlyy_copd_xeek_lung_detail de," +
 | 
	
		
			
				|  |  |                 "xmiot.wlyy_copd_xeek_lung lu, xmiot.wlyy_iot_tz_dict dict  where  de.code = lu.id and dict.del=1 " +
 | 
	
		
			
				|  |  |                 "and  dict.code='COPD_PARAMETER' and dict.value = de.parameter ");
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -52,7 +52,7 @@ public class CopdXeekDeviceService  {
 | 
	
		
			
				|  |  |         if (StringUtils.isNotBlank(end)){
 | 
	
		
			
				|  |  |             sql.append(" and lu.inspect_time<='"+end+"' ");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         sql.append(" order by de.parameter, lu.inspect_time asc ");
 | 
	
		
			
				|  |  |         sql.append(" GROUP BY inspect_time,de.id order by de.parameter, lu.inspect_time asc ");
 | 
	
		
			
				|  |  |         detailList = jdbcTemplate.queryForList(sql.toString());
 | 
	
		
			
				|  |  |         StringBuilder sqlIn= new StringBuilder("select count(de.id) test1_value ,LEFT(inspect_time,10) dayTime,'次' unit,'吸气训练数据' name,'inCount' parameter from xmiot.wlyy_copd_xeek_lung_detail de,xmiot.wlyy_copd_xeek_lung lu," +
 | 
	
		
			
				|  |  |                   " xmiot.wlyy_iot_tz_dict dict  where  de.code = lu.id and dict.del=1 \n" +
 |