Commit f564ce3d81c03132bb235e6692275ba8088014d1
1 parent
8bd77d8c49
Exists in
master
and in
8 other branches
bug fix
权限新加权重字段
Showing 3 changed files with 15 additions and 4 deletions
platform-biz-service/src/main/java/com/lyms/platform/permission/model/Permissions2.java
View file @
f564ce3
| ... | ... | @@ -15,6 +15,15 @@ |
| 15 | 15 | private String createUser; |
| 16 | 16 | private Integer enable; |
| 17 | 17 | private String extra_data; |
| 18 | + private Integer weight; | |
| 19 | + | |
| 20 | + public Integer getWeight() { | |
| 21 | + return weight; | |
| 22 | + } | |
| 23 | + | |
| 24 | + public void setWeight(Integer weight) { | |
| 25 | + this.weight = weight; | |
| 26 | + } | |
| 18 | 27 | |
| 19 | 28 | public String getExtra_data() { |
| 20 | 29 | return extra_data; |
platform-biz-service/src/main/resources/mainOrm/master/Permissions2.xml
View file @
f564ce3
| ... | ... | @@ -14,6 +14,7 @@ |
| 14 | 14 | <result column="create_user" property="createUser" jdbcType="VARCHAR" /> |
| 15 | 15 | <result column="enable" property="enable" jdbcType="INTEGER" /> |
| 16 | 16 | <result column="extra_data" property="extra_data" jdbcType="VARCHAR" /> |
| 17 | + <result column="weight" property="weight" jdbcType="INTEGER" /> | |
| 17 | 18 | </resultMap> |
| 18 | 19 | |
| 19 | 20 | |
| ... | ... | @@ -65,7 +66,7 @@ |
| 65 | 66 | |
| 66 | 67 | |
| 67 | 68 | <select id="getPermissions2" resultMap="Permissions2ResultMap" parameterType="java.lang.Integer"> |
| 68 | - select id,name,uri,type,puri,icon,yn,create_date,create_user,enable,extra_data | |
| 69 | + select id,name,uri,type,puri,icon,yn,create_date,create_user,enable,extra_data,weight | |
| 69 | 70 | from permissions2 where id = #{id,jdbcType=INTEGER} |
| 70 | 71 | </select> |
| 71 | 72 | |
| ... | ... | @@ -120,7 +121,7 @@ |
| 120 | 121 | |
| 121 | 122 | |
| 122 | 123 | <select id="queryPermissions2" resultMap="Permissions2ResultMap" parameterType="com.lyms.platform.permission.model.Permissions2Query"> |
| 123 | - select id,name,uri,type,puri,icon,yn,create_date,create_user,enable,extra_data | |
| 124 | + select id,name,uri,type,puri,icon,yn,create_date,create_user,enable,extra_data,weight | |
| 124 | 125 | from permissions2 |
| 125 | 126 | <include refid="Permissions2Condition" /> |
| 126 | 127 | <include refid="orderAndLimit" /> |
platform-biz-service/src/main/resources/mainOrm/slave/Permissions2.xml
View file @
f564ce3
| ... | ... | @@ -14,6 +14,7 @@ |
| 14 | 14 | <result column="create_user" property="createUser" jdbcType="VARCHAR" /> |
| 15 | 15 | <result column="enable" property="enable" jdbcType="INTEGER" /> |
| 16 | 16 | <result column="extra_data" property="extra_data" jdbcType="VARCHAR" /> |
| 17 | + <result column="weight" property="weight" jdbcType="INTEGER" /> | |
| 17 | 18 | </resultMap> |
| 18 | 19 | |
| 19 | 20 | |
| ... | ... | @@ -64,7 +65,7 @@ |
| 64 | 65 | |
| 65 | 66 | |
| 66 | 67 | <select id="getPermissions2" resultMap="Permissions2ResultMap" parameterType="java.lang.Integer"> |
| 67 | - select id,name,uri,type,puri,icon,yn,create_date,create_user,enable,extra_data | |
| 68 | + select id,name,uri,type,puri,icon,yn,create_date,create_user,enable,extra_data,weight | |
| 68 | 69 | from permissions2 where id = #{id,jdbcType=INTEGER} |
| 69 | 70 | </select> |
| 70 | 71 | |
| ... | ... | @@ -119,7 +120,7 @@ |
| 119 | 120 | |
| 120 | 121 | |
| 121 | 122 | <select id="queryPermissions2" resultMap="Permissions2ResultMap" parameterType="com.lyms.platform.permission.model.Permissions2Query"> |
| 122 | - select id,name,uri,type,puri,icon,yn,create_date,create_user,enable,extra_data | |
| 123 | + select id,name,uri,type,puri,icon,yn,create_date,create_user,enable,extra_data,weight | |
| 123 | 124 | from permissions2 |
| 124 | 125 | <include refid="Permissions2Condition" /> |
| 125 | 126 | <include refid="orderAndLimit" /> |