|
@@ -16,6 +16,7 @@
|
|
|
<result column="FunctionCode" jdbcType="VARCHAR" property="functionCode" />
|
|
|
<result column="RecordStatus" jdbcType="INTEGER" property="recordStatus" />
|
|
|
<result column="ShortcutIcon" jdbcType="VARCHAR" property="shortcutIcon" />
|
|
|
+ <result column="IsBlank" jdbcType="BIT" property="isBlank" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<where>
|
|
@@ -77,7 +78,7 @@
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
MenuNo, OrderNo, MenuName, Icon, ViewPath, Url, ParentMenuNo, Description, IsTopMenu,
|
|
|
- IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon
|
|
|
+ IsVisible, IsLeaf, FunctionCode, RecordStatus, ShortcutIcon, IsBlank
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.hz.employmentsite.model.SysMenuExample" resultMap="BaseResultMap">
|
|
|
select
|
|
@@ -114,12 +115,14 @@
|
|
|
Icon, ViewPath, Url,
|
|
|
ParentMenuNo, Description, IsTopMenu,
|
|
|
IsVisible, IsLeaf, FunctionCode,
|
|
|
- RecordStatus, ShortcutIcon)
|
|
|
+ RecordStatus, ShortcutIcon, IsBlank
|
|
|
+ )
|
|
|
values (#{menuNo,jdbcType=VARCHAR}, #{orderNo,jdbcType=INTEGER}, #{menuName,jdbcType=VARCHAR},
|
|
|
#{icon,jdbcType=VARCHAR}, #{viewPath,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR},
|
|
|
#{parentMenuNo,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{isTopMenu,jdbcType=BIT},
|
|
|
#{isVisible,jdbcType=BIT}, #{isLeaf,jdbcType=BIT}, #{functionCode,jdbcType=VARCHAR},
|
|
|
- #{recordStatus,jdbcType=INTEGER}, #{shortcutIcon,jdbcType=VARCHAR})
|
|
|
+ #{recordStatus,jdbcType=INTEGER}, #{shortcutIcon,jdbcType=VARCHAR}, #{isBlank,jdbcType=BIT}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.hz.employmentsite.model.SysMenu">
|
|
|
insert into sys_menu
|
|
@@ -166,6 +169,9 @@
|
|
|
<if test="shortcutIcon != null">
|
|
|
ShortcutIcon,
|
|
|
</if>
|
|
|
+ <if test="isBlank != null">
|
|
|
+ IsBlank,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="menuNo != null">
|
|
@@ -210,6 +216,9 @@
|
|
|
<if test="shortcutIcon != null">
|
|
|
#{shortcutIcon,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="isBlank != null">
|
|
|
+ #{isBlank,jdbcType=BIT},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.hz.employmentsite.model.SysMenuExample" resultType="java.lang.Long">
|
|
@@ -263,6 +272,9 @@
|
|
|
<if test="row.shortcutIcon != null">
|
|
|
ShortcutIcon = #{row.shortcutIcon,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="row.isBlank != null">
|
|
|
+ IsBlank = #{row.isBlank,jdbcType=BIT},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
@@ -283,7 +295,8 @@
|
|
|
IsLeaf = #{row.isLeaf,jdbcType=BIT},
|
|
|
FunctionCode = #{row.functionCode,jdbcType=VARCHAR},
|
|
|
RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
|
|
|
- ShortcutIcon = #{row.shortcutIcon,jdbcType=VARCHAR}
|
|
|
+ ShortcutIcon = #{row.shortcutIcon,jdbcType=VARCHAR},
|
|
|
+ IsBlank = #{row.isBlank,jdbcType=BIT}
|
|
|
<if test="example != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
@@ -330,6 +343,9 @@
|
|
|
<if test="shortcutIcon != null">
|
|
|
ShortcutIcon = #{shortcutIcon,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="isBlank != null">
|
|
|
+ IsBlank = #{isBlank,jdbcType=BIT},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where MenuNo = #{menuNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
@@ -347,7 +363,8 @@
|
|
|
IsLeaf = #{isLeaf,jdbcType=BIT},
|
|
|
FunctionCode = #{functionCode,jdbcType=VARCHAR},
|
|
|
RecordStatus = #{recordStatus,jdbcType=INTEGER},
|
|
|
- ShortcutIcon = #{shortcutIcon,jdbcType=VARCHAR}
|
|
|
+ ShortcutIcon = #{shortcutIcon,jdbcType=VARCHAR},
|
|
|
+ IsBlank = #{isBlank,jdbcType=BIT}
|
|
|
where MenuNo = #{menuNo,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper>
|