MCPcopy
hub / github.com/Exrick/xpay / PayDao

Interface PayDao

xpay-code/src/main/java/cn/exrick/dao/PayDao.java:16–31  ·  view source on GitHub ↗

@author Exrickx

Source from the content-addressed store, hash-verified

14 * @author Exrickx
15 */
16public interface PayDao extends JpaRepository<Pay,String>, JpaSpecificationExecutor<Pay> {
17
18 List<Pay> getByStateIs(Integer state);
19
20 @Query(value = "select sum(money) from t_pay where state = 1",nativeQuery = true)
21 BigDecimal countAllMoney();
22
23 @Query(value = "select sum(money) from t_pay where state = 1 and pay_type = ?1",nativeQuery = true)
24 BigDecimal countAllMoneyByType(String payType);
25
26 @Query(value = "select sum(money) from t_pay where state = 1 and create_time between ?1 and ?2",nativeQuery = true)
27 BigDecimal countMoney(Date date1, Date date2);
28
29 @Query(value = "select sum(money) from t_pay where state = 1 and pay_type = ?1 and create_time between ?2 and ?3",nativeQuery = true)
30 BigDecimal countMoneyByType(String payType, Date date1, Date date2);
31}

Callers 7

getPayListMethod · 0.80
cronJobMethod · 0.80
sendEmailJobMethod · 0.80
statisticMethod · 0.80
statisticMethod · 0.80
statisticMethod · 0.80
statisticMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected