From a06001d130f3b088a1afbd7d7dc8616d209a9fd5 Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期四, 23 五月 2019 11:23:14 +0800
Subject: [PATCH] 更换头像时 清除用户的邀请图片
---
fanli/src/main/java/com/yeshi/fanli/service/inter/order/CommonOrderService.java | 135 ++++++++++++++++++++++++++++++++++++++------
1 files changed, 115 insertions(+), 20 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/order/CommonOrderService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/order/CommonOrderService.java
index 87f1f97..0ad7a3d 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/inter/order/CommonOrderService.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/order/CommonOrderService.java
@@ -5,12 +5,12 @@
import java.util.List;
import java.util.Map;
-import org.apache.ibatis.annotations.Param;
-
import com.yeshi.fanli.entity.order.CommonOrder;
import com.yeshi.fanli.entity.taobao.TaoBaoOrder;
import com.yeshi.fanli.exception.order.CommonOrderException;
import com.yeshi.fanli.vo.order.CommonOrderVO;
+
+import net.sf.json.JSONObject;
public interface CommonOrderService {
@@ -82,7 +82,7 @@
* @param uid
* @return
*/
- public Map<String, BigDecimal> countOrderByHongBaoType(Long uid, Integer day);
+ public Map<String, BigDecimal> countHistoryOrder(Long uid, Integer day);
/**
* 缁熻璁㈠崟
@@ -90,7 +90,7 @@
* @param uid
* @return
*/
- public long countOrder(Long uid, Integer type, Integer isToday);
+ public long countBonusOrderNumber(Long uid, Integer type, Integer isToday, String startTime, String endTime);
/**
* 缁熻璁㈠崟
@@ -98,7 +98,20 @@
* @param uid
* @return
*/
- public BigDecimal countOrderMoney(Long uid, Integer type, Integer isToday);
+ public BigDecimal countBonusOrderMoney(Long uid, Integer type, Integer isToday, String startTime, String endTime);
+
+ /**
+ * 缁熻濂栭噾璁㈠崟鏁伴噺銆侀噾棰�
+ *
+ * @param uid
+ * @param type
+ * @param day
+ * @param startTime
+ * @param endTime
+ * @return
+ */
+ public Map<String, Object> countBonusOrderMoneyAndNumber(Long uid, Integer type, Integer day, String startTime,
+ String endTime);
/**
* 鏍规嵁鏉′欢缁熻
@@ -131,27 +144,109 @@
public List<CommonOrder> addTaoBaoOrder(List<TaoBaoOrder> taoBaoOrder, Long uid) throws CommonOrderException;
/**
- * 鏍规嵁鎻愭潯浠剁粺璁″凡鍒拌处閲戦
- *
- * @param uid
- * @param type
- * @param orderNo
- * @param startTime
- * @param endTime
- * @param day
- * @return
- */
- public Map<String, Object> countMoneyGroupOrderNoByUid(Long uid, Integer type, String orderNo, String startTime,
- String endTime, Integer day);
-
- /**
* 鏍规嵁鐢ㄦ埛ID锛岃鍗曠姸鎬侊紝缁撶畻鏃堕棿缁熻璁㈠崟鏁伴噺
+ *
* @param uid
* @param state
* @param minDate
* @param maxDate
* @return
*/
- long countByUidAndOrderStateWithOrderBalanceTime(Long uid, int state, Date minDate, Date maxDate);
+ public long countByUidAndOrderStateWithOrderBalanceTime(Long uid, int state, Date minDate, Date maxDate);
+
+ /**
+ * 鍚庣鏌ヨ璁㈠崟鍒楄〃
+ *
+ * @param start
+ * @param count
+ * @param uid
+ * @param state
+ * @param type
+ * @param orderState
+ * @param orderNo
+ * @param startTime
+ * @param endTime
+ * @param dateType
+ * 1鏄ㄥぉ 2浠婂ぉ 3鏈湀 4 涓婃湀
+ * @return
+ * @throws CommonOrderException
+ */
+ public List<CommonOrderVO> listQueryByUid(long start, int count, Long uid, Integer state, Integer type,
+ Integer orderState, String orderNo, String startTime, String endTime, Integer dateType)
+ throws CommonOrderException;
+
+ public long countQueryByUid(Long uid, Integer state, Integer type, Integer orderState, String orderNo,
+ String startTime, String endTime, Integer dateType) throws CommonOrderException;
+
+ /**
+ * 鏌ヨ鎵�鏈夌敤鎴疯鍗�
+ *
+ * @param start
+ * @param count
+ * @param keyType
+ * @param key
+ * @param state
+ * @param type
+ * @param orderState
+ * @param startTime
+ * @param endTime
+ * @return
+ * @throws CommonOrderException
+ */
+
+ public List<CommonOrderVO> listQuery(long start, int count, Integer keyType, String key, Integer state,
+ Integer type, Integer orderState, String startTime, String endTime) throws CommonOrderException;
+
+ public long countQuery(Integer keyType, String key, Integer state, Integer type, Integer orderState,
+ String startTime, String endTime) throws CommonOrderException;
+
+ /**
+ * 鏍规嵁璁㈠崟鍙疯幏鍙栦俊鎭�
+ *
+ * @param orderNo
+ * @return
+ * @throws CommonOrderException
+ */
+ public CommonOrderVO getInfoByOrderNo(Long uid, String orderNo) throws CommonOrderException;
+
+ /**
+ * 鏌ヨ鍒稿鍔遍噾棰濅互鍙婅鍗曚俊鎭�
+ *
+ * @param uid
+ * @param state
+ * @param orderNo
+ * @return
+ * @throws CommonOrderException
+ */
+ public List<CommonOrderVO> getCouponHongbaoByOrderNo(Long uid, Integer state, String orderNo)
+ throws CommonOrderException;
+
+ /**
+ * 鏌ヨ璁㈠崟
+ *
+ * @param uid
+ * @param orderNo
+ * @return
+ * @throws CommonOrderException
+ */
+ public CommonOrderVO getCommonOrderByOrderNo(Long uid, String orderNo, Integer orderState)
+ throws CommonOrderException;
+
+ /**
+ * 浣跨敤濂栧姳鍒告垚鍔熷悗璺宠浆 淇敼
+ *
+ * @param orderNo
+ * @return
+ */
+ public JSONObject getRewardJumpInfo(String orderNo);
+
+ /**
+ * 鏍规嵁浜ゆ槗鍙疯幏鍙栬鍗曡鎯�
+ *
+ * @param sourceType
+ * @param tradeId
+ * @return
+ */
+ public CommonOrder selectBySourceTypeAndTradeId(int sourceType, String tradeId);
}
--
Gitblit v1.8.0