‘linchangsheng’ il y a 5 mois
Parent
commit
d61d3856b0

+ 1 - 1
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/user/UserLogic.java

@@ -1628,7 +1628,7 @@ public class UserLogic {
 
         for (WorkerWarrantyRefund workerWarrantyRefund : workerWarrantyRefunds) {
             WorkerWarrantyPrice workerWarrantyPrice = new WorkerWarrantyPrice();
-            workerWarrantyPrice.setPrice(workerWarrantyRefund.getRefundAmout());
+            workerWarrantyPrice.setPrice(workerWarrantyRefund.getRefundAmount());
             workerWarrantyPrice.setTime(workerWarrantyRefund.getRefundTime());
             workerWarrantyPrice.setType("A");
             workerWarrantyPrices.add(workerWarrantyPrice);

+ 1 - 1
mall-server-api/src/main/java/com/gree/mall/manager/bean/worker/WorkerWarrantyVO.java

@@ -62,7 +62,7 @@ public class WorkerWarrantyVO   {
     @ApiModelProperty(value = "已缴纳期数")
     private Integer payableNum;
 
-    @ApiModelProperty(value = "退款金额")
+    @ApiModelProperty(value = "退款金额")
     private BigDecimal refundAmount;
 
     @ApiModelProperty(value = "创建时间")

+ 3 - 3
mall-server-api/src/main/java/com/gree/mall/manager/logic/worker/WorkerWarrantyLogic.java

@@ -88,11 +88,11 @@ public class WorkerWarrantyLogic {
     public void refund(WorkerWarrantyRefund workerWarrantyRefund) {
         WorkerWarranty workerWarranty = workerWarrantyService.getById(workerWarrantyRefund.getWarrantyId());
 
-        if (workerWarranty.getRefundAmount().add(workerWarrantyRefund.getRefundAmout()).doubleValue() > workerWarranty.getPayableAmount().doubleValue()) {
+        if (workerWarranty.getRefundAmount().add(workerWarrantyRefund.getRefundAmount()).doubleValue() > workerWarranty.getPayableAmount().doubleValue()) {
             throw new RemoteServiceException("总退金额大于了缴纳金额");
         }
 
-        workerWarranty.setRefundAmount(workerWarranty.getRefundAmount().add(workerWarrantyRefund.getRefundAmout()));
+        workerWarranty.setRefundAmount(workerWarranty.getRefundAmount().add(workerWarrantyRefund.getRefundAmount()));
         workerWarranty.updateById();
         workerWarrantyRefund.insert();
     }
@@ -209,7 +209,7 @@ public class WorkerWarrantyLogic {
 
             WorkerWarrantyRefund workerWarrantyRefund = new WorkerWarrantyRefund();
             workerWarrantyRefund.setWarrantyId(workerWarranty.getWarrantyId());
-            workerWarrantyRefund.setRefundAmout(workerWarranty.getRefundAmount());
+            workerWarrantyRefund.getRefundAmount(workerWarranty.getRefundAmount());
             workerWarrantyRefund.setRefundTime(workerWarranty.getRefundTime());
             workerWarrantyRefunds.add(workerWarrantyRefund);