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