From 5e7b0ed4a154ad067cbcf4aa1a1c7cce32f9864c Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 26 四月 2024 18:02:17 +0800 Subject: [PATCH] 唯品会链接解析升级 --- fanli/src/main/java/com/yeshi/fanli/service/inter/count/UserInfoCountService.java | 258 +++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 205 insertions(+), 53 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/count/UserInfoCountService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/count/UserInfoCountService.java index 8b3d681..e221d69 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/count/UserInfoCountService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/count/UserInfoCountService.java @@ -1,53 +1,205 @@ -package com.yeshi.fanli.service.inter.count; - -import java.math.BigDecimal; -import java.util.List; -import java.util.Map; - - - -public interface UserInfoCountService { - - - /** - * 缁熻鐢ㄦ埛涓暟 - * @param isToday 缁熻浠婃棩 - * @param isMonth 缁熻褰撴湀 浜屽垯涓嶅彲鍚屾椂瀛樺湪 - * @return - */ - public long countNewUser(Integer isToday, Integer isMonth); - - /** - * 鏍规嵁绛夌骇缁熻鐢ㄦ埛鏁伴噺 - * @param rank - * @return - */ - public long countRank(Integer rank); - - /** - * 缁熻鎵�鏈夌敤鎴锋�婚噾棰� 鎴� 鍙彁鐜伴噾棰� - * @param minMoney - * @return - */ - public BigDecimal countAllMoney(Double minMoney); - - /** - * 缁熻娴佸け鐢ㄦ埛鏁伴噺:锛� num 澶╂湭浣跨敤鐧诲綍骞朵笖鏃犱换浣曡祫閲戞祦鍔ㄧ殑璐﹀彿鏁伴噺锛� - * @param num 180 - * @return - */ - public long countLoseUser(int daysNum); - - /** - * 绱鏈夎喘涔扮敤鎴锋暟 - * @return - */ - public long countHasOrderUser(); - - - /** - * 缁熻鏂板鐢ㄦ埛 - * @return - */ - public List<Map<String, Object>> countNewUserByDate(Integer type,String years, String startTime, String endTime) throws Exception; -} +package com.yeshi.fanli.service.inter.count; + +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +import com.yeshi.fanli.dto.ChartTDO; +import com.yeshi.fanli.entity.admin.count.CountOrderInfo; +import com.yeshi.fanli.entity.admin.count.CountUserInfo; +import com.yeshi.fanli.vo.user.UserGoldCoinVO; + + + +public interface UserInfoCountService { + + + /** + * 缁熻鐢ㄦ埛涓暟 + * @param isToday 缁熻浠婃棩 + * @param isMonth 缁熻褰撴湀 浜屽垯涓嶅彲鍚屾椂瀛樺湪 + * @return + */ + public long countNewUser(Integer isToday, Integer isMonth); + + /** + * 鏍规嵁绛夌骇缁熻鐢ㄦ埛鏁伴噺 + * @param rank + * @return + */ + public long countRank(Integer rank); + + /** + * 缁熻鎵�鏈夌敤鎴锋�婚噾棰� 鎴� 鍙彁鐜伴噾棰� + * @param minMoney + * @return + */ + public BigDecimal countAllMoney(Double minMoney); + + /** + * 缁熻娴佸け鐢ㄦ埛鏁伴噺:锛� num 澶╂湭浣跨敤鐧诲綍骞朵笖鏃犱换浣曡祫閲戞祦鍔ㄧ殑璐﹀彿鏁伴噺锛� + * @param num 180 + * @return + */ + public long countLoseUser(int daysNum); + + /** + * 绱鏈夎喘涔扮敤鎴锋暟 + * @return + */ + public long countHasOrderUser(); + + + /** + * 缁熻鏂板鐢ㄦ埛 + * @return + */ + public List<ChartTDO> countNewUserByDate(String channel,Integer type,String years, String startTime, String endTime) throws Exception; + + + + public List<ChartTDO> getTodayBuyRate(String channel, Integer type, String years, String startTime, + String endTime) throws Exception; + + + public List<Object> getWeekBuyRate(String channel, String startTime, String endTime, + Integer orderNum, List<String> dateList) throws Exception; + + + /** + * 缁熻鐢ㄦ埛閲戝竵鎯呭喌 + * @param start + * @param count + * @return + */ + public List<UserGoldCoinVO> listByUserGoldCoin(long start, int count, int type, String key); + + public long countByUserGoldCoin(int type, String key); + + /** + * 缁熻鍓╀綑閲戝竵 + * @param start + * @param count + * @return + */ + public List<UserGoldCoinVO> listByHasGoldCoin(long start, int count, String key); + + public long countByHasGoldCoin(String key); + + public List<CountUserInfo> getNewUserData(Date startTime, Date endTime, String channel); + + + + /** + * 鏂扮敤鎴锋煡璇�24鍐呬笅鍗曟暟閲� -鏈夋晥鏁伴噺 + * @param channel + * @param startTime + * @param endTime + * @return + */ + public List<CountOrderInfo> count24HOderByChannel(String channel, Date startTime, Date endTime); + + /** + * 鏂扮敤鎴峰綋鏃ヤ笅鍗曟暟閲� -鏈夋晥 + * @param channel + * @param startTime + * @param endTime + * @return + */ + public List<CountUserInfo> countUserDownOrderByChannelAndToday(String channel, Date startTime, Date endTime); + + /** + * 鏂扮敤鎴�7澶╁唴涓嬪崟鏁伴噺- 鏈夋晥 + * @param channel + * @param startTime + * @param endTime + * @return + */ + public List<CountUserInfo> countUseByChannelAndWeekOrder(String channel, Date startTime, Date endTime); + + /** + * 鏂扮敤鎴�7澶╁唴涓�3鍗曟暟閲�- 鏈夋晥 + * @param channel + * @param startTime + * @param endTime + * @return + */ + public List<CountUserInfo> countUseByChannelAndWeekThreeOrder(String channel, Date startTime, Date endTime); + + /** + * 鍒濆鍖栫敤鎴�7澶╄鍗曠粺璁� + */ + public void initCountUserWeekOrder(); + + /** + * 缁熻璁㈠崟鎬绘暟閲� -鍒嗘笭閬� 鏈夋晥鐨� + * @param channel + * @param startTime + * @param endTime + * @return + */ + public List<CountOrderInfo> countOderByChannel(String channel, Date startTime, Date endTime); + + /** + * 缁熻璁㈠崟浣i噾 + * @param channel + * @param startTime + * @param endTime + * @return + */ + public List<CountOrderInfo> countHongBaoByChannel(String channel, Date startTime, Date endTime); + + + /** + * 缁熻缁存潈璁㈠崟鏁伴噺 + * @param state + * @param startTime + * @param endTime + * @return + */ + public List<CountOrderInfo> countWeiQuanOrder(Date startTime, Date endTime); + + /** + * 缁熻缁存潈閲戦 + * @param state + * @param startTime + * @param endTime + * @return + */ + public List<CountOrderInfo> countWeiQuanOrderMoney(Date startTime, Date endTime); + + /** + * 缁熻璁㈠崟鎵惧洖閲戦 + * @param startTime + * @param endTime + * @return + */ + public List<CountOrderInfo> counOrderLastMoney(Date startTime, Date endTime); + + /** + * 缁熻璁㈠崟鎵惧洖涓暟 + * @param startTime + * @param endTime + * @return + */ + public List<CountOrderInfo> counOrderLastNum(Date startTime, Date endTime); + + + /** + * 缁熻璁㈠崟鎬讳剑閲� + * @param startTime + * @param endTime + * @return + */ + public List<CountOrderInfo> counOrderTotalCommission(Date startTime, Date endTime); + + /** + * 璁㈠崟鎬诲崟鏁� + * @param startTime + * @param endTime + * @return + */ + public List<CountOrderInfo> counOrderTotalNum(Date startTime, Date endTime); + + +} -- Gitblit v1.8.0