|
@@ -240,6 +240,9 @@ public class WorkerWarrantyLogic {
|
|
|
workerWarranty.setRefundAmount(workerWarrantyListUp.get(0).getRefundAmount().add(workerWarranty.getRefundAmount()));
|
|
|
|
|
|
workerWarranty.setWaitAmount(workerWarranty.getShouldAmount().subtract(workerWarranty.getPayableAmount() == null?BigDecimal.ZERO:workerWarranty.getPayableAmount()));
|
|
|
+
|
|
|
+ if (workerWarranty.getWaitAmount().doubleValue() < 0)
|
|
|
+ throw new RemoteServiceException("第"+rowIndex+"行"+"缴纳金额超过应缴纳金额");
|
|
|
workerWarranties.add(workerWarranty);
|
|
|
|
|
|
}
|