|
|
<?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.yohoufo.dal.order.ProductSelfShelvesMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.ProductSelfShelves" >
|
|
|
<mapper namespace="com.yoho.product.dal.ProductSelfShelvesMapper" >
|
|
|
<resultMap id="BaseResultMap" type="com.yoho.product.model.ProductSelfShelves" >
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="brand" property="brand" jdbcType="VARCHAR" />
|
|
|
<result column="product_name" property="productName" jdbcType="VARCHAR" />
|
...
|
...
|
@@ -27,7 +27,7 @@ |
|
|
delete from product_self_shelves
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.yohoufo.dal.order.model.ProductSelfShelves" >
|
|
|
<insert id="insert" parameterType="com.yoho.product.model.ProductSelfShelves" >
|
|
|
insert into product_self_shelves (id, brand, product_name,
|
|
|
price, sale_time, product_code,
|
|
|
status, uid, create_time,
|
...
|
...
|
@@ -37,7 +37,7 @@ |
|
|
#{status,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER},
|
|
|
#{updateTime,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.yohoufo.dal.order.model.ProductSelfShelves" >
|
|
|
<insert id="insertSelective" parameterType="com.yoho.product.model.ProductSelfShelves" >
|
|
|
insert into product_self_shelves
|
|
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
<if test="id != null" >
|
...
|
...
|
@@ -104,7 +104,7 @@ |
|
|
</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yohoufo.dal.order.model.ProductSelfShelves" >
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.yoho.product.model.ProductSelfShelves" >
|
|
|
update product_self_shelves
|
|
|
<set >
|
|
|
<if test="brand != null" >
|
...
|
...
|
@@ -137,7 +137,7 @@ |
|
|
</set>
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.order.model.ProductSelfShelves" >
|
|
|
<update id="updateByPrimaryKey" parameterType="com.yoho.product.model.ProductSelfShelves" >
|
|
|
update product_self_shelves
|
|
|
set brand = #{brand,jdbcType=VARCHAR},
|
|
|
product_name = #{productName,jdbcType=VARCHAR},
|
...
|
...
|
|