From 62a447d89331aee1feae7724c7616aa1bb2cfe79 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 16 十月 2024 14:28:37 +0800 Subject: [PATCH] 将CMQ替换为rabbitmq --- fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java | 511 +++++++++++++++++++++++++++++--------------------------- 1 files changed, 263 insertions(+), 248 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java index d534cce..bee440f 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/count/HongBaoV2CountService.java @@ -1,249 +1,264 @@ -package com.yeshi.fanli.service.inter.count; - -import java.math.BigDecimal; -import java.util.Date; -import java.util.List; - -import com.yeshi.fanli.vo.order.HongBaoV2VO; - -public interface HongBaoV2CountService { - - /** - * 缁熻鍘嗗彶鎬诲埌璐﹂噾棰� - * - * @param uid - * @param state - * @return - */ - public BigDecimal countMoneyByUidAndState(Long uid, Integer state); - - /** - * 缁熻鍘嗗彶绾㈠寘鏁伴噺 - * - * @param uid - * @param state - * @return - */ - public Integer countNumberByUidAndState(Long uid, Integer state); - - /** - * 缁熻鐢ㄦ埛绾㈠寘鏁伴噺 - * - * @param uid - * @return - */ - public Integer countNumberByUid(Long uid); - - - /** - * 缁熻鎻愭垚璁㈠崟鏁伴噺 - * - * @param uid - * @return - */ - public int getTotalTiChengCount(Long uid); - - /** - * 缁熻鏈け鏁堣鍗曟暟閲� - * - * @param uid - * @param dateType - * @return - */ - public long countValidNumberByUid(Long uid, Integer dateType); - - /** - * 缁熻鏈埌璐﹂噾棰� - * - * @param uid - * @param dateType - * @return - */ - public BigDecimal countWillGetMoneyByUid(Long uid); - - /** - * 鏈�鍚庝竴娆′笅鍗曟椂闂� - * - * @param uid - * @return - */ - public Date getLastHongBaoTime(Long uid); - - - /** - * 鏌ヨ閭�璇�=鍒嗕韩濂栭噾 - * - * @param start - * @param count - * @param date - * @return - */ - public List<HongBaoV2VO> listShareAndInviteMoney(long start, int count, String date); - - /** - * 濂栧姳鍒搁噾棰� - * - * @return - */ - public BigDecimal countRebateCouponMoney(); - - /** - * 缁熻杩斿埄璁㈠崟 - * @param uid - * @return - */ - public long countRebateOrder(Long uid); - - /** - * 缁熻鍒嗕韩+ 閭�璇疯鍗� - * @param uid - * @return - */ - public long countShareOrInviteOrder(Long uid); - - /** - * 缁熻宸插埌璐� - * - * @param uid - * @param typeList - * @param minGetTime - * @param maxGetTime - * @return - */ - public BigDecimal sumAlreadyGetMoneyByUid(Long uid, List<Integer> typeList, Date minGetTime, Date maxGetTime); - - public long countAlreadyGetMoneyByUid(Long uid, List<Integer> typeList, Date minGetTime, Date maxGetTime); - +package com.yeshi.fanli.service.inter.count; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +import com.yeshi.fanli.vo.order.HongBaoV2VO; + +public interface HongBaoV2CountService { + + + /** - * 鏌ヨ鏉ユ簮璇ヤ笅绾ф垚鍔熷垎浜� + 鑷喘璁㈠崟 - * @param uid - * @param teamUid - * @param endTime - * @return - */ - public BigDecimal getOrderRewardByTeamUid(Long uid, Long teamUid, Date endTime); - - /** - * 缁熻璇ヤ笅绾ф垚鍔熷垎浜� + 鑷喘璁㈠崟 - * @param uid - * @param teamUid 涓嬬骇id - * @return - */ - public BigDecimal getOrderRewardByTeamUidTheMonth(Long uid, Long teamUid); - - /** - * 鑷喘杩斿埄鍒拌处閲戦 - * @param uid - * @return - */ - public BigDecimal getRewardMoneyBySelf(Long uid); - - /** - * 鍒嗕韩濂栧姳鍒拌处閲戦 - * @param uid - * @return - */ - public BigDecimal getRewardMoneyByShare(Long uid); - - /** - * 涓嬬骇浜х敓濂栧姳鍒拌处閲戦 - * @param uid - * @return - */ - public BigDecimal getRewardMoneyByInvite(Long uid); - - - /** - * 缁熻涓嶅悓鏃堕棿锛氬鍔� - * @param uid - * @param dateType - * @param hbType - * @return - */ - public BigDecimal getRewardMoneyToCount(Long uid, Integer dateType, Integer hbType, List<Integer> listSource); - - /** - * 缁熻绾㈠寘涓暟 - * @param uid - * @param type 绾㈠寘绫诲瀷 - * @return - */ - public long getHongBaoCount(Long uid, Integer type); - - /** - * 绛涢�夌粨鏋滈〉椤堕儴缁熻 - * @param uid - * @param dateType - * @param hbType - * @param orderState - * @param orderNo - * @param source - * @param startTime - * @param endTime - * @return - */ - public BigDecimal getRewardMoneyByToSearch(Long uid, Integer dateType, Integer hbType, Integer orderState, String orderNo, - Integer moneyState, String startTime, String endTime, List<Integer> listSource, boolean notBackSuVip); - - - public Long countOrderByTypeAndDate(Integer orderType, String preDay); - - /** - * 缁熻璁㈠崟鏁伴噺 - * @param uid - * @param time 涓嬪崟寮�濮嬫椂闂� - * @param payment 浠樻閲戦 - * @param type 璁㈠崟绫诲瀷 - * @return - */ - public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment); - - /** - * 缁熻璁㈠崟鏁伴噺 - * @param uid - * @param time 涓嬪崟寮�濮嬫椂闂� - * @param payment 浠樻閲戦 - * @param type 璁㈠崟绫诲瀷 1鑷喘 2鍒嗕韩 - * @return - */ - public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment, Integer type); - - - - public BigDecimal geBonusByuid(Long uid, Integer dateType, Integer hbType, Integer moneyState); - - /** - * 缁熻杩戞棩鍒拌处鏀跺叆閲戦 - * @param uid - * @param day - * @return - */ - public BigDecimal sumMoneyArrivalByUidAndNearDay(Long uid, int day); - - /** - * 缁熻鏀惰揣閲戦 - * @param uid - * @param minDate - * @param maxDate - * @return - */ - public BigDecimal sumMoneyBySettleTimeAndUid(Long uid, Date minDate, Date maxDate); - - - /** - * 180澶╁唴鏈敹璐х殑閲戦 - * @param uid - * @return - */ - public BigDecimal sumMoneyByANotSettleAndUid(Long uid); - - /** - * 缁熻鏈埌璐︾殑鏁伴噺 - * @param uid - * @param payment - * @param type - * @return - */ - public long countMyDirectOrderByCashNotArrival(Long uid, BigDecimal payment, Integer type); - -} + * 缁熻鍘嗗彶鎬诲埌璐﹂噾棰� + * + * @param uid + * @param state + * @return + */ + public BigDecimal countMoneyByUidAndState(Long uid, Integer state); + + /** + * 缁熻鍘嗗彶绾㈠寘鏁伴噺 + * + * @param uid + * @param state + * @return + */ + public Integer countNumberByUidAndState(Long uid, Integer state); + + /** + * 缁熻鐢ㄦ埛绾㈠寘鏁伴噺 + * + * @param uid + * @return + */ + public Integer countNumberByUid(Long uid); + + + /** + * 缁熻鎻愭垚璁㈠崟鏁伴噺 + * + * @param uid + * @return + */ + public int getTotalTiChengCount(Long uid); + + /** + * 缁熻鏈け鏁堣鍗曟暟閲� + * + * @param uid + * @param dateType + * @return + */ + public long countValidNumberByUid(Long uid, Integer dateType); + + /** + * 缁熻鏈埌璐﹂噾棰� + * + * @param uid + * @param dateType + * @return + */ + public BigDecimal countWillGetMoneyByUid(Long uid); + + /** + * 鏈�鍚庝竴娆′笅鍗曟椂闂� + * + * @param uid + * @return + */ + public Date getLastHongBaoTime(Long uid); + + + /** + * 鏌ヨ閭�璇�=鍒嗕韩濂栭噾 + * + * @param start + * @param count + * @param date + * @return + */ + public List<HongBaoV2VO> listShareAndInviteMoney(long start, int count, String date); + + /** + * 濂栧姳鍒搁噾棰� + * + * @return + */ + public BigDecimal countRebateCouponMoney(); + + /** + * 缁熻杩斿埄璁㈠崟 + * @param uid + * @return + */ + public long countRebateOrder(Long uid); + + /** + * 缁熻鍒嗕韩+ 閭�璇疯鍗� + * @param uid + * @return + */ + public long countShareOrInviteOrder(Long uid); + + /** + * 缁熻宸插埌璐� + * + * @param uid + * @param typeList + * @param minGetTime + * @param maxGetTime + * @return + */ + public BigDecimal sumAlreadyGetMoneyByUid(Long uid, List<Integer> typeList, Date minGetTime, Date maxGetTime); + + public long countAlreadyGetMoneyByUid(Long uid, List<Integer> typeList, Date minGetTime, Date maxGetTime); + + /** + * 鏌ヨ鏉ユ簮璇ヤ笅绾ф垚鍔熷垎浜� + 鑷喘璁㈠崟 + * @param uid + * @param teamUid + * @param endTime + * @return + */ + public BigDecimal getOrderRewardByTeamUid(Long uid, Long teamUid, Date endTime); + + /** + * 缁熻璇ヤ笅绾ф垚鍔熷垎浜� + 鑷喘璁㈠崟 + * @param uid + * @param teamUid 涓嬬骇id + * @return + */ + public BigDecimal getOrderRewardByTeamUidTheMonth(Long uid, Long teamUid); + + /** + * 鑷喘杩斿埄鍒拌处閲戦 + * @param uid + * @return + */ + public BigDecimal getRewardMoneyBySelf(Long uid); + + /** + * 鍒嗕韩濂栧姳鍒拌处閲戦 + * @param uid + * @return + */ + public BigDecimal getRewardMoneyByShare(Long uid); + + /** + * 涓嬬骇浜х敓濂栧姳鍒拌处閲戦 + * @param uid + * @return + */ + public BigDecimal getRewardMoneyByInvite(Long uid); + + + /** + * 缁熻涓嶅悓鏃堕棿锛氬鍔� + * @param uid + * @param dateType + * @param hbType + * @return + */ + public BigDecimal getRewardMoneyToCount(Long uid, Integer dateType, Integer hbType, List<Integer> listSource); + + /** + * 缁熻绾㈠寘涓暟 + * @param uid + * @param type 绾㈠寘绫诲瀷 + * @return + */ + public long getHongBaoCount(Long uid, Integer type); + + /** + * 绛涢�夌粨鏋滈〉椤堕儴缁熻 + * @param uid + * @param dateType + * @param hbType + * @param orderState + * @param orderNo + * @param source + * @param startTime + * @param endTime + * @return + */ + public BigDecimal getRewardMoneyByToSearch(Long uid, Integer dateType, Integer hbType, Integer orderState, String orderNo, + Integer moneyState, String startTime, String endTime, List<Integer> listSource); + + + public Long countOrderByTypeAndDate(Integer orderType, String preDay); + + /** + * 缁熻璁㈠崟鏁伴噺 + * @param uid + * @param time 涓嬪崟寮�濮嬫椂闂� + * @param payment 浠樻閲戦 + * @param type 璁㈠崟绫诲瀷 + * @return + */ + public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment); + + /** + * 缁熻璁㈠崟鏁伴噺 + * @param uid + * @param time 涓嬪崟寮�濮嬫椂闂� + * @param payment 浠樻閲戦 + * @param type 璁㈠崟绫诲瀷 1鑷喘 2鍒嗕韩 + * @return + */ + public long countMyDirectOrderByCashArrival(Long uid, BigDecimal payment, Integer type); + + + + public BigDecimal geBonusByuid(Long uid, Integer dateType, Integer hbType, Integer moneyState); + + /** + * 缁熻杩戞棩鍒拌处鏀跺叆閲戦 + * @param uid + * @param day + * @return + */ + public BigDecimal sumMoneyArrivalByUidAndNearDay(Long uid, int day); + + /** + * 缁熻鏀惰揣閲戦 + * @param uid + * @param minDate + * @param maxDate + * @return + */ + public BigDecimal sumMoneyBySettleTimeAndUid(Long uid, Date minDate, Date maxDate); + + + /** + * 180澶╁唴鏈敹璐х殑閲戦 + * @param uid + * @return + */ + public BigDecimal sumMoneyByANotSettleAndUid(Long uid); + + + + /** + * 缁熻宸插埌璐﹁鍗曟暟閲� + * @param uid + * @param payment -浠樻閲戦 + * @param type -绫诲瀷锛� 1鑷喘 2鍒嗕韩 3閭�璇� 4鑷喘+鍒嗕韩 + * @param dateType 1鏈湀 + * @return + */ + public long countOrderByCashArrival(Long uid, BigDecimal payment, Integer type, Integer dateType); + + /** + * 缁熻鏈埌璐﹁鍗曟暟閲� + * @param uid + * @param payment -浠樻閲戦 + * @param type -绫诲瀷锛� 1鑷喘 2鍒嗕韩 3閭�璇� 4鑷喘+鍒嗕韩 + * @param dateType 1鏈湀 + * @return + */ + public long countOrderByCashNotArrival(Long uid, BigDecimal payment, Integer type, Integer dateType); + +} -- Gitblit v1.8.0