xuhy
2025-11-11 c14d9e1eba68d0127d19a8bd4e0fc80be5ad3138
ruoyi-system/src/main/java/com/ruoyi/system/model/TLargeResource.java
@@ -6,7 +6,9 @@
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;
@@ -37,6 +39,7 @@
    @TableField("type_children_id")
    private String typeChildrenId;
    @Length(max = 40,message = "资源单位不能超过40个字符")
    @ApiModelProperty(value = "资源单位")
    @TableField("resource_unit")
    private String resourceUnit;
@@ -45,6 +48,7 @@
    @TableField("resource_name_desc")
    private String resourceNameDesc;
    @Length(max = 50,message = "资源来源不能超过50个字符")
    @ApiModelProperty(value = "资源来源")
    @TableField("resource_source")
    private String resourceSource;
@@ -53,10 +57,12 @@
    @TableField("quantity_scale")
    private String quantityScale;
    @Length(max = 20,message = "联系人不能超过20个字符")
    @ApiModelProperty(value = "联系人")
    @TableField("contact_person")
    private String contactPerson;
    @Pattern(regexp = "^1[3-9]\\\\d{9}$",message = "手机号格式不正确")
    @ApiModelProperty(value = "联系电话")
    @TableField("contact_number")
    private String contactNumber;