Ver código fonte

:robot: mapper.xml兼容eclipse、没装插件情况的写法

smallchill 6 anos atrás
pai
commit
50916d12d3

+ 4 - 4
src/main/java/org/springblade/modules/system/mapper/DeptMapper.xml

@@ -63,11 +63,11 @@
         <if test="param2!=null">
             and dept.parent_id = #{param2}
         </if>
-        <if test="param.deptName!=null and param.deptName!=''">
-            and dept.dept_name like concat('%', #{param.deptName},'%')
+        <if test="param3.deptName!=null and param3.deptName!=''">
+            and dept.dept_name like concat('%', #{param3.deptName},'%')
         </if>
-        <if test="param.fullName!=null and param.fullName!=''">
-            and dept.full_name like concat('%', #{param.fullName},'%')
+        <if test="param3.fullName!=null and param3.fullName!=''">
+            and dept.full_name like concat('%', #{param3.fullName},'%')
         </if>
         ORDER BY dept.sort
     </select>

+ 12 - 12
src/main/java/org/springblade/modules/system/mapper/MenuMapper.xml

@@ -62,14 +62,14 @@
         <if test="param1!=null">
             and menu.parent_id = #{param1}
         </if>
-        <if test="param.name!=null and param.name!=''">
-            and menu.name like concat('%', #{param.name},'%')
+        <if test="param2.name!=null and param2.name!=''">
+            and menu.name like concat('%', #{param2.name},'%')
         </if>
-        <if test="param.code!=null and param.code!=''">
-            and menu.code like concat('%', #{param.code},'%')
+        <if test="param2.code!=null and param2.code!=''">
+            and menu.code like concat('%', #{param2.code},'%')
         </if>
-        <if test="param.alias!=null and param.alias!=''">
-            and menu.alias like concat('%', #{param.alias},'%')
+        <if test="param2.alias!=null and param2.alias!=''">
+            and menu.alias like concat('%', #{param2.alias},'%')
         </if>
         ORDER BY menu.sort
     </select>
@@ -91,14 +91,14 @@
         <if test="param1!=null">
             and menu.parent_id = #{param1}
         </if>
-        <if test="param.name!=null and param.name!=''">
-            and menu.name like concat('%', #{param.name},'%')
+        <if test="param2.name!=null and param2.name!=''">
+            and menu.name like concat('%', #{param2.name},'%')
         </if>
-        <if test="param.code!=null and param.code!=''">
-            and menu.code like concat('%', #{param.code},'%')
+        <if test="param2.code!=null and param2.code!=''">
+            and menu.code like concat('%', #{param2.code},'%')
         </if>
-        <if test="param.alias!=null and param.alias!=''">
-            and menu.alias like concat('%', #{param.alias},'%')
+        <if test="param2.alias!=null and param2.alias!=''">
+            and menu.alias like concat('%', #{param2.alias},'%')
         </if>
         ORDER BY menu.sort
     </select>