|
@@ -1,8 +1,8 @@
|
|
|
package com.sckw.slope.detection.model.dto;
|
|
package com.sckw.slope.detection.model.dto;
|
|
|
|
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.NotBlank;
|
|
|
-import jakarta.validation.constraints.Size;
|
|
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
+import org.hibernate.validator.constraints.Length;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
import java.io.Serializable;
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
@@ -91,6 +91,6 @@ public class ProjectAddDTO implements Serializable {
|
|
|
* 备注
|
|
* 备注
|
|
|
*/
|
|
*/
|
|
|
// @Max(value = 200, message = "请输入不超过{value}个字符")
|
|
// @Max(value = 200, message = "请输入不超过{value}个字符")
|
|
|
- @Size(max = 200,message = "请输入不超过{value}个字符")
|
|
|
|
|
|
|
+ @Length(max = 200,message = "备注长度错误最大长度:{max}")
|
|
|
private String remark;
|
|
private String remark;
|
|
|
}
|
|
}
|