| | |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import jakarta.validation.constraints.Positive; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | |
| | | @Schema(description = "供应商ID", example = "1") |
| | | private Long vendorId; |
| | | |
| | | @Schema(description = "调整数量(正数=入库,负数=出库)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| | | @NotNull(message = "调整数量不能为空") |
| | | @Schema(description = "数量(必须大于0)", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
| | | @NotNull(message = "数量不能为空") |
| | | @Positive(message = "数量必须大于0") |
| | | private BigDecimal quantity; |
| | | |
| | | @Schema(description = "调整原因", example = "盘点调整") |
| | | @Schema(description = "原因", example = "盘点调整") |
| | | private String reason; |
| | | |
| | | } |