فهرست منبع

Merge branch 'master' of http://192.168.1.220:10080/esb/esb

lingfeng 9 سال پیش
والد
کامیت
fa3b1111c4
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")+"\"}";
        }
    }