From 06caf9e1404d03e59c25389c6f55f46037d1cfd0 Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期五, 11 一月 2019 16:08:20 +0800 Subject: [PATCH] 后台订单接口+ 订单接口优化 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java | 50 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 49 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java index 098300b..ebcacb7 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2CountMapper.java @@ -1,5 +1,6 @@ package com.yeshi.fanli.dao.mybatis; +import java.math.BigDecimal; import java.util.List; import java.util.Map; @@ -7,6 +8,24 @@ public interface HongBaoV2CountMapper { + + /** + * 缁熻鍘嗗彶鎬诲埌璐﹂噾棰� + * @param uid + * @param state + * @return + */ + BigDecimal countMoneyByUidAndState(@Param("uid")Long uid, @Param("state") Integer state); + + + /** + * 缁熻鍘嗗彶绾㈠寘鏁伴噺 + * @param uid + * @param state + * @return + */ + Integer countNumberByUidAndState(@Param("uid")Long uid, @Param("state") Integer state); + /** * 缁熻鎬婚噾棰� * @param channel 娓犻亾 @@ -35,5 +54,34 @@ @Param("state") Integer state, @Param("year") String year, @Param("startTime")String startTime, @Param("endTime")String endTime); - + + /** + * 缁熻鎬讳釜鏁� + * @param channel 娓犻亾 + * @param type + * @param state + * @param years + * @param startTime + * @param endTime + * @return + */ + List<Map<String, Object>> countHongBaoType(@Param("dateType")Integer dateType, + @Param("type") Integer type, @Param("year") String year, + @Param("startTime")String startTime, @Param("endTime")String endTime); + + /** + * 缁熻鎬讳釜鏁� + * @param channel 娓犻亾 + * @param type + * @param state + * @param years + * @param startTime + * @param endTime + * @return + */ + List<Map<String, Object>> countHongBaoTotalNum(@Param("dateType")Integer dateType, @Param("year") String year, + @Param("startTime")String startTime, @Param("endTime")String endTime); + + // 绱鎻愭垚璁㈠崟鏁伴噺锛堝寘鍚棤鏁堣鍗曪級 + int getTotalTiChengCount(Long uid); } \ No newline at end of file -- Gitblit v1.8.0