Authored by caoyan

寄存

@@ -18,20 +18,21 @@ @@ -18,20 +18,21 @@
18 <result column="deposit_start_time" property="depositStartTime" jdbcType="INTEGER" /> 18 <result column="deposit_start_time" property="depositStartTime" jdbcType="INTEGER" />
19 <result column="deposit_end_time" property="depositEndTime" jdbcType="INTEGER" /> 19 <result column="deposit_end_time" property="depositEndTime" jdbcType="INTEGER" />
20 <result column="edit_pid" property="editPid" jdbcType="INTEGER" /> 20 <result column="edit_pid" property="editPid" jdbcType="INTEGER" />
  21 + <result column="out_type" property="outType" jdbcType="INTEGER" />
21 </resultMap> 22 </resultMap>
22 23
23 <sql id="Base_Column_List"> 24 <sql id="Base_Column_List">
24 id, product_id, goods_id, storage_id, deposit_code, shelf_code, owner_uid, order_code, 25 id, product_id, goods_id, storage_id, deposit_code, shelf_code, owner_uid, order_code,
25 skup, status, order_status, update_time, create_time, deposit_start_time, 26 skup, status, order_status, update_time, create_time, deposit_start_time,
26 - deposit_end_time, edit_pid 27 + deposit_end_time, edit_pid, out_type
27 </sql> 28 </sql>
28 29
29 - <insert id="insert" parameterType="com.yoho.product.model.StorageDeposit"> 30 + <insert id="insert" parameterType="com.yoho.order.model.StorageDeposit">
30 insert into storage_deposit(id, product_id, goods_id, storage_id, deposit_code, shelf_code, owner_uid, order_code, 31 insert into storage_deposit(id, product_id, goods_id, storage_id, deposit_code, shelf_code, owner_uid, order_code,
31 skup, status, order_status, update_time, create_time, deposit_start_time, 32 skup, status, order_status, update_time, create_time, deposit_start_time,
32 - deposit_end_time, edit_pid) 33 + deposit_end_time, edit_pid, out_type)
33 values (#{id}, #{productId}, #{goodsId}, #{storageId}, #{depositCode}, #{shelfCode}, #{ownerUid}, #{orderCode}, 34 values (#{id}, #{productId}, #{goodsId}, #{storageId}, #{depositCode}, #{shelfCode}, #{ownerUid}, #{orderCode},
34 - #{skup}, #{status}, #{orderStatus}, #{updateTime}, #{createTime}, #{depositStartTime}, #{depositEndTime}, #{editPid}) 35 + #{skup}, #{status}, #{orderStatus}, #{updateTime}, #{createTime}, #{depositStartTime}, #{depositEndTime}, #{editPid}, #{outType})
35 </insert> 36 </insert>
36 37
37 <select id="bindShelfCode" resultType="java.lang.Integer"> 38 <select id="bindShelfCode" resultType="java.lang.Integer">
@@ -67,6 +68,9 @@ @@ -67,6 +68,9 @@
67 #{status} 68 #{status}
68 </foreach> 69 </foreach>
69 </if> 70 </if>
  71 + <if test="storageDepositReq.status != null">
  72 + and a.status = #{storageDepositReq.status}
  73 + </if>
70 <if test="storageDepositReq.depositCode != null and storageDepositReq.depositCode != '' "> 74 <if test="storageDepositReq.depositCode != null and storageDepositReq.depositCode != '' ">
71 and a.deposit_code = #{storageDepositReq.depositCode} 75 and a.deposit_code = #{storageDepositReq.depositCode}
72 </if> 76 </if>
@@ -75,7 +79,7 @@ @@ -75,7 +79,7 @@
75 </if> 79 </if>
76 </sql> 80 </sql>
77 81
78 - <select id="selectByCondition" resultMap="BaseResultMap" parameterType="com.yoho.product.model.StorageDepositReq"> 82 + <select id="selectByCondition" resultMap="BaseResultMap" parameterType="com.yoho.order.model.StorageDepositReq">
79 select a.* 83 select a.*
80 from storage_deposit a 84 from storage_deposit a
81 <if test="storageDepositReq.depotNo != null"> 85 <if test="storageDepositReq.depotNo != null">