shiqian 3 سال پیش
والد
کامیت
0d7989d1e2

+ 0 - 6
boman-web-core/src/main/java/com/boman/web/core/controller/TestController.java

@@ -457,10 +457,4 @@ public class TestController {
         return result;
     }
 
-    public static void main(String[] args) {
-
-        String r = "1";
-        String[] split = r.split(",");
-        System.out.println(split.length);
-    }
 }

+ 1 - 1
boman-web-core/src/main/resources/mapper/CzrkMapper.xml

@@ -868,6 +868,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
 
     <select id="selectDeptNameById" parameterType="Integer" resultMap="SysDeptResult">
-        select *  from sys_dept where id = #{id}
+        select *  from sys_dept where id = #{id} limit 1;
     </select>
 </mapper>

+ 1 - 1
boman-web-core/src/main/resources/mapper/SysRegionMapper.xml

@@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
     </select>
 
     <select id="selectSysRegionByNameLike" parameterType="string" resultMap="SysRegionResult">
-        select area_id,name,pid from china_area where name like concat('%', #{name}, '%') and pid like '%340882%'
+        select area_id,name,pid from china_area where name like concat(#{name}, '%') and pid like '340882%'
     </select>
 
 </mapper>