|
@@ -15,6 +15,7 @@ import com.alibaba.excel.annotation.ExcelProperty;
|
|
|
import com.alibaba.excel.annotation.write.style.ColumnWidth;
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import jakarta.validation.constraints.NotBlank;
|
|
|
import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
|
import java.math.BigDecimal;
|
|
@@ -45,15 +46,20 @@ public class QyRecardBody {
|
|
|
private String qyRecordInfoId;
|
|
|
|
|
|
/** 商品编码 */
|
|
|
- @Schema(description = "商品编码")
|
|
|
+ @Schema(description = "商品编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
|
|
+ @NotBlank(message = "productNum不能为空")
|
|
|
+ private String productNum;
|
|
|
+
|
|
|
+ /** 料件编码 */
|
|
|
+ @Schema(description = "料件编码")
|
|
|
@ColumnWidth(12)
|
|
|
- @ExcelProperty(index = 2,value = "商品编码")
|
|
|
+ @ExcelProperty(index = 2,value = "料件编码")
|
|
|
private String productCode;
|
|
|
|
|
|
- /** 商品名称 */
|
|
|
- @Schema(description = "商品名称")
|
|
|
+ /** 料件名称 */
|
|
|
+ @Schema(description = "料件名称")
|
|
|
@ColumnWidth(12)
|
|
|
- @ExcelProperty(index = 3,value = "商品名称")
|
|
|
+ @ExcelProperty(index = 3,value = "料件名称")
|
|
|
private String productName;
|
|
|
|
|
|
/** 规格型号 */
|