From 69bee82b81626b82b7f39f0e459e4f56b1699b51 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 13 三月 2019 12:02:16 +0800 Subject: [PATCH] 正式数据库修改 --- fanli/src/main/java/com/yeshi/fanli/service/inter/hongbao/HongBaoV2Service.java | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 104 insertions(+), 3 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 5222f73..6dbb2a3 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,6 +1,16 @@ package com.yeshi.fanli.service.inter.hongbao; +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +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; +import com.yeshi.fanli.exception.HongBaoException; public interface HongBaoV2Service { @@ -9,11 +19,102 @@ public int insertSelective(HongBaoV2 record); public int updateByPrimaryKey(HongBaoV2 record); - + public int updateByPrimaryKeySelective(HongBaoV2 record); - + public int deleteByPrimaryKey(Long id); - + public HongBaoV2 selectByPrimaryKey(Long id); + /** + * 娣诲姞绾㈠寘 + * + * @param commonOrder + * 璁㈠崟瀵硅薄 + * @param type + * 绫诲瀷 + * @throws HongBaoException + */ + public void addHongBao(List<CommonOrder> commonOrder, int type) throws HongBaoException; + + + /** + * 濂栭噾鍒楄〃锛�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); + + /** + * 灏氭湭鍒拌处鐨勯噾棰�(鏍规嵁鍒涘缓鏃堕棿) + * + * @param uid + * @param minDate + * @param maxDate + * @return + */ + BigDecimal getUnRecievedMoneyWithCreateTime(Long uid, Date minDate, Date maxDate); + + /** + * 灏氭湭鍒拌处鐨勯噾棰�(鏍规嵁棰勮棰嗗彇鏃堕棿) + * + * @param uid + * @param minDate + * @param maxDate + * @return + */ + BigDecimal getUnRecievedMoneyWithPreGetTime(Long uid, Date minDate, Date maxDate); + } -- Gitblit v1.8.0