From bf0a347104579e5f7a2ed6e660ebb9f17f76ffc0 Mon Sep 17 00:00:00 2001
From: yujian <yujian@163.com>
Date: 星期五, 17 一月 2020 16:51:54 +0800
Subject: [PATCH] 后台编辑

---
 fanli/src/main/java/com/yeshi/fanli/service/inter/count/UserInfoCountService.java |  128 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 128 insertions(+), 0 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 6ca35f1..b1577e0 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,9 +1,12 @@
 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;
 
 
@@ -82,5 +85,130 @@
 	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);
+
+	public void initChannelUserCount();
+
+	
+	/**
+	 * 鏂扮敤鎴锋煡璇�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 channel
+	 * @param startTime
+	 * @param endTime
+	 * @return
+	 */
+	public List<CountOrderInfo> countOrderType(Integer state, 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