Bladeren bron

total返回增加data

master
郑根木 2 jaren geleden
bovenliggende
commit
018683dccc
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  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 Bestand weergeven

@@ -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 Bestand weergeven

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

Laden…
Annuleren
Opslaan