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/service/inter/hongbao/HongBaoV2Service.java | 74 +++++++++++++++++++++++++++++++++++-- 1 files changed, 70 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/hongbao/HongBaoV2Service.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/hongbao/HongBaoV2Service.java index 3eb4a4c..f018b86 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/hongbao/HongBaoV2Service.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/hongbao/HongBaoV2Service.java @@ -1,5 +1,9 @@ package com.yeshi.fanli.service.inter.hongbao; +import java.math.BigDecimal; +import java.util.List; + +import com.yeshi.fanli.dto.HongBaoDTO; import com.yeshi.fanli.entity.bus.user.HongBao; import com.yeshi.fanli.entity.bus.user.HongBaoV2; import com.yeshi.fanli.entity.order.CommonOrder; @@ -19,14 +23,16 @@ public HongBaoV2 selectByPrimaryKey(Long id); - /** * 娣诲姞绾㈠寘 - * @param commonOrder 璁㈠崟瀵硅薄 - * @param type 绫诲瀷 + * + * @param commonOrder + * 璁㈠崟瀵硅薄 + * @param type + * 绫诲瀷 * @throws HongBaoException */ - public void addHongBao(CommonOrder commonOrder,int type) throws HongBaoException; + public void addHongBao(CommonOrder commonOrder, int type) throws HongBaoException; /** * 灏嗚�佺増鏈殑绾㈠寘瀵硅薄杞负鏂扮増鏈殑瀵硅薄 @@ -35,4 +41,64 @@ */ public void convert(HongBao hb); + /** + * 濂栭噾鍒楄〃锛�1.4.9涔嬪墠鐨勭増鏈級 + * + * @param uid + * @param page + * @param pageSize + * @return + */ + public List<HongBaoDTO> listJiangJinByUid(Long uid, int page, int pageSize); + + /** + * 濂栭噾鏁伴噺锛�1.4.9涔嬪墠鐨勭増鏈級 + * + * @param uid + * @return + */ + public 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); + } -- Gitblit v1.8.0