Commit b92681be authored by shangtx's avatar shangtx

fix: 订单价格必须为正

parent cb11fee3
......@@ -6,6 +6,7 @@ import lombok.Data;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.math.BigDecimal;
/**
......@@ -24,8 +25,8 @@ public class SendServiceOrderDTO {
private Long id;
@ApiModelProperty(value = "订单价格,维修价格不能低于1元", required = true)
@Min(value = 0, message = "维修价格不能低于1元")
@NotNull(message = "请输入维修价格")
@Positive(message = "价格必须为正数")
private BigDecimal price;
}
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