master:销售/出库,优惠后金额必须大于0调优;

pull/1121/head
liujiang 2025-10-06 23:36:59 +08:00
parent efac4e940e
commit 29e7e6e2fb
4 changed files with 3 additions and 8 deletions

View File

@ -77,8 +77,6 @@ public class StoreSaleResVO {
private Integer quantity;
@ApiModelProperty(value = "总金额")
private BigDecimal amount;
@ApiModelProperty(value = "其它优惠")
private BigDecimal otherDiscount;
}
}

View File

@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.Valid;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
@ -74,8 +75,10 @@ public class StoreSaleVO {
private String sn;
@NotNull(message = "销售单价不能为空!")
@ApiModelProperty(value = "销售单价", required = true)
@DecimalMin(value = "0.00", inclusive = false, message = "销售单价必须大于0")
private BigDecimal price;
@ApiModelProperty(value = "给客户优惠后单价")
@DecimalMin(value = "0.00", inclusive = false, message = "优惠后单价必须大于0")
private BigDecimal discountedPrice;
@ApiModelProperty(value = "数量", required = true)
@NotNull(message = "数量不能为空!")
@ -83,8 +86,6 @@ public class StoreSaleVO {
@NotNull(message = "总金额不能为空!")
@ApiModelProperty(value = "总金额", required = true)
private BigDecimal amount;
@ApiModelProperty(value = "其它优惠")
private BigDecimal otherDiscount;
}
}

View File

@ -62,8 +62,6 @@ public class StoreSaleDTO {
private Integer quantity;
@ApiModelProperty(value = "总金额")
private BigDecimal amount;
@ApiModelProperty(value = "其它优惠")
private BigDecimal otherDiscount;
}
}

View File

@ -77,8 +77,6 @@ public class StoreSaleResDTO {
private Integer quantity;
@ApiModelProperty(value = "总金额")
private BigDecimal amount;
@ApiModelProperty(value = "其它优惠")
private BigDecimal otherDiscount;
}
}