From c338aa60df58bee9f4c25afedf94fe6930a119c1 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 29 七月 2020 19:01:56 +0800 Subject: [PATCH] SpringContext中的循环任务优化,添加业务监控 --- fanli/src/main/java/com/yeshi/fanli/service/inter/order/CommonOrderService.java | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 54 insertions(+), 4 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 5b4aa63..8ab015d 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 @@ -6,13 +6,16 @@ import java.util.Map; import com.yeshi.fanli.dto.order.CommonOrderAddResultDTO; +import com.yeshi.fanli.entity.SystemEnum; 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.suning.SuningOrderInfo; import com.yeshi.fanli.entity.taobao.TaoBaoOrder; import com.yeshi.fanli.entity.taobao.TaoBaoWeiQuanOrder; +import com.yeshi.fanli.entity.vipshop.VipShopOrder; import com.yeshi.fanli.exception.order.CommonOrderException; import com.yeshi.fanli.vo.order.CommonOrderVO; import com.yeshi.fanli.vo.order.OrderCountVO; @@ -20,6 +23,7 @@ import net.sf.json.JSONObject; public interface CommonOrderService { + public int insert(CommonOrder record); @@ -173,6 +177,36 @@ * @throws CommonOrderException */ public List<CommonOrderAddResultDTO> addJDOrder(JDOrder jdOrder, Long uid) throws CommonOrderException; + + + /** + * 娣诲姞鍞搧浼氳鍗� + * @Title: addVipShopOrder + * @Description: + * @param order + * @param uid + * @return + * @throws CommonOrderException + * List<CommonOrderAddResultDTO> 杩斿洖绫诲瀷 + * @throws + */ + public List<CommonOrderAddResultDTO> addVipShopOrder(VipShopOrder order, Long uid) throws CommonOrderException; + + + + /** + * 娣诲姞鑻忓畞璁㈠崟 + * @Title: addVipShopOrder + * @Description: + * @param order + * @param uid + * @return + * @throws CommonOrderException + * List<CommonOrderAddResultDTO> 杩斿洖绫诲瀷 + * @throws + */ + public List<CommonOrderAddResultDTO> addSuningOrder(List<SuningOrderInfo> suningOrderList, Long uid) throws CommonOrderException; + /** * 鏍规嵁鐢ㄦ埛ID锛岃鍗曠姸鎬侊紝缁撶畻鏃堕棿缁熻璁㈠崟鏁伴噺 @@ -227,12 +261,12 @@ public List<CommonOrderVO> listQuery(long start, int count, Integer keyType, String key, Integer state, Integer type, Integer orderState, String startTime, String endTime, Integer source, - List<Long> listShopId, List<Long> listGoodsId, Date minTime, BigDecimal money,BigDecimal payment) + List<Long> listShopId, List<Long> listGoodsId, Date minTime, BigDecimal money,BigDecimal payment, SystemEnum system) throws CommonOrderException; public long countQuery(Integer keyType, String key, Integer state, Integer type, Integer orderState, String startTime, String endTime, Integer source, - List<Long> listShopId, List<Long> listGoodsId,Date minTime, BigDecimal money,BigDecimal payment) throws CommonOrderException; + List<Long> listShopId, List<Long> listGoodsId,Date minTime, BigDecimal money,BigDecimal payment, SystemEnum system) throws CommonOrderException; /** * 鏌ヨ璁㈠崟 @@ -411,10 +445,10 @@ */ public List<CommonOrderVO> getOrderList(AcceptData acceptData, Integer page, Long uid, Integer state, Integer type, Integer orderState, String orderNo, String startTime, String endTime, Integer dateType, - List<Integer> listSource, boolean notBackSuVip) throws CommonOrderException, Exception; + List<Integer> listSource) throws CommonOrderException, Exception; long countOrderList(Long uid, Integer state, Integer type, Integer orderState, String orderNo, String startTime, - String endTime, Integer dateType, List<Integer> listSource, boolean notBackSuVip) throws CommonOrderException; + String endTime, Integer dateType, List<Integer> listSource); /** * 缁存潈閲戦璁$畻 @@ -447,4 +481,20 @@ */ public List<CommonOrder> listByOrderNo(String orderNo); + /** + * 鏍规嵁璁㈠崟绫诲瀷+ 璁㈠崟鍙锋煡璇� + * @param uid + * @param orderNO + * @param sourceType + * @return + */ + public List<CommonOrder> getByOrderNoAndSourceType(Long uid, String orderNO, int sourceType); + + /** + * 棣栧崟 + * @param uid + * @return + */ + public CommonOrder getFirstOrder(Long uid); + } -- Gitblit v1.8.0