正在显示
1 个修改的文件
包含
5 行增加
和
4 行删除
| @@ -3,6 +3,7 @@ package com.ruoyi.common.core.domain.entity; | @@ -3,6 +3,7 @@ package com.ruoyi.common.core.domain.entity; | ||
| 3 | import java.util.ArrayList; | 3 | import java.util.ArrayList; |
| 4 | import java.util.List; | 4 | import java.util.List; |
| 5 | import javax.validation.constraints.NotBlank; | 5 | import javax.validation.constraints.NotBlank; |
| 6 | +import javax.validation.constraints.NotNull; | ||
| 6 | import javax.validation.constraints.Size; | 7 | import javax.validation.constraints.Size; |
| 7 | import org.apache.commons.lang3.builder.ToStringBuilder; | 8 | import org.apache.commons.lang3.builder.ToStringBuilder; |
| 8 | import org.apache.commons.lang3.builder.ToStringStyle; | 9 | import org.apache.commons.lang3.builder.ToStringStyle; |
| @@ -30,7 +31,7 @@ public class SysMenu extends BaseEntity | @@ -30,7 +31,7 @@ public class SysMenu extends BaseEntity | ||
| 30 | private Long parentId; | 31 | private Long parentId; |
| 31 | 32 | ||
| 32 | /** 显示顺序 */ | 33 | /** 显示顺序 */ |
| 33 | - private String orderNum; | 34 | + private Integer orderNum; |
| 34 | 35 | ||
| 35 | /** 路由地址 */ | 36 | /** 路由地址 */ |
| 36 | private String path; | 37 | private String path; |
| @@ -107,13 +108,13 @@ public class SysMenu extends BaseEntity | @@ -107,13 +108,13 @@ public class SysMenu extends BaseEntity | ||
| 107 | this.parentId = parentId; | 108 | this.parentId = parentId; |
| 108 | } | 109 | } |
| 109 | 110 | ||
| 110 | - @NotBlank(message = "显示顺序不能为空") | ||
| 111 | - public String getOrderNum() | 111 | + @NotNull(message = "显示顺序不能为空") |
| 112 | + public Integer getOrderNum() | ||
| 112 | { | 113 | { |
| 113 | return orderNum; | 114 | return orderNum; |
| 114 | } | 115 | } |
| 115 | 116 | ||
| 116 | - public void setOrderNum(String orderNum) | 117 | + public void setOrderNum(Integer orderNum) |
| 117 | { | 118 | { |
| 118 | this.orderNum = orderNum; | 119 | this.orderNum = orderNum; |
| 119 | } | 120 | } |
-
请 注册 或 登录 后发表评论