Browse Source

total返回增加data

master
郑根木 2 years ago
parent
commit
018683dccc
2 changed files with 4 additions and 4 deletions
  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 View File

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


SwMap mapFooter = DbEngine.getInstance().queryEntity(sqlParaSum.sql, SwMap.class, sqlParaSum.paras); 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("total", mapFooter.get(TOTAL_KEY));
r.put("footer", mapFooter); r.put("footer", mapFooter);
return r;
return R.success(r);
} catch (Exception e) { } catch (Exception e) {
return R.error("计算合计失败!", e); return R.error("计算合计失败!", e);
} }


+ 2
- 2
smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/engine/dynPage/DynPageListHandler.java View File

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


SwMap mapFooter = DbEngine.getInstance().queryEntityN(sqlPara.sql, sqlPara.mapParas, SwMap.class); 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("total", mapFooter.get(TOTAL_KEY));
r.put("footer", mapFooter); r.put("footer", mapFooter);
return r;
return R.success(r);
} }
} }

Loading…
Cancel
Save