|
|
@ -1,7 +1,7 @@
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
<!DOCTYPE mapper
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.ruoyi.portal.mapper.HwWebMenuMapper">
|
|
|
|
<mapper namespace="com.ruoyi.portal.mapper.HwWebMenuMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<resultMap type="HwWebMenu" id="HwWebMenuResult">
|
|
|
|
<resultMap type="HwWebMenu" id="HwWebMenuResult">
|
|
|
@ -16,11 +16,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectHwWebMenuVo">
|
|
|
|
<sql id="selectHwWebMenuVo">
|
|
|
|
select web_menu_id, parent,
|
|
|
|
select web_menu_id, parent, ancestors, status, web_menu_name, tenant_id, web_menu__pic, web_menu_type from hw_web_menu
|
|
|
|
ancestors, status, web_menu_name,
|
|
|
|
|
|
|
|
tenant_id, web_menu__pic ,
|
|
|
|
|
|
|
|
web_menu_type
|
|
|
|
|
|
|
|
from hw_web_menu
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectHwWebMenuList" parameterType="HwWebMenu" resultMap="HwWebMenuResult">
|
|
|
|
<select id="selectHwWebMenuList" parameterType="HwWebMenu" resultMap="HwWebMenuResult">
|
|
|
@ -31,8 +27,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
|
<if test="webMenuName != null and webMenuName != ''"> and web_menu_name like concat('%', #{webMenuName}, '%')</if>
|
|
|
|
<if test="webMenuName != null and webMenuName != ''"> and web_menu_name like concat('%', #{webMenuName}, '%')</if>
|
|
|
|
<if test="tenantId != null "> and tenant_id = #{tenantId}</if>
|
|
|
|
<if test="tenantId != null "> and tenant_id = #{tenantId}</if>
|
|
|
|
<if test="webMenuType != null "> and web_menu_type = #{webMenuType}</if>
|
|
|
|
|
|
|
|
<if test="webMenuPic != null and webMenuPic != ''"> and web_menu__pic = #{webMenuPic}</if>
|
|
|
|
<if test="webMenuPic != null and webMenuPic != ''"> and web_menu__pic = #{webMenuPic}</if>
|
|
|
|
|
|
|
|
<if test="webMenuType != null "> and web_menu_type = #{webMenuType}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
@ -52,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="tenantId != null">tenant_id,</if>
|
|
|
|
<if test="tenantId != null">tenant_id,</if>
|
|
|
|
<if test="webMenuPic != null">web_menu__pic,</if>
|
|
|
|
<if test="webMenuPic != null">web_menu__pic,</if>
|
|
|
|
<if test="webMenuType != null">web_menu_type,</if>
|
|
|
|
<if test="webMenuType != null">web_menu_type,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="webMenuId != null">#{webMenuId},</if>
|
|
|
|
<if test="webMenuId != null">#{webMenuId},</if>
|
|
|
|
<if test="parent != null">#{parent},</if>
|
|
|
|
<if test="parent != null">#{parent},</if>
|
|
|
@ -62,7 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="tenantId != null">#{tenantId},</if>
|
|
|
|
<if test="tenantId != null">#{tenantId},</if>
|
|
|
|
<if test="webMenuPic != null">#{webMenuPic},</if>
|
|
|
|
<if test="webMenuPic != null">#{webMenuPic},</if>
|
|
|
|
<if test="webMenuType != null">#{webMenuType},</if>
|
|
|
|
<if test="webMenuType != null">#{webMenuType},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateHwWebMenu" parameterType="HwWebMenu">
|
|
|
|
<update id="updateHwWebMenu" parameterType="HwWebMenu">
|
|
|
|