|
@@ -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);
|
|
|
|