This commit is contained in:
baozhipeng
2021-09-10 16:33:15 +08:00
parent 9780c4f0ed
commit bcded7bca6
12 changed files with 45 additions and 52 deletions
@@ -17,6 +17,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
@@ -118,7 +119,7 @@ public class TbMemberProjectSubitem implements Serializable {
@Excel(name = "应收金额", width = 15)
@ApiModelProperty(value = "应收金额")
@NotNull(message = "应收金额不能为空")
@Max(value = 999999999, message = "应收金额格式错误")
@DecimalMax(value = "9999999999.99", message = "应收金额格式错误")
private BigDecimal amountReceivable;
/**
@@ -126,7 +127,7 @@ public class TbMemberProjectSubitem implements Serializable {
*/
@Excel(name = "实收金额", width = 15)
@ApiModelProperty(value = "实收金额")
@Max(value = 999999999, message = "实收金额格式错误")
@DecimalMax(value = "9999999999.99", message = "实收金额格式错误")
private BigDecimal paidAmount;
/**打包*/
@@ -63,7 +63,7 @@ public class PayMemberProjectSubitemExcel {
@Excel(name = "应收金额", width = 15,orderNum = "4")
@ApiModelProperty(value = "应收金额")
@NotNull(message = "应收金额不能为空")
@Max(value = 999999999, message = "应收金额格式错误")
@DecimalMax(value = "9999999999.99", message = "应收金额格式错误")
private String amountReceivable;