From 623afb6fbb8ce6adebf237e7b670d9f4f339184d Mon Sep 17 00:00:00 2001
From: fwq <582742538@qq.com>
Date: 星期三, 01 五月 2024 00:11:14 +0800
Subject: [PATCH] Merge branch 'master-fwq-积分抵扣现金' into master-prod-new

---
 phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundNoteDto.java                |    2 
 phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java                      |    2 
 phis-feign/src/main/java/com/hz/his/vo/order/refund/RefundMethodVo.java              |    4 +
 phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardItemVo.java   |   10 ++
 phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java                  |    4 +
 phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardEquityVo.java |    8 ++
 phis-feign/src/main/java/com/hz/his/dto/marketing/PartRefundPayDto.java              |    2 
 phis-feign/src/main/java/com/hz/his/vo/project/SkuDeductionVo.java                   |   56 ++++++++++++++
 phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java          |    5 +
 phis-feign/src/main/java/com/hz/his/dto/project/ProjectDto.java                      |    7 +
 phis-feign/src/main/java/com/hz/his/vo/project/IntegralCashVo.java                   |   33 ++++++++
 phis-feign/src/main/java/com/hz/his/dto/order/OrderItemRefundDto.java                |   14 +++
 phis-feign/src/main/java/com/hz/his/dto/order/OrderPayMethodDto.java                 |   20 ++++
 phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardVo.java       |   14 +++
 phis-feign/src/main/java/com/hz/his/dto/order/OrderItemSourceRefundDto.java          |   10 ++
 phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundDto.java                    |   10 ++
 16 files changed, 198 insertions(+), 3 deletions(-)

diff --git a/phis-feign/src/main/java/com/hz/his/dto/marketing/PartRefundPayDto.java b/phis-feign/src/main/java/com/hz/his/dto/marketing/PartRefundPayDto.java
index dac1e47..3e7e4d3 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/marketing/PartRefundPayDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/marketing/PartRefundPayDto.java
@@ -17,4 +17,6 @@
     private String payMethodName;
     /**鏀粯鏂瑰紡鐨勯��娆鹃噾棰�*/
     private BigDecimal refundMoney;
+    /**鏀粯鏂瑰紡鐨勯��娆炬姷鎵e��*/
+    private BigDecimal refundDeductionTotal;
 }
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java
index 28f4219..9ed4794 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemPHisDto.java
@@ -24,6 +24,10 @@
     private BigDecimal totalPoints;
     /**闈炲繀濉� 鎶樻墸(鍗曚綅:鐧惧垎姣�) 蹇呭~锛岄粯璁�100,涓嶄紶鍚庡彴榛樿100*/
     private BigDecimal discount;
+    /**鎶垫墸鐜伴噾閲戦*/
+    private BigDecimal cash = BigDecimal.ZERO;
+    /**鎶垫墸鐜伴噾閲戦闇�瑕佹敮浠樼殑绉垎*/
+    private BigDecimal integralCash = BigDecimal.ZERO;
     /**蹇呭~ 璐拱鏁伴噺 蹇呭~锛岄粯璁�0*/
     private Integer buyNum;
     /**蹇呭~ 椤圭洰id/鍟嗗搧id/濂楅鏍囪瘑/鍏朵粬鏍囪瘑锛堝叕鐢ㄦ爣璇嗭級 蹇呭~*/
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemRefundDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemRefundDto.java
index 0fc384b..d74177a 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemRefundDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemRefundDto.java
@@ -23,6 +23,9 @@
     private Integer refundNum;
     /** 瀹為��閲戦 锛堝鎴峰~鍐欙級*/
     private BigDecimal refundMoney;
+    /** 瀹為��鎶垫墸鍊�(绉垎锛屽墠绔牴鎹~鍐欑殑瀹為��閲戦(鎶垫墸閲戦)濉啓鎹㈢畻) */
+    private BigDecimal refundDeductTotal;
+
     /** 閫�娆惧師鍥狅紙鍛樺伐锛� */
     private String remarks;
     /** 閫�娆惧師鍥狅紙鐢ㄦ埛锛� */
@@ -38,10 +41,21 @@
     private BigDecimal approveRefundTotal = BigDecimal.ZERO;
     /** 鍙��鎬荤Н鍒嗭紙鐢ㄤ簬绯荤粺杩斿洖鍙傛暟璁$畻锛�*/
     private BigDecimal approveRefundIntegral = BigDecimal.ZERO;
+    /** 鍙��鎬绘姷鎵g幇閲戦噾棰濓紙鐢ㄤ簬绯荤粺杩斿洖鍙傛暟璁$畻锛�*/
+    private BigDecimal approveRefundDeductTotal = BigDecimal.ZERO;
+    /** 鍙��鎬绘姷鎵gН鍒嗭紙鐢ㄤ簬绯荤粺杩斿洖鍙傛暟璁$畻锛�*/
+    private BigDecimal approveRefundDeductIntegral = BigDecimal.ZERO;
+
+
+
     /**鍒嗛厤鍙��閲戦*/
     private List<OrderPayMethodDto> refundPayMethodList;
 
     /** 骞虫憡绉垎锛堢敤浜庣郴缁熻繑鍥炲弬鏁拌绠楋級*/
     private BigDecimal averageIntegral = BigDecimal.ZERO;
+    /** 骞虫憡鐨勬姷鎵g幇閲戯紙鐢ㄤ簬绯荤粺杩斿洖鍙傛暟璁$畻锛�*/
+    private BigDecimal averageDeductAmount = BigDecimal.ZERO;
+    /** 骞虫憡鐨勬姷鎵gН鍒嗭紙鐢ㄤ簬绯荤粺杩斿洖鍙傛暟璁$畻锛�*/
+    private BigDecimal averageDeductIntegral = BigDecimal.ZERO;
 
 }
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemSourceRefundDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemSourceRefundDto.java
index ed46ddd..0a6dd75 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemSourceRefundDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderItemSourceRefundDto.java
@@ -35,10 +35,20 @@
     private BigDecimal approveRefundTotal = BigDecimal.ZERO;
     /** 鍙��鎬荤Н鍒嗭紙鐢ㄤ簬绯荤粺杩斿洖鍙傛暟璁$畻锛�*/
     private BigDecimal approveRefundIntegral = BigDecimal.ZERO;
+    /** 鍙��鎬绘姷鎵g幇閲戦噾棰濓紙鐢ㄤ簬绯荤粺杩斿洖鍙傛暟璁$畻锛�*/
+    private BigDecimal approveRefundDeductTotal = BigDecimal.ZERO;
+    /** 鍙��鎬绘姷鎵gН鍒嗭紙鐢ㄤ簬绯荤粺杩斿洖鍙傛暟璁$畻锛�*/
+    private BigDecimal approveRefundDeductIntegral = BigDecimal.ZERO;
+
+
     /**鍒嗛厤鍙��閲戦*/
     private List<OrderPayMethodDto> refundPayMethodList;
 
     /** 骞虫憡绉垎锛堢敤浜庣郴缁熻繑鍥炲弬鏁拌绠楋級*/
     private BigDecimal averageIntegral = BigDecimal.ZERO;
+    /** 骞虫憡鐨勬姷鎵g幇閲戯紙鐢ㄤ簬绯荤粺杩斿洖鍙傛暟璁$畻锛�*/
+    private BigDecimal averageDeductAmount = BigDecimal.ZERO;
+    /** 骞虫憡鐨勬姷鎵gН鍒嗭紙鐢ㄤ簬绯荤粺杩斿洖鍙傛暟璁$畻锛�*/
+    private BigDecimal averageDeductIntegral = BigDecimal.ZERO;
 
 }
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderPayMethodDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderPayMethodDto.java
index a03f7ad..7dbb7a3 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/order/OrderPayMethodDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderPayMethodDto.java
@@ -22,12 +22,19 @@
     /**鏄惁鍒掓墸璁$畻锛�0鍚�1鏄�*/
     private Integer isExecute;
 
+    /** 鎶垫墸绫诲瀷 */
+    private String deductionType;
+    /** 鎶垫墸閫�娆炬�诲��(绉垎) */
+    private BigDecimal refundDeductionTotal;
+
     /** 杞崲鏂瑰紡缂栫爜 锛堝疄闄呴��娆炬柟寮忕紪鐮侊級 */
     private String refundNumberNo;
     /** 杞崲鏂瑰紡鍚嶇О 锛堝疄闄呴��娆炬柟寮忕紪鐮侊級*/
     private String refundNumberName;
     /** 杞崲瀹為��閲戦 锛堝疄闄呴��娆鹃噾棰濓級*/
     private BigDecimal money;
+    /** 杞崲瀹為��鎶垫墸鍊� 锛堝疄闄呴��娆剧Н鍒嗭級*/
+    private BigDecimal deductionTotal;
 
     /** 澶囨敞 */
     private String remarks;
@@ -36,11 +43,22 @@
     public OrderPayMethodDto() {
     }
 
-    public OrderPayMethodDto(String payMethodNo, String payMethodName, BigDecimal payTotal,Integer isMoneyPay,Integer isExecute) {
+//    public OrderPayMethodDto(String payMethodNo, String payMethodName, BigDecimal payTotal,Integer isMoneyPay,Integer isExecute) {
+//        this.payMethodNo = payMethodNo;
+//        this.payMethodName = payMethodName;
+//        this.payTotal = payTotal;
+//        this.isMoneyPay = isMoneyPay;
+//        this.isExecute = isExecute;
+//    }
+
+    public OrderPayMethodDto(String payMethodNo, String payMethodName, BigDecimal payTotal
+            , Integer isMoneyPay, Integer isExecute, String deductionType, BigDecimal refundDeductionTotal) {
         this.payMethodNo = payMethodNo;
         this.payMethodName = payMethodName;
         this.payTotal = payTotal;
         this.isMoneyPay = isMoneyPay;
         this.isExecute = isExecute;
+        this.deductionType = deductionType;
+        this.refundDeductionTotal = refundDeductionTotal;
     }
 }
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundDto.java
index 5d358a5..196d775 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundDto.java
@@ -48,6 +48,16 @@
     private BigDecimal refundTotal;
     /** 閫夋嫨閫�娆炬�婚噾棰濓紙棰濆鏁版嵁锛�,parameterVerification鏂规硶鏍¢獙鐨勬椂鍊欒祴鍊�  */
     private BigDecimal refundIntegral;
+
+    /** 鍙��娆捐绉垎鎶垫墸鐨勭幇閲戞暟閲�,parameterVerification鏂规硶鏍¢獙鐨勬椂鍊欒祴鍊�  */
+    private BigDecimal totalDeductAmount;
+    /** 鍙��娆炬姷鎵g幇閲戠殑绉垎鏁伴噺,parameterVerification鏂规硶鏍¢獙鐨勬椂鍊欒祴鍊�  */
+    private BigDecimal totalDeductIntegral;
+    /** 濉啓鐨勯��娆捐绉垎鎶垫墸鐨勭幇閲戞暟閲�,parameterVerification鏂规硶鏍¢獙鐨勬椂鍊欒祴鍊�  */
+    private BigDecimal refundDeductAmount;
+    /** 濉啓鐨勯��娆炬姷鎵g幇閲戠殑绉垎鏁伴噺,parameterVerification鏂规硶鏍¢獙鐨勬椂鍊欒祴鍊�  */
+    private BigDecimal refundDeductIntegral;
+
     /** 鍙��娆炬柟寮忛泦鍚� */
     private List<OrderPayMethodDto> payMethodList;
     /** 鍙��娆句紭鎯犲埜淇℃伅闆嗗悎 */
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundNoteDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundNoteDto.java
index d34e59f..db7eaf3 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundNoteDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/OrderRefundNoteDto.java
@@ -14,6 +14,8 @@
 
     //鏀粯鎬婚噾棰�  蹇呭~
     private BigDecimal paymentTotal;
+    //鏀粯鎶垫墸閲戦  蹇呭~
+    private BigDecimal paymentDeductionTotal;
     // 鏀粯鏂瑰紡缂栧彿 蹇呭~
     private String paymentNumberNo;
     //鏀粯鏂瑰紡鍚嶇О 蹇呭~
diff --git a/phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java b/phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java
index 57030f2..99fbe70 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/order/PayAmountDto.java
@@ -17,6 +17,8 @@
     private BigDecimal amount;
     /**蹇呭~ 鏀粯鏂瑰紡*/
     private String method;
+    /**蹇呭~ 鎶垫墸瀹為檯鏀粯鐨勯噾棰� 濡傛灉鏄Н鍒嗘姷鎵g幇閲戣繖閲屽瓨鐨勬槸瑕佹敮浠樼殑绉垎*/
+    private BigDecimal deductionAmount = BigDecimal.ZERO;
 
     /**闈炲繀濉� 鍟嗗搧/椤圭洰id/缁勫悎椤规爣璇�(鍗¢」鏀粯鏃跺繀浼犵粍鍚堥」鏍囪瘑)*/
     private String commonId;
diff --git a/phis-feign/src/main/java/com/hz/his/dto/project/ProjectDto.java b/phis-feign/src/main/java/com/hz/his/dto/project/ProjectDto.java
index 12dc6c9..eee977b 100644
--- a/phis-feign/src/main/java/com/hz/his/dto/project/ProjectDto.java
+++ b/phis-feign/src/main/java/com/hz/his/dto/project/ProjectDto.java
@@ -3,6 +3,8 @@
 import com.hz.his.dto.PageDto;
 import lombok.Data;
 
+import java.util.List;
+
 /**
  * @author fwq
  * 椤圭洰鎵╁睍
@@ -11,7 +13,10 @@
 public class ProjectDto extends PageDto {
     /**鏇存柊鏃堕棿*/
     private String editTime;
-
+    /**sku鏍囪瘑*/
+    private List<String> skuIdList;
+    /**骞冲彴appId*/
+    private String appId;
     /**浠锋牸鏌ヨ 鏈�灏忎环鏍� 鏈�澶т环鏍�*/
     private String minPrice;
     private String maxPrice;
diff --git a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java
index c640347..fab86ce 100644
--- a/phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java
+++ b/phis-feign/src/main/java/com/hz/his/feign/service/phis/SProjectService.java
@@ -106,6 +106,9 @@
      * @return
      */
     @PostMapping(value = "/project/list/by/type")
-    Result  getProjectByTypeId(@RequestBody ProjectDto projectDto);
+    Result getProjectByTypeId(@RequestBody ProjectDto projectDto);
 
+    /**鏌ヨ椤圭洰绉垎鎶垫墸鐜伴噾鐨勬瘮渚�*/
+    @PostMapping(value = "/project/integral/cash/rate")
+    Result getIntegralCashRate(@RequestBody ProjectDto projectDto);
 }
\ No newline at end of file
diff --git a/phis-feign/src/main/java/com/hz/his/vo/order/refund/RefundMethodVo.java b/phis-feign/src/main/java/com/hz/his/vo/order/refund/RefundMethodVo.java
index 053da40..7bf4128 100644
--- a/phis-feign/src/main/java/com/hz/his/vo/order/refund/RefundMethodVo.java
+++ b/phis-feign/src/main/java/com/hz/his/vo/order/refund/RefundMethodVo.java
@@ -19,6 +19,8 @@
     private String payMethodName;
     /** 鍙��鏀粯閲戦 */
     private BigDecimal payTotal;
+    /** 鍙��鏀粯閲戦 -鎶垫墸閲戦*/
+    private BigDecimal payDeductionTotal;
     /**鏄惁鐜伴噾鏀粯 0鍚�1鏄�*/
     private Integer isMoneyPay;
     /**鏄惁鍒掓墸璁$畻锛�0鍚�1鏄�*/
@@ -32,6 +34,8 @@
     private String refundMethodName;
     /** 杞崲瀹為��閲戦 锛堝疄闄呴��娆鹃噾棰濓級*/
     private BigDecimal refundTotal;
+    /** 杞崲瀹為��閲戦 锛堝疄闄呴��娆鹃噾棰�-鎶垫墸閲戦锛�*/
+    private BigDecimal refundDeductionTotal;
     /**杞崲鏄惁鐜伴噾鏀粯 0鍚�1鏄�*/
     private Integer isMoneyPayRefund;
     /**杞崲鏄惁鍒掓墸璁$畻锛�0鍚�1鏄�*/
diff --git a/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardEquityVo.java b/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardEquityVo.java
index bcdaa7e..2cbadab 100644
--- a/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardEquityVo.java
+++ b/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardEquityVo.java
@@ -23,9 +23,17 @@
     private BigDecimal approveRefundTotal = BigDecimal.ZERO;
     /** 鍙��鎬荤Н鍒�*/
     private BigDecimal approveRefundIntegral = BigDecimal.ZERO;
+    /** 鍙�� 鎶垫墸鐜伴噾鐨勭Н鍒�*/
+    private BigDecimal approveIntegralDeduction = BigDecimal.ZERO;
+    /** 鍙��绉垎鎶垫墸鐨勭幇閲�*/
+    private BigDecimal approveIntegralCash = BigDecimal.ZERO;
     /**鍒嗛厤閲戦*/
     private BigDecimal occupyRefundTotal = BigDecimal.ZERO;
     /**鍒嗛厤绉垎*/
     private BigDecimal occupyRefundIntegral = BigDecimal.ZERO;
+    /**鍒嗛厤鎶垫墸鐜伴噾鐨勭Н鍒�*/
+    private BigDecimal occupyRefundIntegralDeduction = BigDecimal.ZERO;
+    /**鍒嗛厤绉垎鎶垫墸鐨勭幇閲�*/
+    private BigDecimal occupyRefundIntegralCash = BigDecimal.ZERO;
 
 }
diff --git a/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardItemVo.java b/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardItemVo.java
index c079fca..4d85381 100644
--- a/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardItemVo.java
+++ b/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardItemVo.java
@@ -24,10 +24,20 @@
     private BigDecimal approveRefundTotal = BigDecimal.ZERO;
     /** 鍙��鎬荤Н鍒�*/
     private BigDecimal approveRefundIntegral = BigDecimal.ZERO;
+    /** 鍙��鎬绘姷鎵g幇閲戠殑绉垎*/
+    private BigDecimal approveIntegralDeduction = BigDecimal.ZERO;
+    /** 鍙��鎬荤Н鍒嗘姷鎵g殑鐜伴噾*/
+    private BigDecimal approveIntegralCash = BigDecimal.ZERO;
+
+
     /**鍒嗛厤閲戦*/
     private BigDecimal occupyRefundTotal = BigDecimal.ZERO;
     /**鍒嗛厤绉垎*/
     private BigDecimal occupyRefundIntegral = BigDecimal.ZERO;
 
+    /**鍒嗛厤鎶垫墸鐜伴噾鐨勭Н鍒�*/
+    private BigDecimal occupyIntegralDeduction = BigDecimal.ZERO;
+    /**鍒嗛厤绉垎鎶垫墸鐨勯噾棰�*/
+    private BigDecimal occupyIntegralCash = BigDecimal.ZERO;
 
 }
diff --git a/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardVo.java b/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardVo.java
index 5a96e24..28eb8ed 100644
--- a/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardVo.java
+++ b/phis-feign/src/main/java/com/hz/his/vo/order/refund/card/RefundUserCardVo.java
@@ -47,14 +47,28 @@
     private BigDecimal approveRefundTotal = BigDecimal.ZERO;
     /**绯荤粺璁$畻璧嬪��-鍙��鎬荤Н鍒�*/
     private BigDecimal approveRefundIntegral = BigDecimal.ZERO;
+    /**绯荤粺璁$畻璧嬪��-鍙��鎶垫墸鐜伴噾鐨勭Н鍒�*/
+    private BigDecimal approveIntegralDeduction = BigDecimal.ZERO;
+    /**绯荤粺璁$畻璧嬪��-鍙��绉垎鎶垫墸鐨勭幇閲�*/
+    private BigDecimal approveIntegralCash = BigDecimal.ZERO;
+
     /**绯荤粺璁$畻璧嬪��-鍒嗛厤閲戦*/
     private BigDecimal occupyRefundTotal = BigDecimal.ZERO;
     /**绯荤粺璁$畻璧嬪��-鍒嗛厤绉垎*/
     private BigDecimal occupyRefundIntegral = BigDecimal.ZERO;
+    /**绯荤粺璁$畻璧嬪��-鍒嗛厤鎶垫墸鐜伴噾鐨勭Н鍒�*/
+    private BigDecimal occupyRefundIntegralDeduction = BigDecimal.ZERO;
+    /**绯荤粺璁$畻璧嬪��-鍒嗛厤绉垎鎶垫墸鐨勭幇閲�*/
+    private BigDecimal occupyRefundIntegralCash = BigDecimal.ZERO;
+
     /**绯荤粺璁$畻璧嬪��-閫�娆鹃噾棰�*/
     private BigDecimal refundTotal = BigDecimal.ZERO;
     /**绯荤粺璁$畻璧嬪��-閫�娆剧Н鍒�*/
     private BigDecimal refundIntegral = BigDecimal.ZERO;
+    /**绯荤粺璁$畻璧嬪��-閫�娆炬姷鎵g殑鐜伴噾鐨勭Н鍒�*/
+    private BigDecimal refundIntegralDeduction = BigDecimal.ZERO;
+    /**绯荤粺璁$畻璧嬪��-閫�娆剧Н鍒嗘姷鎵g殑鐜伴噾*/
+    private BigDecimal refundIntegralCash = BigDecimal.ZERO;
 
     /**鎿嶄綔绫诲瀷-绯荤粺*/
     public static final String OP_TYPE_SYSTEM = "system";
diff --git a/phis-feign/src/main/java/com/hz/his/vo/project/IntegralCashVo.java b/phis-feign/src/main/java/com/hz/his/vo/project/IntegralCashVo.java
new file mode 100644
index 0000000..1f0e640
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/vo/project/IntegralCashVo.java
@@ -0,0 +1,33 @@
+package com.hz.his.vo.project;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.util.Map;
+
+/**
+ * 绉垎鎶垫墸鐜伴噾閰嶇疆
+ */
+@Data
+public class IntegralCashVo {
+    /**绉垎鎶垫墸鐜伴噾鏀粯鏂瑰紡缂栧彿*/
+    private String payNo;
+    /**绉垎*/
+    private BigDecimal integral = BigDecimal.ZERO;
+    /**鐜伴噾*/
+    private BigDecimal cash = BigDecimal.ZERO;
+    /**榛樿姣斾緥*/
+    private BigDecimal rate = BigDecimal.ZERO;
+    /**鏄惁鍚敤*/
+    private Integer isUp;
+    /**鏄惁鍏ㄥ钩鍙板彲鐢�,濡傛灉杩欎釜鍊间负0,鍒欏彧鏈夐檺鍒跺钩鍙拌〃limit_common鐨勫钩鍙拌兘浣跨敤銆愮Н鍒嗘姷鎵g幇閲戙�戞敮浠樻柟寮�*/
+    private Integer isAllPlatform;
+    /**鏄惁璁剧疆鍏ㄩ儴椤圭洰鎶垫墸,濡傛灉杩欎釜鍊间负0,榛樿鐨勬姷鎵f瘮渚嬪氨鏄�0,濡傛灉鍊间负1,鍒欎娇鐢ㄨ缃殑榛樿姣斾緥*/
+    private Integer isNoLimit;
+    /**鏄惁鏈夐檺鍒堕」鐩�,濡傛灉杩欎釜鍊间负1,鍒欓檺鍒堕」鐩〃integral_cash_project鐨勯」鐩娇鐢ㄥ悇鑷缃殑姣斾緥*/
+    private Integer isHaveProjectLimit;
+
+    /**姣忎釜SKU鐨勬渶澶ф姷鎵f瘮渚�*/
+    private Map<String,BigDecimal> skuMaxRateMap;
+
+}
diff --git a/phis-feign/src/main/java/com/hz/his/vo/project/SkuDeductionVo.java b/phis-feign/src/main/java/com/hz/his/vo/project/SkuDeductionVo.java
new file mode 100644
index 0000000..643f0a1
--- /dev/null
+++ b/phis-feign/src/main/java/com/hz/his/vo/project/SkuDeductionVo.java
@@ -0,0 +1,56 @@
+package com.hz.his.vo.project;
+
+import lombok.Data;
+
+import java.math.BigDecimal;
+import java.math.RoundingMode;
+
+/**
+ * SKU鎶垫墸鏁版嵁
+ */
+@Data
+public class SkuDeductionVo {
+    /**sku鏍囪瘑*/
+    private String skuId;
+    /**sku鏈�澶у彲鎶垫墸鐜伴噾閲戦*/
+    private BigDecimal maxCash = BigDecimal.ZERO;
+    /**sku鎶垫墸鏈�澶х幇閲戦噾棰濋渶瑕佹敮浠樼殑绉垎*/
+    private BigDecimal maxIntegralCash = BigDecimal.ZERO;
+
+    /**鎬诲崟璐拱椤圭洰鏁伴噺*/
+    private Integer totalBuyNum = 0;
+    /**椤圭洰鏁伴噺鍗犳�诲崟姣�*/
+    private BigDecimal skuNumRate = BigDecimal.ZERO;
+    /**瀛愬崟璐拱鏁伴噺*/
+    private Integer buyNum = 0;
+    /**瀛愬崟鐜颁环x鏁伴噺绠楀嚭鐨勬�婚噾棰�*/
+    private BigDecimal skuPrice = BigDecimal.ZERO;
+    /**瀛愬崟鍙姷鎵f渶澶х幇閲戦噾棰�*/
+    private BigDecimal skuMaxCash = BigDecimal.ZERO;
+
+    /**鍓╀綑鍙垎閰�*/
+    private BigDecimal cash = BigDecimal.ZERO;
+
+    /**
+     * 璁$畻鎶垫墸閲戦
+     * */
+    public void handlerMoney() {
+        //璁$畻瀛愬崟鏈�澶у彲鎶垫墸
+        this.skuMaxCash = this.maxCash.multiply(new BigDecimal(this.buyNum));
+        //榛樿璧嬪�糲ash
+        handlerCash(BigDecimal.ZERO);
+    }
+
+    /**璁$畻鏁伴噺*/
+    public void handlerNum(Integer totalBuyNum) {
+        this.totalBuyNum = totalBuyNum;
+        if (totalBuyNum != 0){
+            this.skuNumRate = new BigDecimal(this.buyNum).divide(new BigDecimal(this.totalBuyNum),2,RoundingMode.HALF_UP);
+        }
+    }
+
+    /**璁$畻鏁伴噺*/
+    public void handlerCash(BigDecimal totalMoney) {
+        this.cash = this.skuMaxCash.subtract(totalMoney).setScale(2,RoundingMode.HALF_UP);
+    }
+}

--
Gitblit v1.8.0