src/com/shop/mapper/OsProductSpecificationMapper.xml
(开头部分) 9KB这里只显示每个文件的开头 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.OsProductSpecificationMapper">
<resultMap id="BaseResultMap" type="com.shop.po.OsProductSpecification">
<id column="product_spec_id" jdbcType="BIGINT" property="productSpecId"/>
<result column="product_spec_number" jdbcType="BIGINT" property="productSpecNumber"/>
<result column="product_id" jdbcType="BIGINT" property="productId"/>
<result column="spec" jdbcType="VARCHAR" property="spec"/>
<result column="stock" jdbcType="INTEGER" property="stock"/>
<result column="sales_volume" jdbcType="INTEGER" property="salesVolume"/>
<result column="price" jdbcType="DECIMAL" property="price"/>
<result column="score" jdbcType="INTEGER" property="score"/>
<result column="default_status" jdbcType="TINYINT" property="defaultStatus"/>
<result column="status" jdbcType="TINYINT" property="status"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
</resultMap>
<resultMap id="KindMap" type="com.shop.vo.KindVO">
<id column="specification_id" jdbcType="BIGINT" property="specificationId" />
<result column="category_id" jdbcType="BIGINT" property="categoryId" />
<result column="name" jdbcType="VARCHAR" property="name" />
<collection property="kindAttributes" ofType="com.shop.vo.KindAttribute">
<id column="spec_attr_id" jdbcType="BIGINT" property="specAttrId" />
<result column="specification_id" jdbcType="BIGINT" property="specificationId" />
<result column="aname" jdbcType="VARCHAR" property="name" />
</collection>
</resultMap>
<sql id="Base_Column_List">
product_spec_id, product_spec_number, product_id, spec, stock, sales_volume, price,
score, default_status, status, create_time, update_time
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from os_product_specification
where product_spec_id = #{productSpecId,jdbcType=BIGINT}
</select>
<select id="selectByProductSpecNumber" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from os_product_specification
where product_spec_number = #{productSpecNumber,jdbcType=BIGINT}
</select>
<select id="selectByProductNumber" parameterType="java.lang.Long" resultMap="BaseResultMap">
SELECT
ops.*
FROM
os_product_specification ops,
os_product op
WHERE
ops.product_id = op.product_id
AND op.product_number= #{productNumber,jdbcType=BIGINT}
</select>
<select id="selectByProductId" parameterType="java.lang.Long" resultMap="BaseResultMap">
SELECT
<include refid="Base_Column_List"/>
FROM
os_product_specification ops
后面还有 171 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。