Przeglądaj źródła

高级会员月份

lyhzzz 2 lat temu
rodzic
commit
a3272e588c

+ 8 - 0
src/main/java/com/fdkankan/ucenter/httpClient/param/PayGoods.java

@@ -9,6 +9,7 @@ public class PayGoods {
     private String sceneNum;
     private String sceneNum;
     private Integer type;   //0专业会员,1高级会员,2下载,3配件
     private Integer type;   //0专业会员,1高级会员,2下载,3配件
     private Integer goodsId;
     private Integer goodsId;
+    private Integer monthQy = 1;
 
 
     public PayGoods(String name, Integer count,Integer type) {
     public PayGoods(String name, Integer count,Integer type) {
         this.name = name;
         this.name = name;
@@ -16,6 +17,13 @@ public class PayGoods {
         this.type = type;
         this.type = type;
     }
     }
 
 
+    public PayGoods(String name, Integer count,Integer type,Integer monthQy) {
+        this.name = name;
+        this.count = count;
+        this.type = type;
+        this.monthQy = monthQy;
+    }
+
     public PayGoods(String name, Integer count,String sceneNum,Integer type) {
     public PayGoods(String name, Integer count,String sceneNum,Integer type) {
         this.name = name;
         this.name = name;
         this.count = count;
         this.count = count;

+ 1 - 1
src/main/java/com/fdkankan/ucenter/service/impl/IncrementOrderServiceImpl.java

@@ -161,7 +161,7 @@ public class IncrementOrderServiceImpl extends ServiceImpl<IIncrementOrderMapper
         }
         }
 
 
         IncrementOrder incrementOrderEntity = new IncrementOrder();
         IncrementOrder incrementOrderEntity = new IncrementOrder();
-        PayGoods payGoods = new PayGoods(incrementType.getName(),param.getCount(),incrementType.getValidTimeType());
+        PayGoods payGoods = new PayGoods(incrementType.getName(),param.getCount(),incrementType.getValidTimeType(),param.getMonthQy());
         PayOrderVo payOrderVo = payService.downOrder(total, "incrementOrder",user.getUserName(),user.getNickName(), Arrays.asList(payGoods));
         PayOrderVo payOrderVo = payService.downOrder(total, "incrementOrder",user.getUserName(),user.getNickName(), Arrays.asList(payGoods));
         if(payOrderVo == null){
         if(payOrderVo == null){
             throw new BusinessException(OrderConstant.FAILURE_CODE_8005,OrderConstant.FAILURE_MSG_8005);
             throw new BusinessException(OrderConstant.FAILURE_CODE_8005,OrderConstant.FAILURE_MSG_8005);