修改话费

new-dev
袁野 1 year ago
parent 5f83a7d2e5
commit 18acc34c92
  1. 6
      hai-service/pom.xml
  2. 40
      hai-service/src/main/java/com/hai/order/model/combine/CombineOrderModel.java
  3. 3
      hai-service/src/main/java/com/hai/order/service/OrderService.java
  4. 4
      hai-service/src/main/java/com/hai/order/service/impl/OrderServiceImpl.java

@ -351,6 +351,12 @@
<artifactId>wechatpay-apache-httpclient</artifactId> <artifactId>wechatpay-apache-httpclient</artifactId>
<version>0.4.9</version> <version>0.4.9</version>
</dependency> </dependency>
<!-- 华为云sdk-->
<dependency>
<groupId>com.huaweicloud.sdk</groupId>
<artifactId>huaweicloud-sdk-sis</artifactId>
<version>3.1.42</version>
</dependency>
<dependency> <dependency>
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId> <artifactId>spring-test</artifactId>

@ -1,4 +1,44 @@
package com.hai.order.model.combine; package com.hai.order.model.combine;
import com.hai.order.model.CreateOrderModel;
import java.util.List;
public class CombineOrderModel { public class CombineOrderModel {
/**
* 公司id
*/
private Long companyId;
/**
* 用户id
*/
private Long userId;
/**
* 用户名称
*/
private String userName;
/**
* 用户手机号
*/
private String userPhone;
/**
* 用户优惠券关系id
*/
private Long memDiscountId;
/**
* 支付积分金币
*/
private Integer payGold;
/**
* 支付密码
*/
private String payPwd;
List<CreateOrderModel> createOrderModelList;
} }

@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.hai.entity.HighChildOrder; import com.hai.entity.HighChildOrder;
import com.hai.entity.HighOrder; import com.hai.entity.HighOrder;
import com.hai.order.model.CreateOrderModel; import com.hai.order.model.CreateOrderModel;
import com.hai.order.model.combine.CombineOrderModel;
import com.hai.order.type.OrderRefundOpUserType; import com.hai.order.type.OrderRefundOpUserType;
import java.util.List; import java.util.List;
@ -37,7 +38,7 @@ public interface OrderService {
*/ */
HighOrder createOrder(CreateOrderModel createOrderModel) throws Exception; HighOrder createOrder(CreateOrderModel createOrderModel) throws Exception;
JSONObject createOrderCombine(CreateOrderModel createOrderModel) throws Exception; JSONObject createOrderCombine(CombineOrderModel combineOrderModel) throws Exception;
/** /**

@ -21,6 +21,7 @@ import com.hai.goods.service.GoodsSkuService;
import com.hai.order.model.CreateOrderChildModel; import com.hai.order.model.CreateOrderChildModel;
import com.hai.order.model.CreateOrderModel; import com.hai.order.model.CreateOrderModel;
import com.hai.order.model.RefundPriceModel; import com.hai.order.model.RefundPriceModel;
import com.hai.order.model.combine.CombineOrderModel;
import com.hai.order.service.*; import com.hai.order.service.*;
import com.hai.order.topic.OrderTopic; import com.hai.order.topic.OrderTopic;
import com.hai.order.type.*; import com.hai.order.type.*;
@ -131,6 +132,7 @@ public class OrderServiceImpl implements OrderService {
rollbackFor = Exception.class) rollbackFor = Exception.class)
@Cached(cacheType = CacheType.REMOTE, name="order:", key = "#createOrderModel.orderNo", expire = 3600*24*30) // 缓存一个月 @Cached(cacheType = CacheType.REMOTE, name="order:", key = "#createOrderModel.orderNo", expire = 3600*24*30) // 缓存一个月
public HighOrder createOrder(CreateOrderModel createOrderModel) throws Exception { public HighOrder createOrder(CreateOrderModel createOrderModel) throws Exception {
HighDiscountUserRel discountUserRel = null; HighDiscountUserRel discountUserRel = null;
// 使用优惠券 // 使用优惠券
@ -543,7 +545,7 @@ public class OrderServiceImpl implements OrderService {
@Override @Override
public JSONObject createOrderCombine(CreateOrderModel createOrderModel) throws Exception { public JSONObject createOrderCombine(CombineOrderModel combineOrderModel) throws Exception {
return null; return null;
} }

Loading…
Cancel
Save