Browse Source

优化查询条件,查询范围

master
陈裕财 5 years ago
parent
commit
b9616e3645
  1. 2
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMenuMapper.xml
  2. 2
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCaseExecMapper.xml
  3. 2
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCaseMapper.xml

2
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmIterationMenuMapper.xml

@ -23,7 +23,7 @@
</foreach> </foreach>
</if> </if>
<include refid="where"/> <include refid="where"/>
<if test="key != null and key !='' "> </if>
<if test="key != null and key !='' "> m.menu_name like #{key} </if>
</where> </where>
</select> </select>

2
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCaseExecMapper.xml

@ -34,7 +34,7 @@
</foreach> </foreach>
</if> </if>
<include refid="where"/> <include refid="where"/>
<if test="key != null and key !='' "> </if>
<if test="key != null and key !='' "> and res.case_name like #{key} </if>
</where> </where>
</select> </select>

2
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCaseMapper.xml

@ -23,7 +23,7 @@
</foreach> </foreach>
</if> </if>
<include refid="where"/> <include refid="where"/>
<if test="key != null and key !='' "> </if>
<if test="key != null and key !='' "> and res.case_name like #{key} </if>
</where> </where>
</select> </select>

Loading…
Cancel
Save