小数
This commit is contained in:
+2
-1
@@ -15,6 +15,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;
|
||||
|
||||
@@ -45,7 +46,7 @@ public class PayPaymentRecord implements Serializable {
|
||||
/**到账金额*/
|
||||
@ApiModelProperty(value = "到账金额")
|
||||
@NotNull(message = "到账金额(元)不能为空!")
|
||||
@Max(value = 999999999,message = "到账金额(元)格式错误")
|
||||
@DecimalMax(value = "9999999999.99",message = "到账金额(元)格式错误")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
private BigDecimal amountReceived;
|
||||
/**来款日期*/
|
||||
|
||||
Reference in New Issue
Block a user