校验包问题

master
mark 2 years ago
parent 9c01b6d589
commit 777329fe29
  1. 10
      ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/domain/SysDept.java
  2. 2
      ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/domain/SysDictData.java
  3. 2
      ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/domain/SysDictType.java
  4. 10
      ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/domain/SysRole.java
  5. 10
      ruoyi-common/ruoyi-common-core/pom.xml
  6. 10
      ruoyi-modules/ruoyi-file/pom.xml
  7. 2
      ruoyi-modules/ruoyi-gen/src/main/java/com/ruoyi/gen/domain/GenTable.java
  8. 4
      ruoyi-modules/ruoyi-gen/src/main/java/com/ruoyi/gen/domain/GenTableColumn.java
  9. 4
      ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/domain/SysJob.java
  10. 2
      ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysConfig.java
  11. 8
      ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysMenu.java
  12. 2
      ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysNotice.java
  13. 2
      ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/SysPost.java

@ -2,17 +2,19 @@ package com.ruoyi.system.api.domain;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;
/**
* 部门表 sys_dept
*
*
* @author ruoyi
*/
public class SysDept extends BaseEntity
@ -51,7 +53,7 @@ public class SysDept extends BaseEntity
/** 父部门名称 */
private String parentName;
/** 子部门 */
private List<SysDept> children = new ArrayList<SysDept>();

@ -1,6 +1,6 @@
package com.ruoyi.system.api.domain;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@ -1,6 +1,6 @@
package com.ruoyi.system.api.domain;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;

@ -1,18 +1,20 @@
package com.ruoyi.system.api.domain;
import java.util.Set;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.annotation.Excel.ColumnType;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
/**
* 角色表 sys_role
*
*
* @author ruoyi
*/
public class SysRole extends BaseEntity

@ -52,11 +52,11 @@
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.3.6.Final</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.hibernate</groupId>-->
<!-- <artifactId>hibernate-validator</artifactId>-->
<!-- <version>5.3.6.Final</version>-->
<!-- </dependency>-->
<!-- Hibernate Validator -->
<dependency>

@ -22,11 +22,11 @@
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>5.3.6.Final</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.hibernate</groupId>-->
<!-- <artifactId>hibernate-validator</artifactId>-->
<!-- <version>5.3.6.Final</version>-->
<!-- </dependency>-->
<!-- SpringCloud Alibaba Nacos Config -->
<dependency>

@ -2,7 +2,7 @@ package com.ruoyi.gen.domain;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.NotBlank;
import org.apache.commons.lang3.ArrayUtils;
import com.ruoyi.common.core.constant.GenConstants;
import com.ruoyi.common.core.utils.StringUtils;

@ -1,6 +1,6 @@
package com.ruoyi.gen.domain;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.NotBlank;
import com.ruoyi.common.core.utils.StringUtils;
import com.ruoyi.common.core.web.domain.BaseEntity;
@ -371,4 +371,4 @@ public class GenTableColumn extends BaseEntity
return this.columnComment;
}
}
}
}

@ -1,7 +1,7 @@
package com.ruoyi.job.domain;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
@ -168,4 +168,4 @@ public class SysJob extends BaseEntity
.append("remark", getRemark())
.toString();
}
}
}

@ -1,6 +1,6 @@
package com.ruoyi.system.domain;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@ -2,16 +2,16 @@ package com.ruoyi.system.domain;
import java.util.ArrayList;
import java.util.List;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.hibernate.validator.constraints.NotBlank;
/**
* 菜单权限表 sys_menu
*
*
* @author ruoyi
*/
public class SysMenu extends BaseEntity
@ -53,7 +53,7 @@ public class SysMenu extends BaseEntity
/** 显示状态(0显示 1隐藏) */
private String visible;
/** 菜单状态(0正常 1停用) */
private String status;
@ -232,7 +232,7 @@ public class SysMenu extends BaseEntity
{
this.children = children;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

@ -1,6 +1,6 @@
package com.ruoyi.system.domain;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

@ -1,6 +1,6 @@
package com.ruoyi.system.domain;
import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.apache.commons.lang3.builder.ToStringBuilder;

Loading…
Cancel
Save