From 374fa38b5e4c17c079e027e9987e966f30a5cd36 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 05 一月 2019 12:13:46 +0800 Subject: [PATCH] 新版订单统计,返利,到账修改 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2Mapper.java | 93 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 93 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2Mapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2Mapper.java index 0c06de8..69ff463 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2Mapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/HongBaoV2Mapper.java @@ -1,17 +1,110 @@ package com.yeshi.fanli.dao.mybatis; +import java.math.BigDecimal; import java.util.List; +import org.apache.ibatis.annotations.Param; + import com.yeshi.fanli.dao.BaseMapper; +import com.yeshi.fanli.dto.HongBaoDTO; import com.yeshi.fanli.entity.bus.user.HongBaoV2; public interface HongBaoV2Mapper extends BaseMapper<HongBaoV2> { + HongBaoV2 selectByPrimaryKeyForUpdate(Long id); + /** * 鑾峰彇瀛愮孩鍖呭垪琛� + * * @param id * @return */ List<HongBaoV2> listChildrenById(Long id); + /** + * 鑾峰彇濂栭噾鍒楄〃锛�1.4.9涔嬪墠锛� + * + * @param uid + * @param start + * @param count + * @return + */ + List<HongBaoDTO> listJiangJinByUid(@Param("uid") Long uid, @Param("start") long start, @Param("count") int count); + + /** + * 鑾峰彇濂栭噾鏁伴噺锛�1.4.9涔嬪墠锛� + * + * @param uid + * @return + */ + Long countJiangJinByUid(Long uid); + + /** + * 鑾峰彇鎬荤殑鎻愭垚閲戦 + * + * @param uid + * @return + */ + BigDecimal getTotalTiChengMoney(Long uid); + + /** + * 鑾峰彇鎬荤殑鎻愭垚绗旀暟 + * + * @param uid + * @return + */ + int getTotalTiChengCount(Long uid); + + /** + * 鑾峰彇杩樻湭鍒拌处鐨勬彁鎴愰噾棰� + * + * @param uid + * @return + */ + BigDecimal getUnGetTiChengMoney(Long uid); + + /** + * 鑾峰彇鎬诲叡杩斿埄閲戦 + * + * @param uid + * @return + */ + BigDecimal getTotalFanLiMoney(Long uid); + + /** + * 鑾峰彇杩樻湭鍒拌处鐨勯噾棰� + * + * @param uid + * @return + */ + BigDecimal getUnRecievedFanLiMoney(Long uid); + + /** + * 鏍规嵁绾㈠寘绫诲瀷鑾峰彇缁撶畻鍒楄〃 + * + * @param type + * @param count + * @return + */ + List<HongBaoV2> listCanBalanceHongBaoByType(@Param("type") int type, @Param("count") int count); + + /** + * 鑾峰彇鑳藉缁撶畻鐨勫垎浜禋鍜岄個璇疯禋鐨勭敤鎴峰垪琛� + * + * @param count + * @return + */ + List<Long> listUidCanBanlanceShareAndInvite(int count); + + /** + * 鏍规嵁鐢ㄦ埛ID锛岀被鍨嬭幏鍙栬兘澶熺粨绠楃殑绾㈠寘 + * + * @param type + * @param uid + * @param count + * @return + */ + List<HongBaoV2> listCanBalanceHongBaoByTypeAndUid(@Param("types") List<Integer> type, @Param("uid") Long uid, + @Param("count") int count); + } \ No newline at end of file -- Gitblit v1.8.0