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/shop/BanLiShopOrderService.java | 212 +++++++++++++++++++++++++++++++++------------------- 1 files changed, 133 insertions(+), 79 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/shop/BanLiShopOrderService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/shop/BanLiShopOrderService.java index c329349..120f164 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/shop/BanLiShopOrderService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/shop/BanLiShopOrderService.java @@ -1,79 +1,133 @@ -package com.yeshi.fanli.service.inter.shop; - -import java.math.BigDecimal; -import java.util.List; - -import com.yeshi.fanli.entity.shop.BanLiShopOrder; -import com.yeshi.fanli.exception.redpack.RedPackBalanceException; -import com.yeshi.fanli.exception.shop.BanLiShopOrderException; - -/** - * 鏉挎牀鍟嗗煄璁㈠崟鏈嶅姟 - * - * @author Administrator - * - */ -public interface BanLiShopOrderService { - - /** - * 娣诲姞璁㈠崟 - * - * @param order - * @throws BanLiShopOrderException - */ - public void addOrder(BanLiShopOrder order) throws BanLiShopOrderException; - - /** - * 璁㈠崟鏀粯锛堢敤绾㈠寘锛� - * - * @param orderId - * @throws BanLiShopOrderException - * @throws RedPackBalanceException - */ - public void payOrderByHongBao(Long orderId) throws BanLiShopOrderException, RedPackBalanceException; - - /** - * 璁㈠崟鏀粯锛堢敤鐜伴噾锛� - * - * @param orderId - * @throws BanLiShopOrderException - */ - public void payOrderByMoney(Long orderId,BigDecimal money) throws BanLiShopOrderException; - - - public BanLiShopOrder selectByPrimaryKeyForUpdate(Long id); - - /** - * 鏍规嵁鐢ㄦ埛ID妫�绱� - * - * @param uid - * @param page - * @param pageSize - * @return - */ - public List<BanLiShopOrder> listByUid(Long uid, int page, int pageSize); - - /** - * 鏍规嵁鐢ㄦ埛ID璁$畻 - * - * @param uid - * @return - */ - public long countByUid(Long uid); - - /** - * 鏍规嵁涓婚敭妫�绱� - * - * @param id - * @return - */ - public BanLiShopOrder selectByPrimaryKey(Long id); - - /** - * 鏍规嵁涓婚敭鏇存柊 - * - * @param order - */ - public void udpateSelectiveByPrimaryKey(BanLiShopOrder order); - -} +package com.yeshi.fanli.service.inter.shop; + +import java.math.BigDecimal; +import java.util.List; + +import com.yeshi.fanli.entity.shop.BanLiShopOrder; +import com.yeshi.fanli.exception.redpack.RedPackBalanceException; +import com.yeshi.fanli.exception.shop.BanLiShopOrderException; + +/** + * 鏉挎牀鍟嗗煄璁㈠崟鏈嶅姟 + * + * @author Administrator + * + */ +public interface BanLiShopOrderService { + + /** + * 娣诲姞璁㈠崟 + * + * @param order + * @throws BanLiShopOrderException + */ + public void addOrder(BanLiShopOrder order) throws BanLiShopOrderException; + + /** + * 鏋勯�犺鍗� + * + * @param pay + * @param uid + * @return + * @throws BanLiShopOrderException + */ + public BanLiShopOrder createOrder(Long goodsSetPayId, String chargeAccount, Long uid) + throws BanLiShopOrderException;; + + /** + * 浣胯鍗曞け鏁� + * + * @param id + */ + public void invalidOrderByOrderId(Long id, String desc); + + /** + * 鎷掔粷璁㈠崟 + * + * @param id + * @param msg + * @throws BanLiShopOrderException + */ + public void rejectOrder(Long id, String msg) throws BanLiShopOrderException; + + /** + * 璁㈠崟鏀粯锛堢敤绾㈠寘锛� + * + * @param orderId + * @throws BanLiShopOrderException + * @throws RedPackBalanceException + */ + public void payOrderByHongBao(Long orderId) throws BanLiShopOrderException, RedPackBalanceException; + + /** + * 璁㈠崟鏀粯锛堢敤鐜伴噾锛� + * + * @param orderId + * @throws BanLiShopOrderException + */ + public void payOrderByMoney(Long orderId, BigDecimal money) throws BanLiShopOrderException; + + public BanLiShopOrder selectByPrimaryKeyForUpdate(Long id); + + /** + * 鏍规嵁鐢ㄦ埛ID妫�绱� + * + * @param uid + * @param page + * @param pageSize + * @return + */ + public List<BanLiShopOrder> listByUid(Long uid, int page, int pageSize); + + /** + * 鏍规嵁鐢ㄦ埛ID璁$畻 + * + * @param uid + * @return + */ + public long countByUid(Long uid); + + /** + * 鏍规嵁鐢ㄦ埛ID,鐘舵�佹煡璇� + * + * @param uid + * @param stateList + * @param page + * @param pageSize + * @return + */ + public List<BanLiShopOrder> listByUidAndState(Long uid, List<Integer> stateList, int page, int pageSize); + + /** + * 鏍规嵁鐢ㄦ埛ID,鐘舵�佹煡璇� + * + * @param uid + * @param stateList + * @return + */ + public long countByUidAndState(Long uid, List<Integer> stateList); + + /** + * 鏍规嵁涓婚敭妫�绱� + * + * @param id + * @return + */ + public BanLiShopOrder selectByPrimaryKey(Long id); + + /** + * 鏍规嵁涓婚敭鏇存柊 + * + * @param order + */ + public void udpateSelectiveByPrimaryKey(BanLiShopOrder order); + + /** + * 鏍规嵁璁㈠崟鍙锋煡璇� + * + * @param orderNo + * @return + */ + public BanLiShopOrder selectByOrderNo(String orderNo); + +} -- Gitblit v1.8.0