larry пре 5 година
родитељ
комит
21ad8b3bd8

+ 7 - 7
src/main/java/com/chinaitop/depot/system/mapper/FuncInfoMapper.xml

@@ -5,7 +5,7 @@
5 5
     <id column="func_id" property="funcId" jdbcType="INTEGER" />
6 6
     <result column="func_name" property="funcName" jdbcType="VARCHAR" />
7 7
     <result column="func_url" property="funcUrl" jdbcType="VARCHAR" />
8
-    <result column="func_sort" property="funcSort" jdbcType="INTEGER" />
8
+    <result column="func_sort" property="funcSort" jdbcType="VARCHAR" />
9 9
     <result column="parent_id" property="parentId" jdbcType="INTEGER" />
10 10
     <result column="ico_url" property="icoUrl" jdbcType="VARCHAR" />
11 11
     <result column="status" property="status" jdbcType="INTEGER" />
@@ -105,7 +105,7 @@
105 105
     insert into func_info (func_id, func_name, func_url, 
106 106
       func_sort,parent_id, ico_url, status,
107 107
       remark, del_flag)
108
-    values (#{funcId,jdbcType=INTEGER}, #{funcName,jdbcType=VARCHAR}, #{funcUrl,jdbcType=VARCHAR}, #{funcSort,jdbcType=INTEGER},
108
+    values (#{funcId,jdbcType=INTEGER}, #{funcName,jdbcType=VARCHAR}, #{funcUrl,jdbcType=VARCHAR}, #{funcSort,jdbcType=VARCHAR},
109 109
       #{parentId,jdbcType=INTEGER}, #{icoUrl,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, 
110 110
       #{remark,jdbcType=VARCHAR}, #{delFlag,jdbcType=INTEGER})
111 111
   </insert>
@@ -151,7 +151,7 @@
151 151
         #{funcUrl,jdbcType=VARCHAR},
152 152
       </if>
153 153
       <if test="funcSort != null" >
154
-        #{funcSort,jdbcType=INTEGER},
154
+        #{funcSort,jdbcType=VARCHAR},
155 155
       </if>
156 156
       <if test="parentId != null" >
157 157
         #{parentId,jdbcType=INTEGER},
@@ -189,7 +189,7 @@
189 189
         func_url = #{record.funcUrl,jdbcType=VARCHAR},
190 190
       </if>
191 191
       <if test="record.funcSort != null" >
192
-        func_sort = #{record.funcSort,jdbcType=INTEGER},
192
+        func_sort = #{record.funcSort,jdbcType=VARCHAR},
193 193
       </if>
194 194
       <if test="record.parentId != null" >
195 195
         parent_id = #{record.parentId,jdbcType=INTEGER},
@@ -216,7 +216,7 @@
216 216
     set func_id = #{record.funcId,jdbcType=INTEGER},
217 217
       func_name = #{record.funcName,jdbcType=VARCHAR},
218 218
       func_url = #{record.funcUrl,jdbcType=VARCHAR},
219
-      func_sort = #{record.funcSort,jdbcType=INTEGER},
219
+      func_sort = #{record.funcSort,jdbcType=VARCHAR},
220 220
       parent_id = #{record.parentId,jdbcType=INTEGER},
221 221
       ico_url = #{record.icoUrl,jdbcType=VARCHAR},
222 222
       status = #{record.status,jdbcType=INTEGER},
@@ -236,7 +236,7 @@
236 236
         func_url = #{funcUrl,jdbcType=VARCHAR},
237 237
       </if>
238 238
       <if test="funcSort != null" >
239
-        func_sort = #{funcSort,jdbcType=INTEGER},
239
+        func_sort = #{funcSort,jdbcType=VARCHAR},
240 240
       </if>
241 241
       <if test="parentId != null" >
242 242
         parent_id = #{parentId,jdbcType=INTEGER},
@@ -260,7 +260,7 @@
260 260
     update func_info
261 261
     set func_name = #{funcName,jdbcType=VARCHAR},
262 262
       func_url = #{funcUrl,jdbcType=VARCHAR},
263
-      func_sort = #{funcSort,jdbcType=INTEGER},
263
+      func_sort = #{funcSort,jdbcType=VARCHAR},
264 264
       parent_id = #{parentId,jdbcType=INTEGER},
265 265
       ico_url = #{icoUrl,jdbcType=VARCHAR},
266 266
       status = #{status,jdbcType=INTEGER},

+ 3 - 3
src/main/java/com/chinaitop/depot/system/model/FuncInfo.java

@@ -15,7 +15,7 @@ public class FuncInfo implements Serializable{
15 15
 
16 16
     private String funcUrl;
17 17
 
18
-    private Integer funcSort;
18
+    private String funcSort;
19 19
 
20 20
     private Integer parentId;
21 21
 
@@ -165,11 +165,11 @@ public class FuncInfo implements Serializable{
165 165
 		this.children = children;
166 166
 	}
167 167
 
168
-    public Integer getFuncSort() {
168
+    public String getFuncSort() {
169 169
         return funcSort;
170 170
     }
171 171
 
172
-    public void setFuncSort(Integer funcSort) {
172
+    public void setFuncSort(String funcSort) {
173 173
         this.funcSort = funcSort;
174 174
     }
175 175
 }