资金大屏统计修改

This commit is contained in:
dinggang 2022-12-05 15:55:44 +08:00
parent 7e332201c4
commit c4e43ff5ef
2 changed files with 9 additions and 11 deletions

View File

@ -80,4 +80,8 @@ public interface TAbilityApplicationDao extends BaseDao<TAbilityApplicationEntit
List<Map> getProvideDistrictFundStatement(); List<Map> getProvideDistrictFundStatement();
List<Map> getApplyDistrictFundStatement(); List<Map> getApplyDistrictFundStatement();
Long getApplyPriceCount();
Long getResourceFundStatementTotal();
} }

View File

@ -234,13 +234,9 @@ public class TAbilityApplicationServiceImpl extends CrudServiceImpl<TAbilityAppl
@Override @Override
public Object getResourceFundStatement(Map<String, Object> params) { public Object getResourceFundStatement(Map<String, Object> params) {
List<Map> list = abilityApplicationDao.getResourceFundStatement(); List<Map> list = abilityApplicationDao.getResourceFundStatement();
BigDecimal total = BigDecimal.ZERO;
for (Map map : list) {
total = total.add((BigDecimal) map.get("applyPrice"));
}
Map<String, Object> resultMap = new HashMap<>(); Map<String, Object> resultMap = new HashMap<>();
resultMap.put("list", list); resultMap.put("list", list);
resultMap.put("total", total); resultMap.put("total", abilityApplicationDao.getResourceFundStatementTotal());
return resultMap; return resultMap;
} }
@ -292,12 +288,10 @@ public class TAbilityApplicationServiceImpl extends CrudServiceImpl<TAbilityAppl
@Override @Override
public Object getApplyPriceCount() { public Object getApplyPriceCount() {
Map<String, Object> map = new HashMap<>();
map.put("applyResult", "通过"); Long sum = 0L;
Long sum = abilityApplicationDao.getFundStatementSum(map); sum = sum + abilityApplicationDao.getApplyPriceCount();
BigDecimal result = new BigDecimal(sum).divide(new BigDecimal(10000)); return sum ;
result = result.setScale(1, BigDecimal.ROUND_HALF_UP);
return result ;
} }
} }