src/com/shop/mapper/CmsMenuMapper.xml
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?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.shop.dao.CmsMenuMapper">
<resultMap id="BaseResultMap" type="com.shop.po.CmsMenu">
<id column="menu_id" jdbcType="BIGINT" property="menuId" />
<result column="parent_id" jdbcType="BIGINT" property="parentId" />
<result column="menu_type" jdbcType="TINYINT" property="menuType" />
<result column="menu_code" jdbcType="VARCHAR" property="menuCode" />
<result column="menu_name" jdbcType="VARCHAR" property="menuName" />
<result column="sort" jdbcType="INTEGER" property="sort" />
<result column="href" jdbcType="VARCHAR" property="href" />
<result column="icon" jdbcType="VARCHAR" property="icon" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="permission" jdbcType="VARCHAR" property="permission" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
</resultMap>
<sql id="Base_Column_List">
menu_id, parent_id, menu_type, menu_code, menu_name, sort, href, icon, status, permission,
create_time, update_time, remarks
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_menu
where menu_id = #{menuId,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_menu
where menu_id = #{menuId,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.shop.po.CmsMenu">
insert into cms_menu (menu_id, parent_id, menu_type,
menu_code, menu_name, sort,
href, icon, status,
permission, create_time, update_time,
remarks)
values (#{menuId,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, #{menuType,jdbcType=TINYINT},
#{menuCode,jdbcType=VARCHAR}, #{menuName,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
#{href,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
#{permission,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{remarks,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.shop.po.CmsMenu">
insert into cms_menu
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="menuId != null">
menu_id,
</if>
<if test="parentId != null">
parent_id,
</if>
<if test="menuType != null">
menu_type,
</if>
<if test="menuCode != null">
menu_code,
</if>
<if test="menuName != null">
后面还有 128 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。