|
|
|
|
@ -13,12 +13,14 @@
|
|
|
|
|
<result property="tenantId" column="tenant_id" />
|
|
|
|
|
<result property="webMenuPic" column="web_menu__pic" />
|
|
|
|
|
<result property="webMenuType" column="web_menu_type" />
|
|
|
|
|
<result property="order" column="order" />
|
|
|
|
|
<result property="isDelete" column="is_delete" />
|
|
|
|
|
<result property="webMenuNameEnglish" column="web_menu_name_english" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectHwWebMenuVo">
|
|
|
|
|
select web_menu_id, parent, ancestors, status, web_menu_name, tenant_id, web_menu__pic, web_menu_type,
|
|
|
|
|
order,
|
|
|
|
|
web_menu_name_english,
|
|
|
|
|
is_delete
|
|
|
|
|
from hw_web_menu
|
|
|
|
|
@ -35,8 +37,10 @@
|
|
|
|
|
<if test="tenantId != null "> and tenant_id = #{tenantId}</if>
|
|
|
|
|
<if test="webMenuPic != null and webMenuPic != ''"> and web_menu__pic = #{webMenuPic}</if>
|
|
|
|
|
<if test="webMenuType != null "> and web_menu_type = #{webMenuType}</if>
|
|
|
|
|
<if test="order != null "> and `order` = #{order}</if>
|
|
|
|
|
<if test="webMenuNameEnglish != null and webMenuNameEnglish != ''"> and web_menu_name_english = #{webMenuNameEnglish}</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by parent, order asc, web_menu_id asc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectHwWebMenuByWebMenuId" parameterType="Long" resultMap="HwWebMenuResult">
|
|
|
|
|
@ -55,6 +59,7 @@
|
|
|
|
|
<if test="tenantId != null">tenant_id,</if>
|
|
|
|
|
<if test="webMenuPic != null">web_menu__pic,</if>
|
|
|
|
|
<if test="webMenuType != null">web_menu_type,</if>
|
|
|
|
|
<if test="order != null">`order`,</if>
|
|
|
|
|
<if test="webMenuNameEnglish != null">web_menu_name_english,</if>
|
|
|
|
|
is_delete,
|
|
|
|
|
</trim>
|
|
|
|
|
@ -67,6 +72,7 @@
|
|
|
|
|
<if test="tenantId != null">#{tenantId},</if>
|
|
|
|
|
<if test="webMenuPic != null">#{webMenuPic},</if>
|
|
|
|
|
<if test="webMenuType != null">#{webMenuType},</if>
|
|
|
|
|
<if test="order != null">#{order},</if>
|
|
|
|
|
<if test="webMenuNameEnglish != null">#{webMenuNameEnglish},</if>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="isDelete != null and isDelete != ''">#{isDelete},</when>
|
|
|
|
|
@ -85,6 +91,7 @@
|
|
|
|
|
<if test="tenantId != null">tenant_id = #{tenantId},</if>
|
|
|
|
|
<if test="webMenuPic != null">web_menu__pic = #{webMenuPic},</if>
|
|
|
|
|
<if test="webMenuType != null">web_menu_type = #{webMenuType},</if>
|
|
|
|
|
<if test="order != null">`order` = #{order},</if>
|
|
|
|
|
<if test="webMenuNameEnglish != null">web_menu_name_english = #{webMenuNameEnglish},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where web_menu_id = #{webMenuId}
|
|
|
|
|
@ -100,4 +107,4 @@
|
|
|
|
|
#{webMenuId}
|
|
|
|
|
</foreach>
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|
|
|
|
|
</mapper>
|
|
|
|
|
|