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