From c471532409331e34eb0d914bcbbb88f20abb4b93 Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@MS-20170306HGUF> Date: 星期日, 23 二月 2020 17:16:35 +0800 Subject: [PATCH] 发圈分享 --- fanli/src/main/java/com/yeshi/fanli/service/inter/order/CommonOrderService.java | 50 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 48 insertions(+), 2 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 4ca7ae7..b1da93c 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 @@ -9,10 +9,12 @@ import com.yeshi.fanli.entity.accept.AcceptData; import com.yeshi.fanli.entity.jd.JDOrder; import com.yeshi.fanli.entity.order.CommonOrder; +import com.yeshi.fanli.entity.order.ESOrder; import com.yeshi.fanli.entity.pdd.PDDOrder; import com.yeshi.fanli.entity.taobao.TaoBaoOrder; import com.yeshi.fanli.exception.order.CommonOrderException; import com.yeshi.fanli.vo.order.CommonOrderVO; +import com.yeshi.fanli.vo.order.OrderCountVO; import net.sf.json.JSONObject; @@ -64,7 +66,7 @@ * @throws CommonOrderException */ long countGroupOrderNoByUid(Long uid, Integer state, Integer type, Integer orderState, String orderNo, - String startTime, String endTime, Integer dateType, Integer source) throws CommonOrderException; + String startTime, String endTime, Integer dateType, List<Integer> listSource) throws CommonOrderException; /** * 绉诲姩娈佃鍗曞垪琛� @@ -78,7 +80,7 @@ * @return */ public List<CommonOrderVO> getOrderByUid(AcceptData acceptData, Integer page, Long uid, Integer state, Integer type, - Integer orderState, String orderNo, String startTime, String endTime, Integer dateType, Integer source) + Integer orderState, String orderNo, String startTime, String endTime, Integer dateType, List<Integer> listSource) throws CommonOrderException,Exception; /** @@ -330,4 +332,48 @@ */ public CommonOrderVO firstValidOrderLastMonthByUidAndType(Long uid, Integer type); + /** + * 棣栦釜鍒嗕韩璁㈠崟 + * @param uid + * @return + */ + public CommonOrder getFirstShareOrderByUid(Long uid); + + /** + * 璁㈠崟涓幏寰楁湁鏁堝閲� + * @param orderNo + * @param sourceType + * @return + */ + public BigDecimal getTotalRewardMoneyByOrderNoAndSourceType(String orderNo, Integer sourceType); + + /** + * 缁熻24灏忔椂鏈夋晥鑷喘璁㈠崟 + * @param uid + * @param minTime + * @return + */ + public long count24HValidOrderByUid(Long uid, Date minTime); + + /** + * 璁㈠崟缁熻鏈夋晥鏁伴噺 + * @param uid + * @param day + * @param source + * @return + */ + public OrderCountVO getOrderCount(Long uid, Integer day, List<Integer> listSource); + + /** + * 鎼滅储璁㈠崟淇℃伅 + * @param page + * @param size + * @param uid + * @param list + * @return + */ + public List<CommonOrderVO> searchOrderByUid(int page, int size, Long uid, List<ESOrder> list) throws Exception; + + public long countSearchOrderByUid(Long uid, List<ESOrder> list); + } -- Gitblit v1.8.0