From 0ec22dcf4fd9c4496e6f681e7fab89f56c6e4e8a Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期四, 02 四月 2020 14:45:20 +0800 Subject: [PATCH] vip 消息 --- fanli/src/main/java/com/yeshi/fanli/service/inter/order/OrderTeamRewardService.java | 97 ++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 88 insertions(+), 9 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/order/OrderTeamRewardService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/order/OrderTeamRewardService.java index fdb6bdd..72053f3 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/order/OrderTeamRewardService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/order/OrderTeamRewardService.java @@ -1,7 +1,10 @@ package com.yeshi.fanli.service.inter.order; import java.math.BigDecimal; +import java.util.Date; +import java.util.List; +import com.yeshi.fanli.entity.order.InviteOrderSubsidy; import com.yeshi.fanli.entity.order.OrderTeamReward; import com.yeshi.fanli.exception.order.OrderTeamRewardException; @@ -25,8 +28,6 @@ * @return */ public OrderTeamReward getByOrderNoAndTypeForUpdate(Long uid, String orderNo, Integer type); - - /** * 娣诲姞鎴栦慨鏀癸紙鎸夌収璁㈠崟鍙蜂笌鏉ユ簮锛� @@ -34,7 +35,8 @@ * @param orderId * @param sourceType */ - public void addOrUpdateByOrder(String orderId, int sourceType) throws OrderTeamRewardException; + public void addOrUpdate(InviteOrderSubsidy subsidy, BigDecimal money, Long uid,int level) + throws OrderTeamRewardException; /** * 鏍规嵁璁㈠崟鍙蜂笌鏉ユ簮鏌ヨ @@ -51,21 +53,98 @@ * @param orderId * @param sourceType */ - public void invalidByOrderIdAndSourceType(String orderId, int sourceType); + public void invalidByOrderIdAndSourceType(Long subsidyId); - /** * 浣胯鍗曞彿瀵瑰簲鐨勬暟鎹湁鏁� * @param orderId * @param sourceType */ - public void validByOrderIdAndSourceType(String orderId, int sourceType); - - + public void validByOrderIdAndSourceType(Long subsidyId,Date preGetTime); + /** * 缁撶畻閲戦 * @param id * @param money */ - public void settleById(Long id,BigDecimal money); + public void settleById(Long id, BigDecimal money); + + /** + * 鏍规嵁琛ヨ创ID鑾峰彇鍥㈤槦濂栧姳 + * @Title: listBySubsidyId + * @Description: + * @param subsidyId + * @return + * List<OrderTeamReward> 杩斿洖绫诲瀷 + * @throws + */ + public List<OrderTeamReward> listBySubsidyId(Long subsidyId); + + + /** + * 鏌ヨ鍙互缁撶畻鐨� + * @Title: listCanSettle + * @Description: + * @param uid + * @param page + * @param pageSize + * @return + * List<OrderTeamReward> 杩斿洖绫诲瀷 + * @throws + */ + public List<OrderTeamReward> listCanSettle(Long uid,int page,int pageSize); + + /** + * 缁熻鍙互缁撶畻鐨勬暟閲� + * @Title: countCanSettle + * @Description: + * @param uid + * @return + * long 杩斿洖绫诲瀷 + * @throws + */ + public long countCanSettle(Long uid); + + + /** + * 鑳藉缁撶畻鐨勭敤鎴稩D鍒楄〃 + * @Title: listCanSettleUid + * @Description: + * @param page + * @param count + * @return + * List<Long> 杩斿洖绫诲瀷 + * @throws + */ + public List<Long> listCanSettleUid(Date time, int page,int count); + + + /** + * 鑳藉缁撶畻鐨勭敤鎴稩D鏁伴噺 + * @Title: countCanSettleUid + * @Description: + * @return + * long 杩斿洖绫诲瀷 + * @throws + */ + public long countCanSettleUid(Date time); + + + /** + * 缁熻鐢ㄦ埛鏈夋晥閲戦 + * @param uid + * @param day 1浠婃棩 2鏄ㄦ棩 3鏈湀 4涓婃湀 + * @param level + * @return + */ + public BigDecimal sumValidMoneyByUidAndDate(long uid, Integer day, Integer level); + + /** + * 缁熻鐢ㄦ埛宸插埌璐﹂噾棰� + * @param uid + * @return + */ + public BigDecimal sumRecievedMoneyByUid(long uid, Integer level); + + } -- Gitblit v1.8.0