|
|
@@ -10,109 +10,109 @@ import javax.validation.constraints.Size;
|
|
|
import com.goafanti.common.constant.ErrorConstants;
|
|
|
|
|
|
public class InputDemand {
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String id;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private Integer dataCategory;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 99999999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
- private Integer serialNumber;
|
|
|
-
|
|
|
+ private Integer serialNumber;
|
|
|
+
|
|
|
@Size(min = 0, max = 32, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String name;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String keyword;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private Integer infoSources;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private Integer industryCategoryA;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private Integer industryCategoryB;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private Integer industryCategoryC;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 9, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private Integer demandType;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 256, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String problemDes;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 256, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String technicalRequirements;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 1000, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String pictureUrl;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String textFileUrl;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String videoUrl;
|
|
|
-
|
|
|
- @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
+
|
|
|
+ @Max(value = (long) 999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private BigDecimal fixedBudget;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 12, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String fixedCycle;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 99999, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private Integer peopleNumber;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 200, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String fixedScheme;
|
|
|
-
|
|
|
- @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
+
|
|
|
+ @Max(value = (long) 999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private BigDecimal costEscrow;
|
|
|
-
|
|
|
- @Max(value = (long)999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
+
|
|
|
+ @Max(value = (long) 999999.99, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private BigDecimal budgetCost;
|
|
|
|
|
|
private Date validityPeriod;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String employerId;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 45, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String employerName;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 128, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String employerAddress;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 16, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String employerContacts;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String employerContactsMobile;
|
|
|
-
|
|
|
+
|
|
|
@Size(min = 0, max = 255, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String employerContactsMailbox;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 3, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private Integer contacts;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 2, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private Integer status;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 1, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
private Integer releaseStatus;
|
|
|
@@ -121,13 +121,13 @@ public class InputDemand {
|
|
|
|
|
|
@Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
private String principalId;
|
|
|
-
|
|
|
+
|
|
|
@Max(value = 4, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
@Min(value = 0, message = "{" + ErrorConstants.PARAM_ERROR + "}")
|
|
|
- private Integer auditStatus;
|
|
|
-
|
|
|
+ private Integer auditStatus;
|
|
|
+
|
|
|
@Size(min = 0, max = 36, message = "{" + ErrorConstants.PARAM_SIZE_ERROR + "}")
|
|
|
- private String techBrokerId;
|
|
|
+ private String techBrokerId;
|
|
|
|
|
|
public String getId() {
|
|
|
return id;
|
|
|
@@ -137,7 +137,6 @@ public class InputDemand {
|
|
|
this.id = id;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
public Integer getDataCategory() {
|
|
|
return dataCategory;
|
|
|
}
|
|
|
@@ -409,9 +408,5 @@ public class InputDemand {
|
|
|
public void setTechBrokerId(String techBrokerId) {
|
|
|
this.techBrokerId = techBrokerId;
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
|
|
|
}
|