src/com/shop/mapper/OsOrderProductMapper.xml
(开头部分) 7KB这里只显示每个文件的开头 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.OsOrderProductMapper">
<resultMap id="BaseResultMap" type="com.shop.po.OsOrderProduct">
<id column="order_product_id" jdbcType="BIGINT" property="orderProductId" />
<result column="order_id" jdbcType="BIGINT" property="orderId" />
<result column="product_number" jdbcType="BIGINT" property="productNumber" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="pic_img" jdbcType="VARCHAR" property="picImg" />
<result column="product_spec_number" jdbcType="BIGINT" property="productSpecNumber" />
<result column="product_spec_name" jdbcType="VARCHAR" property="productSpecName" />
<result column="price" jdbcType="DECIMAL" property="price" />
<result column="score" jdbcType="INTEGER" property="score" />
<result column="buy_number" jdbcType="INTEGER" property="buyNumber" />
<result column="product_score" jdbcType="INTEGER" property="productScore" />
<result column="product_amount" jdbcType="DECIMAL" property="productAmount" />
<result column="comment_status" jdbcType="TINYINT" property="commentStatus" />
</resultMap>
<sql id="Base_Column_List">
order_product_id, order_id, product_number, name, pic_img, product_spec_number, product_spec_name,
price, score, buy_number, product_score, product_amount, comment_status
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from os_order_product
where order_product_id = #{orderProductId,jdbcType=BIGINT}
</select>
<select id="selectByOrderId" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from os_order_product
where order_id = #{orderId,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from os_order_product
where order_product_id = #{orderProductId,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.shop.po.OsOrderProduct">
insert into os_order_product (order_product_id, order_id, product_number,
name, pic_img, product_spec_number,
product_spec_name, price, score,
buy_number, product_score, product_amount,
comment_status)
values (#{orderProductId,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{productNumber,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR}, #{picImg,jdbcType=VARCHAR}, #{productSpecNumber,jdbcType=BIGINT},
#{productSpecName,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{score,jdbcType=INTEGER},
#{buyNumber,jdbcType=INTEGER}, #{productScore,jdbcType=INTEGER}, #{productAmount,jdbcType=DECIMAL},
#{commentStatus,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.shop.po.OsOrderProduct">
insert into os_order_product
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="orderProductId != null">
order_product_id,
</if>
<if test="orderId != null">
order_id,
后面还有 136 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。