Browse Source

历史捐款金额和人数只计算已经支付的

scr 8 years ago
parent
commit
6889b376cb

+ 2 - 2
donate-service/src/main/java/com/uas/service/donate/dao/ProjectRecodeDao.java

@@ -25,11 +25,11 @@ public interface ProjectRecodeDao extends JpaRepository<ProjectRecode,Long>,JpaS
     Long sumMoney(@Param("uuid")Long uuid);
 
     //查询所有项目已筹集金额
-    @Query("select  sum(amount) from ProjectRecode ")
+    @Query("select  sum(amount) from ProjectRecode where status=2")
     Double totality();
 
     //查询所有的项目历史总参与人数
-    @Query("select count(*) from ProjectRecode")
+    @Query("select count(*) from ProjectRecode where status=2")
     Long historyPerson();
 
     //查询某项目参与总人数