瀏覽代碼

total返回增加data

master
郑根木 2 年之前
父節點
當前提交
018683dccc
共有 2 個檔案被更改,包括 4 行新增4 行删除
  1. +2
    -2
      smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/mvc/service/AbstractListHandler.java
  2. +2
    -2
      smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/engine/dynPage/DynPageListHandler.java

+ 2
- 2
smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/mvc/service/AbstractListHandler.java 查看文件

@@ -128,10 +128,10 @@ public abstract class AbstractListHandler extends AbstractHandler {

SwMap mapFooter = DbEngine.getInstance().queryEntity(sqlParaSum.sql, SwMap.class, sqlParaSum.paras);

R r = R.success();
SwMap r = new SwMap();
r.put("total", mapFooter.get(TOTAL_KEY));
r.put("footer", mapFooter);
return r;
return R.success(r);
} catch (Exception e) {
return R.error("计算合计失败!", e);
}


+ 2
- 2
smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/engine/dynPage/DynPageListHandler.java 查看文件

@@ -67,9 +67,9 @@ public class DynPageListHandler extends AbstractListHandler {

SwMap mapFooter = DbEngine.getInstance().queryEntityN(sqlPara.sql, sqlPara.mapParas, SwMap.class);

R r = R.success();
SwMap r = new SwMap();
r.put("total", mapFooter.get(TOTAL_KEY));
r.put("footer", mapFooter);
return r;
return R.success(r);
}
}

Loading…
取消
儲存