diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java
index 89f64e4a6..a3a25d09d 100644
--- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java
+++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysDept.java
@@ -2,6 +2,7 @@ package com.ruoyi.common.core.domain.entity;
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;
@@ -30,7 +31,7 @@ public class SysDept extends BaseEntity
private String deptName;
/** 显示顺序 */
- private String orderNum;
+ private Integer orderNum;
/** 负责人 */
private String leader;
@@ -95,13 +96,13 @@ public class SysDept extends BaseEntity
this.deptName = deptName;
}
- @NotBlank(message = "显示顺序不能为空")
- public String getOrderNum()
+ @NotNull(message = "显示顺序不能为空")
+ public Integer getOrderNum()
{
return orderNum;
}
- public void setOrderNum(String orderNum)
+ public void setOrderNum(Integer orderNum)
{
this.orderNum = orderNum;
}
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
index fc7849617..36006185f 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -92,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
parent_id,
dept_name,
ancestors,
- order_num,
+ order_num,
leader,
phone,
email,
@@ -104,7 +104,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{parentId},
#{deptName},
#{ancestors},
- #{orderNum},
+ #{orderNum},
#{leader},
#{phone},
#{email},
@@ -120,7 +120,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
parent_id = #{parentId},
dept_name = #{deptName},
ancestors = #{ancestors},
- order_num = #{orderNum},
+ order_num = #{orderNum},
leader = #{leader},
phone = #{phone},
email = #{email},
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
index fd58edb32..93dc57c9e 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
@@ -132,7 +132,7 @@
menu_name = #{menuName},
parent_id = #{parentId},
- order_num = #{orderNum},
+ order_num = #{orderNum},
url = #{url},
target = #{target},
menu_type = #{menuType},
@@ -152,7 +152,7 @@
menu_id,
parent_id,
menu_name,
- order_num,
+ order_num,
url,
target,
menu_type,
@@ -167,7 +167,7 @@
#{menuId},
#{parentId},
#{menuName},
- #{orderNum},
+ #{orderNum},
#{url},
#{target},
#{menuType},