@@ -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);
- }
@@ -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>
@@ -23,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<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%'