You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.8 KiB
Java
37 lines
1.8 KiB
Java
package com.yau.digitalrmb.institutionidentity.application;
|
|
|
|
import com.yau.digitalrmb.institutionidentity.domain.CurrencyGenerationVerification;
|
|
import io.swagger.annotations.ApiModel;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
@ApiModel(description = "货币生成的步骤三额度验证结果")
|
|
@Schema(description = "货币生成的步骤三额度验证结果")
|
|
public class CurrencyQuotaVerificationResult {
|
|
@Schema(description = "整个系统一次实训可申请的总额度", example = "50000.00")
|
|
private final BigDecimal totalQuota;
|
|
@Schema(description = "整个系统全部未逻辑删除申请累计占用额度,包含本次申请", example = "43589.85")
|
|
private final BigDecimal usedQuota;
|
|
@Schema(description = "本次申请计入后整个系统剩余额度,即总额度减已用额度", example = "6410.15")
|
|
private final BigDecimal remainingQuota;
|
|
@Schema(description = "当前货币生成的步骤二请求的本次申请金额", example = "1589.85")
|
|
private final BigDecimal currentAmount;
|
|
@Schema(description = "剩余额度是否满足本次申请", example = "true")
|
|
private final Boolean quotaSufficient;
|
|
|
|
public CurrencyQuotaVerificationResult(CurrencyGenerationVerification value) {
|
|
totalQuota = value.getTotalQuota();
|
|
usedQuota = value.getUsedQuota();
|
|
remainingQuota = value.getRemainingQuota();
|
|
currentAmount = value.getAmount();
|
|
quotaSufficient = value.getQuotaSufficient();
|
|
}
|
|
|
|
public BigDecimal getTotalQuota() { return totalQuota; }
|
|
public BigDecimal getUsedQuota() { return usedQuota; }
|
|
public BigDecimal getRemainingQuota() { return remainingQuota; }
|
|
public BigDecimal getCurrentAmount() { return currentAmount; }
|
|
public Boolean getQuotaSufficient() { return quotaSufficient; }
|
|
}
|