MenuCQuery.xml 961 B

1234567891011121314151617181920
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.bowintek.smartsearch.mapper.cquery.MenuCQuery">
  4. <select id="selectParentMenuList" resultType="java.util.HashMap">
  5. select m.menuNo, orderNo, menuName, icon, viewPath, url, parentMenuNo, description, isTopMenu, isVisible,
  6. isLeaf, functionCode, recordStatus,(select count(1) from sys_menu cm where cm.ParentMenuNo=m.MenuNo) childNumber
  7. from sys_menu m
  8. where 1=1
  9. <if test="parentMenuNo!='' and parentMenuNo!=null">
  10. and m.ParentMenuNo=#{parentMenuNo}
  11. </if>
  12. <if test="menuNo!='' and menuNo!=null">
  13. and m.menuNo=#{menuNo}
  14. </if>
  15. <if test="menuName!='' and menuName!=null">
  16. and m.menuName like Concat('%',#{menuName},'%')
  17. </if>
  18. order by m.OrderNo
  19. </select>
  20. </mapper>