|
@@ -3,6 +3,7 @@ |
|
@@ -3,6 +3,7 @@ |
3
|
<mapper namespace="com.yohoufo.dal.product.StoragePriceMapper">
|
3
|
<mapper namespace="com.yohoufo.dal.product.StoragePriceMapper">
|
4
|
<resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.StoragePrice">
|
4
|
<resultMap id="BaseResultMap" type="com.yohoufo.dal.product.model.StoragePrice">
|
5
|
<id column="id" jdbcType="INTEGER" property="id" />
|
5
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
|
6
|
+ <result column="skup" jdbcType="INTEGER" property="skup" />
|
6
|
<result column="product_id" jdbcType="INTEGER" property="productId" />
|
7
|
<result column="product_id" jdbcType="INTEGER" property="productId" />
|
7
|
<result column="goods_id" jdbcType="INTEGER" property="goodsId" />
|
8
|
<result column="goods_id" jdbcType="INTEGER" property="goodsId" />
|
8
|
<result column="storage_id" jdbcType="INTEGER" property="storageId" />
|
9
|
<result column="storage_id" jdbcType="INTEGER" property="storageId" />
|
|
@@ -18,18 +19,19 @@ |
|
@@ -18,18 +19,19 @@ |
18
|
where id = #{id,jdbcType=INTEGER}
|
19
|
where id = #{id,jdbcType=INTEGER}
|
19
|
</delete>
|
20
|
</delete>
|
20
|
<insert id="insert" parameterType="com.yohoufo.dal.product.model.StoragePrice">
|
21
|
<insert id="insert" parameterType="com.yohoufo.dal.product.model.StoragePrice">
|
21
|
- insert into storage_price (id, product_id, goods_id,
|
22
|
+ insert into storage_price (id, skup, product_id, goods_id,
|
22
|
storage_id, depot_num, seller_uid,
|
23
|
storage_id, depot_num, seller_uid,
|
23
|
price, status, update_time,
|
24
|
price, status, update_time,
|
24
|
create_time)
|
25
|
create_time)
|
25
|
- values (#{id,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER},
|
26
|
+ values (#{id,jdbcType=INTEGER}, #{skup,jdbcType=INTEGER}, #{productId,jdbcType=INTEGER}, #{goodsId,jdbcType=INTEGER},
|
26
|
#{storageId,jdbcType=INTEGER}, #{depotNum,jdbcType=INTEGER}, #{sellerUid,jdbcType=INTEGER},
|
27
|
#{storageId,jdbcType=INTEGER}, #{depotNum,jdbcType=INTEGER}, #{sellerUid,jdbcType=INTEGER},
|
27
|
#{price,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
|
28
|
#{price,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER},
|
28
|
#{createTime,jdbcType=INTEGER})
|
29
|
#{createTime,jdbcType=INTEGER})
|
29
|
</insert>
|
30
|
</insert>
|
30
|
<update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.StoragePrice">
|
31
|
<update id="updateByPrimaryKey" parameterType="com.yohoufo.dal.product.model.StoragePrice">
|
31
|
update storage_price
|
32
|
update storage_price
|
32
|
- set product_id = #{productId,jdbcType=INTEGER},
|
33
|
+ set skup = #{skup,jdbcType=INTEGER},
|
|
|
34
|
+ product_id = #{productId,jdbcType=INTEGER},
|
33
|
goods_id = #{goodsId,jdbcType=INTEGER},
|
35
|
goods_id = #{goodsId,jdbcType=INTEGER},
|
34
|
storage_id = #{storageId,jdbcType=INTEGER},
|
36
|
storage_id = #{storageId,jdbcType=INTEGER},
|
35
|
depot_num = #{depotNum,jdbcType=INTEGER},
|
37
|
depot_num = #{depotNum,jdbcType=INTEGER},
|
|
@@ -41,13 +43,13 @@ |
|
@@ -41,13 +43,13 @@ |
41
|
where id = #{id,jdbcType=INTEGER}
|
43
|
where id = #{id,jdbcType=INTEGER}
|
42
|
</update>
|
44
|
</update>
|
43
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
45
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
44
|
- select id, product_id, goods_id, storage_id, depot_num, seller_uid, price, status,
|
46
|
+ select id, skup, product_id, goods_id, storage_id, depot_num, seller_uid, price, status,
|
45
|
update_time, create_time
|
47
|
update_time, create_time
|
46
|
from storage_price
|
48
|
from storage_price
|
47
|
where id = #{id,jdbcType=INTEGER}
|
49
|
where id = #{id,jdbcType=INTEGER}
|
48
|
</select>
|
50
|
</select>
|
49
|
<select id="selectAll" resultMap="BaseResultMap">
|
51
|
<select id="selectAll" resultMap="BaseResultMap">
|
50
|
- select id, product_id, goods_id, storage_id, depot_num, seller_uid, price, status,
|
52
|
+ select id, skup, product_id, goods_id, storage_id, depot_num, seller_uid, price, status,
|
51
|
update_time, create_time
|
53
|
update_time, create_time
|
52
|
from storage_price
|
54
|
from storage_price
|
53
|
</select>
|
55
|
</select>
|