|
@@ -1,10 +1,11 @@
|
|
|
package org.dromara.commodityManagement.domain.bo;
|
|
|
|
|
|
import io.github.linpeilie.annotations.AutoMapper;
|
|
|
+import jakarta.validation.constraints.NotBlank;
|
|
|
import lombok.Data;
|
|
|
import lombok.EqualsAndHashCode;
|
|
|
import org.dromara.commodityManagement.domain.DiBu;
|
|
|
-import org.dromara.common.tenant.core.TenantEntity;
|
|
|
+import org.dromara.common.mybatis.core.domain.BaseEntity;
|
|
|
|
|
|
/**
|
|
|
* 底布业务对象
|
|
@@ -12,7 +13,7 @@ import org.dromara.common.tenant.core.TenantEntity;
|
|
|
@Data
|
|
|
@EqualsAndHashCode(callSuper = true)
|
|
|
@AutoMapper(target = DiBu.class, reverseConvertGenerate = false)
|
|
|
-public class DiBuBo extends TenantEntity {
|
|
|
+public class DiBuBo extends BaseEntity {
|
|
|
|
|
|
/**
|
|
|
* 底布Id
|
|
@@ -22,26 +23,31 @@ public class DiBuBo extends TenantEntity {
|
|
|
/**
|
|
|
* 名称
|
|
|
*/
|
|
|
+ @NotBlank(message = "名称不能为空")
|
|
|
private String name;
|
|
|
|
|
|
/**
|
|
|
* 颜色
|
|
|
*/
|
|
|
+ @NotBlank(message = "颜色不能为空")
|
|
|
private String color;
|
|
|
|
|
|
/**
|
|
|
* 门幅
|
|
|
*/
|
|
|
+ @NotBlank(message = "门幅不能为空")
|
|
|
private String menfu;
|
|
|
|
|
|
/**
|
|
|
* 克重
|
|
|
*/
|
|
|
+ @NotBlank(message = "克重不能为空")
|
|
|
private String weight;
|
|
|
|
|
|
/**
|
|
|
* 单价
|
|
|
*/
|
|
|
+ @NotBlank(message = "单价不能为空")
|
|
|
private String price;
|
|
|
|
|
|
/**
|
|
@@ -52,11 +58,13 @@ public class DiBuBo extends TenantEntity {
|
|
|
/**
|
|
|
* 单位
|
|
|
*/
|
|
|
+ @NotBlank(message = "单位不能为空")
|
|
|
private String unit;
|
|
|
|
|
|
/**
|
|
|
* 针织
|
|
|
*/
|
|
|
+ @NotBlank(message = "针织不能为空")
|
|
|
private String zhenzhi;
|
|
|
|
|
|
/**
|