diff --git a/renren-admin/src/main/java/io/renren/modules/processForm/dao/TAbilityApplicationDao.java b/renren-admin/src/main/java/io/renren/modules/processForm/dao/TAbilityApplicationDao.java index b1c5e388..3547496a 100644 --- a/renren-admin/src/main/java/io/renren/modules/processForm/dao/TAbilityApplicationDao.java +++ b/renren-admin/src/main/java/io/renren/modules/processForm/dao/TAbilityApplicationDao.java @@ -80,4 +80,8 @@ public interface TAbilityApplicationDao extends BaseDao getProvideDistrictFundStatement(); List getApplyDistrictFundStatement(); + + Long getApplyPriceCount(); + + Long getResourceFundStatementTotal(); } \ No newline at end of file diff --git a/renren-admin/src/main/java/io/renren/modules/processForm/service/impl/TAbilityApplicationServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/processForm/service/impl/TAbilityApplicationServiceImpl.java index ae796363..421c3cd6 100644 --- a/renren-admin/src/main/java/io/renren/modules/processForm/service/impl/TAbilityApplicationServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/processForm/service/impl/TAbilityApplicationServiceImpl.java @@ -234,13 +234,9 @@ public class TAbilityApplicationServiceImpl extends CrudServiceImpl params) { List list = abilityApplicationDao.getResourceFundStatement(); - BigDecimal total = BigDecimal.ZERO; - for (Map map : list) { - total = total.add((BigDecimal) map.get("applyPrice")); - } Map resultMap = new HashMap<>(); resultMap.put("list", list); - resultMap.put("total", total); + resultMap.put("total", abilityApplicationDao.getResourceFundStatementTotal()); return resultMap; } @@ -292,12 +288,10 @@ public class TAbilityApplicationServiceImpl extends CrudServiceImpl map = new HashMap<>(); - map.put("applyResult", "通过"); - Long sum = abilityApplicationDao.getFundStatementSum(map); - BigDecimal result = new BigDecimal(sum).divide(new BigDecimal(10000)); - result = result.setScale(1, BigDecimal.ROUND_HALF_UP); - return result ; + + Long sum = 0L; + sum = sum + abilityApplicationDao.getApplyPriceCount(); + return sum ; } } \ No newline at end of file