Commit 009051ca authored by wangxl's avatar wangxl

111

parent 7ed50136
...@@ -26,10 +26,18 @@ public class ComProjectTogether extends BaseEntity { ...@@ -26,10 +26,18 @@ public class ComProjectTogether extends BaseEntity {
@ApiModelProperty(value = "单位名称", position = 2 ) @ApiModelProperty(value = "单位名称", position = 2 )
@Length(max=200, message = "单位名称不能大于200") @Length(max=200, message = "单位名称不能大于200")
private String unitName; private String unitName;
/** 地址 */ /** 单位国别 */
@ApiModelProperty(value = "地址", position = 3 ) @ApiModelProperty(value = "单位国别", position = 2 )
@Length(max=200, message = "地址不能大于200") @Length(max=200, message = "单位国别不能大于200")
private String unitCountry;
/** 单位地址 */
@ApiModelProperty(value = "单位地址", position = 3 )
@Length(max=200, message = "单位地址不能大于200")
private String unitAddress; private String unitAddress;
/** 组织机构代码/统社会信用代码 */
@ApiModelProperty(value = "组织机构代码/统社会信用代码", position = 2 )
@Length(max=100, message = "组织机构代码/统社会信用代码不能大于100")
private String organizationCode;
/** 在项目中的分工 */ /** 在项目中的分工 */
@ApiModelProperty(value = "在项目中的分工", position = 4 ) @ApiModelProperty(value = "在项目中的分工", position = 4 )
@Length(max=300, message = "在项目中的分工不能大于300") @Length(max=300, message = "在项目中的分工不能大于300")
......
...@@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModel; ...@@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import java.util.Date; import java.util.Date;
...@@ -20,15 +21,27 @@ import java.util.Date; ...@@ -20,15 +21,27 @@ import java.util.Date;
@ApiModel(description = "合作单位表DTO") @ApiModel(description = "合作单位表DTO")
public class ComProjectTogetherDTO extends BaseDTO { public class ComProjectTogetherDTO extends BaseDTO {
/** 对象Id(项目Id/任务书Id) */ /** 对象Id(项目Id/任务书Id) */
@ApiModelProperty(value = "对象Id(项目Id/任务书Id)", position = 1) @ApiModelProperty(value = "对象Id(项目Id/任务书Id)", position = 1 )
@Length(max=36, message = "对象Id(项目Id/任务书Id)不能大于36")
private String objectId; private String objectId;
/** 单位名称 */ /** 单位名称 */
@ApiModelProperty(value = "单位名称", position = 2) @ApiModelProperty(value = "单位名称", position = 2 )
@Length(max=200, message = "单位名称不能大于200")
private String unitName; private String unitName;
/** 地址 */ /** 单位国别 */
@ApiModelProperty(value = "地址", position = 3) @ApiModelProperty(value = "单位国别", position = 2 )
@Length(max=200, message = "单位国别不能大于200")
private String unitCountry;
/** 单位地址 */
@ApiModelProperty(value = "单位地址", position = 3 )
@Length(max=200, message = "单位地址不能大于200")
private String unitAddress; private String unitAddress;
/** 组织机构代码/统社会信用代码 */
@ApiModelProperty(value = "组织机构代码/统社会信用代码", position = 2 )
@Length(max=100, message = "组织机构代码/统社会信用代码不能大于100")
private String organizationCode;
/** 在项目中的分工 */ /** 在项目中的分工 */
@ApiModelProperty(value = "在项目中的分工", position = 4) @ApiModelProperty(value = "在项目中的分工", position = 4 )
@Length(max=300, message = "在项目中的分工不能大于300")
private String projectWork; private String projectWork;
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModel; ...@@ -6,6 +6,7 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import java.util.Date; import java.util.Date;
...@@ -19,19 +20,28 @@ import java.util.Date; ...@@ -19,19 +20,28 @@ import java.util.Date;
@EqualsAndHashCode(callSuper=true) @EqualsAndHashCode(callSuper=true)
@ApiModel(description = "查询合作单位表VO") @ApiModel(description = "查询合作单位表VO")
public class ComProjectTogetherQueryVO extends PaginationVO{ public class ComProjectTogetherQueryVO extends PaginationVO{
/** Id */
@ApiModelProperty(value = "Id")
private String id;
/** 对象Id(项目Id/任务书Id) */ /** 对象Id(项目Id/任务书Id) */
@ApiModelProperty(value = "对象Id(项目Id/任务书Id)", position = 1) @ApiModelProperty(value = "对象Id(项目Id/任务书Id)", position = 1 )
@Length(max=36, message = "对象Id(项目Id/任务书Id)不能大于36")
private String objectId; private String objectId;
/** 单位名称 */ /** 单位名称 */
@ApiModelProperty(value = "单位名称", position = 2) @ApiModelProperty(value = "单位名称", position = 2 )
@Length(max=200, message = "单位名称不能大于200")
private String unitName; private String unitName;
/** 地址 */ /** 单位国别 */
@ApiModelProperty(value = "地址", position = 3) @ApiModelProperty(value = "单位国别", position = 2 )
@Length(max=200, message = "单位国别不能大于200")
private String unitCountry;
/** 单位地址 */
@ApiModelProperty(value = "单位地址", position = 3 )
@Length(max=200, message = "单位地址不能大于200")
private String unitAddress; private String unitAddress;
/** 组织机构代码/统社会信用代码 */
@ApiModelProperty(value = "组织机构代码/统社会信用代码", position = 2 )
@Length(max=100, message = "组织机构代码/统社会信用代码不能大于100")
private String organizationCode;
/** 在项目中的分工 */ /** 在项目中的分工 */
@ApiModelProperty(value = "在项目中的分工", position = 4) @ApiModelProperty(value = "在项目中的分工", position = 4 )
@Length(max=300, message = "在项目中的分工不能大于300")
private String projectWork; private String projectWork;
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment