From c23bccf7f39ebae903cc20d255b014d3e80c0221 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 06 十一月 2019 18:50:04 +0800 Subject: [PATCH] 红包H5接口修改 --- fanli/src/main/java/com/yeshi/fanli/service/inter/shop/BanLiShopOrderService.java | 39 ++++++++++++++++++++++++++++++++++++--- 1 files changed, 36 insertions(+), 3 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..429c814 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 @@ -3,6 +3,7 @@ import java.math.BigDecimal; import java.util.List; +import com.yeshi.fanli.entity.shop.BanLiShopGoodsSetsPay; import com.yeshi.fanli.entity.shop.BanLiShopOrder; import com.yeshi.fanli.exception.redpack.RedPackBalanceException; import com.yeshi.fanli.exception.shop.BanLiShopOrderException; @@ -22,6 +23,32 @@ * @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; /** * 璁㈠崟鏀粯锛堢敤绾㈠寘锛� @@ -38,9 +65,8 @@ * @param orderId * @throws BanLiShopOrderException */ - public void payOrderByMoney(Long orderId,BigDecimal money) throws BanLiShopOrderException; - - + public void payOrderByMoney(Long orderId, BigDecimal money) throws BanLiShopOrderException; + public BanLiShopOrder selectByPrimaryKeyForUpdate(Long id); /** @@ -75,5 +101,12 @@ * @param order */ public void udpateSelectiveByPrimaryKey(BanLiShopOrder order); + + /** + * 鏍规嵁璁㈠崟鍙锋煡璇� + * @param orderNo + * @return + */ + public BanLiShopOrder selectByOrderNo(String orderNo); } -- Gitblit v1.8.0