WebRoot/WEB-INF/classes/com/shop/mapper/CmsRoleMenuMapper.xml
(开头部分) 2KB这里只显示每个文件的开头 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.CmsRoleMenuMapper">
<resultMap id="BaseResultMap" type="com.shop.po.CmsRoleMenu">
<id column="role_menu_id" jdbcType="BIGINT" property="roleMenuId" />
<result column="role_id" jdbcType="BIGINT" property="roleId" />
<result column="menu_id" jdbcType="BIGINT" property="menuId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
</resultMap>
<sql id="Base_Column_List">
role_menu_id, role_id, menu_id, create_time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from cms_role_menu
where role_menu_id = #{roleMenuId,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from cms_role_menu
where role_menu_id = #{roleMenuId,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.shop.po.CmsRoleMenu">
insert into cms_role_menu (role_menu_id, role_id, menu_id,
create_time)
values (#{roleMenuId,jdbcType=BIGINT}, #{roleId,jdbcType=BIGINT}, #{menuId,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.shop.po.CmsRoleMenu">
insert into cms_role_menu
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="roleMenuId != null">
role_menu_id,
</if>
<if test="roleId != null">
role_id,
</if>
<if test="menuId != null">
menu_id,
</if>
<if test="createTime != null">
create_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="roleMenuId != null">
#{roleMenuId,jdbcType=BIGINT},
</if>
<if test="roleId != null">
#{roleId,jdbcType=BIGINT},
</if>
<if test="menuId != null">
#{menuId,jdbcType=BIGINT},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.shop.po.CmsRoleMenu">
后面还有 22 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。