소스 검색

代码提交

esb 9 년 전
부모
커밋
1c9541f978
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Hos-Resource-Rest/src/main/java/com/yihu/hos/test/TestController.java

+ 2 - 2
Hos-Resource-Rest/src/main/java/com/yihu/hos/test/TestController.java

@ -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")+"\"}";
        }
    }