|  | @ -62,9 +62,9 @@ public class TestController {
 | 
	
		
			
				|  |  |         if (StringUtils.isEmpty(key)) {
 | 
	
		
			
				|  |  |             return JSONObject.fromObject(dv.getList()).toString();
 | 
	
		
			
				|  |  |         } else {
 | 
	
		
			
				|  |  |             String sqlT = "select max(" + key + ") from " + tablename;
 | 
	
		
			
				|  |  |             String sqlT = "select max(" + key + ") max from " + tablename;
 | 
	
		
			
				|  |  |             //不为空查询总条数和最大值
 | 
	
		
			
				|  |  |             return "{\"count\":\"" + dv.getCount() + "\",\"maxKeyvalue\":\"9999\"}";
 | 
	
		
			
				|  |  |             return "{\"count\":\"" + dv.getCount() + "\",\"maxKeyvalue\":\""+ db.query(sqlT).get(0).get("max")+"\"}";
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 |