Commit b7a3bb32 by jianan

出账检核-保单币种、出账金额不能大于应付款金额

parent cc57cb82
...@@ -186,7 +186,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune> ...@@ -186,7 +186,7 @@ public class FortuneServiceImpl extends ServiceImpl<FortuneMapper, Fortune>
if (currentPaymentAmount.compareTo(BigDecimal.ZERO) < 0) { if (currentPaymentAmount.compareTo(BigDecimal.ZERO) < 0) {
throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "出账金额不能小于0"); throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "出账金额不能小于0");
} }
if (currentPaymentAmount.compareTo(expectedFortune.getAmount()) > 0) { if (currentPaymentAmount.compareTo(expectedFortune.getHkdAmount()) > 0) {
throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "出账金额不能大于应付款金额"); throw new BusinessException(ResultCode.PARAM_CHECK_ERROR.getCode(), "出账金额不能大于应付款金额");
} }
if (StringUtils.isBlank(fortuneUpdateRequest.getCurrency())) { if (StringUtils.isBlank(fortuneUpdateRequest.getCurrency())) {
......
...@@ -53,6 +53,12 @@ public class FortuneVO implements Serializable { ...@@ -53,6 +53,12 @@ public class FortuneVO implements Serializable {
private String policyNo; private String policyNo;
/** /**
* 保单币种
*/
@Schema(description = "保单币种")
private String policyCurrency;
/**
* 期交保费 * 期交保费
*/ */
@Schema(description = "期交保费") @Schema(description = "期交保费")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment