Showing
1 changed file
with
13 additions
and
13 deletions
@@ -53,7 +53,7 @@ | @@ -53,7 +53,7 @@ | ||
53 | <select id="selectCountByStatusAndDepotNo" resultType="java.lang.Integer"> | 53 | <select id="selectCountByStatusAndDepotNo" resultType="java.lang.Integer"> |
54 | select count(1) | 54 | select count(1) |
55 | from storage_deposit | 55 | from storage_deposit |
56 | - where del_status=0 | 56 | + where del_status=0 AND deposit_type = 0 |
57 | <if test="status != null"> | 57 | <if test="status != null"> |
58 | and status = #{status} | 58 | and status = #{status} |
59 | </if> | 59 | </if> |
@@ -81,7 +81,7 @@ | @@ -81,7 +81,7 @@ | ||
81 | LEFT JOIN buyer_order b | 81 | LEFT JOIN buyer_order b |
82 | ON( b.order_code=a.order_code) | 82 | ON( b.order_code=a.order_code) |
83 | </if> | 83 | </if> |
84 | - where a.del_status=0 | 84 | + where a.del_status=0 AND deposit_type = 0 |
85 | <include refid="Query_Order_Sql" /> | 85 | <include refid="Query_Order_Sql" /> |
86 | <if test="storageDepositReq.status != null and storageDepositReq.status== 0"> | 86 | <if test="storageDepositReq.status != null and storageDepositReq.status== 0"> |
87 | order by b.create_time | 87 | order by b.create_time |
@@ -99,7 +99,7 @@ | @@ -99,7 +99,7 @@ | ||
99 | 99 | ||
100 | <select id="selectNeddRemindDeposit" resultMap="BaseResultMap"> | 100 | <select id="selectNeddRemindDeposit" resultMap="BaseResultMap"> |
101 | select <include refid="Base_Column_List"></include> | 101 | select <include refid="Base_Column_List"></include> |
102 | - from storage_deposit WHERE del_status = 0 and deposit_end_time <= #{curTime} and remind_status in | 102 | + from storage_deposit WHERE del_status = 0 AND deposit_type = 0 and deposit_end_time <= #{curTime} and remind_status in |
103 | <foreach collection="remindStatus" item="item" open="(" close=")" separator=","> | 103 | <foreach collection="remindStatus" item="item" open="(" close=")" separator=","> |
104 | #{item} | 104 | #{item} |
105 | </foreach> | 105 | </foreach> |
@@ -112,7 +112,7 @@ | @@ -112,7 +112,7 @@ | ||
112 | 112 | ||
113 | <select id="selectNeddDownDeposit" resultMap="BaseResultMap"> | 113 | <select id="selectNeddDownDeposit" resultMap="BaseResultMap"> |
114 | select <include refid="Base_Column_List"></include> | 114 | select <include refid="Base_Column_List"></include> |
115 | - from storage_deposit WHERE del_status = 0 and deposit_end_time <= #{curTime} AND status = 1 limit 500 | 115 | + from storage_deposit WHERE del_status = 0 AND deposit_type = 0 and deposit_end_time <= #{curTime} AND status = 1 limit 500 |
116 | </select> | 116 | </select> |
117 | 117 | ||
118 | <update id="updateStatus"> | 118 | <update id="updateStatus"> |
@@ -122,7 +122,7 @@ | @@ -122,7 +122,7 @@ | ||
122 | <select id="selectShelfCodeCnt" resultType="java.lang.Integer"> | 122 | <select id="selectShelfCodeCnt" resultType="java.lang.Integer"> |
123 | select count(distinct shelf_code) | 123 | select count(distinct shelf_code) |
124 | from storage_deposit | 124 | from storage_deposit |
125 | - where 1=1 and del_status=0 | 125 | + where 1=1 and del_status=0 AND deposit_type = 0 |
126 | <if test="status != null"> | 126 | <if test="status != null"> |
127 | and status = #{status} | 127 | and status = #{status} |
128 | </if> | 128 | </if> |
@@ -131,7 +131,7 @@ | @@ -131,7 +131,7 @@ | ||
131 | <select id="selectShelfCodeList" resultType="java.lang.String" parameterType="com.yoho.order.model.StorageDepositReq"> | 131 | <select id="selectShelfCodeList" resultType="java.lang.String" parameterType="com.yoho.order.model.StorageDepositReq"> |
132 | select distinct a.shelf_code | 132 | select distinct a.shelf_code |
133 | from storage_deposit a | 133 | from storage_deposit a |
134 | - where a.del_status=0 | 134 | + where a.del_status=0 AND deposit_type = 0 |
135 | <include refid="Query_Order_Sql" /> | 135 | <include refid="Query_Order_Sql" /> |
136 | order by a.order_no | 136 | order by a.order_no |
137 | <if test="storageDepositReq.start!=null and storageDepositReq.size != null"> | 137 | <if test="storageDepositReq.start!=null and storageDepositReq.size != null"> |
@@ -142,7 +142,7 @@ | @@ -142,7 +142,7 @@ | ||
142 | <select id="selectByShelfCodeList" resultMap="BaseResultMap"> | 142 | <select id="selectByShelfCodeList" resultMap="BaseResultMap"> |
143 | select <include refid="Base_Column_List"></include> | 143 | select <include refid="Base_Column_List"></include> |
144 | from storage_deposit | 144 | from storage_deposit |
145 | - where del_status=0 | 145 | + where del_status=0 AND deposit_type = 0 |
146 | <if test="list != null and list.size()>0"> | 146 | <if test="list != null and list.size()>0"> |
147 | and shelf_code in | 147 | and shelf_code in |
148 | <foreach collection="list" item="shelfCode" open="(" close=")" separator=","> | 148 | <foreach collection="list" item="shelfCode" open="(" close=")" separator=","> |
@@ -158,7 +158,7 @@ | @@ -158,7 +158,7 @@ | ||
158 | <select id="selectByDepositCodeList" resultMap="BaseResultMap"> | 158 | <select id="selectByDepositCodeList" resultMap="BaseResultMap"> |
159 | select <include refid="Base_Column_List"></include> | 159 | select <include refid="Base_Column_List"></include> |
160 | from storage_deposit | 160 | from storage_deposit |
161 | - where del_status=0 | 161 | + where del_status=0 AND deposit_type = 0 |
162 | <if test="list != null and list.size()>0"> | 162 | <if test="list != null and list.size()>0"> |
163 | and deposit_code in | 163 | and deposit_code in |
164 | <foreach collection="list" item="depositCode" open="(" close=")" separator=","> | 164 | <foreach collection="list" item="depositCode" open="(" close=")" separator=","> |
@@ -170,7 +170,7 @@ | @@ -170,7 +170,7 @@ | ||
170 | <select id="selectHistoryByDepositCodeList" resultMap="BaseResultMap"> | 170 | <select id="selectHistoryByDepositCodeList" resultMap="BaseResultMap"> |
171 | select <include refid="Base_Column_List"></include> | 171 | select <include refid="Base_Column_List"></include> |
172 | from storage_deposit | 172 | from storage_deposit |
173 | - where deposit_code in | 173 | + where deposit_type = 0 AND deposit_code in |
174 | <foreach collection="list" item="depositCode" open="(" close=")" separator=","> | 174 | <foreach collection="list" item="depositCode" open="(" close=")" separator=","> |
175 | #{depositCode} | 175 | #{depositCode} |
176 | </foreach> | 176 | </foreach> |
@@ -187,27 +187,27 @@ | @@ -187,27 +187,27 @@ | ||
187 | 187 | ||
188 | <select id="selectByOrderCode" resultMap="BaseResultMap"> | 188 | <select id="selectByOrderCode" resultMap="BaseResultMap"> |
189 | select <include refid="Base_Column_List"></include> | 189 | select <include refid="Base_Column_List"></include> |
190 | - from storage_deposit | 190 | + from storage_deposit AND deposit_type = 0 |
191 | where order_code=#{orderCode} and del_status=0 limit 1 | 191 | where order_code=#{orderCode} and del_status=0 limit 1 |
192 | </select> | 192 | </select> |
193 | 193 | ||
194 | <select id="selectByNewSkup" resultMap="BaseResultMap"> | 194 | <select id="selectByNewSkup" resultMap="BaseResultMap"> |
195 | select <include refid="Base_Column_List"></include> | 195 | select <include refid="Base_Column_List"></include> |
196 | from storage_deposit | 196 | from storage_deposit |
197 | - where new_skup=#{newSkup} limit 1 | 197 | + where new_skup=#{newSkup} AND deposit_type = 0 limit 1 |
198 | </select> | 198 | </select> |
199 | 199 | ||
200 | <select id="selectDepositList" resultMap="BaseResultMap"> | 200 | <select id="selectDepositList" resultMap="BaseResultMap"> |
201 | select <include refid="Base_Column_List"></include> | 201 | select <include refid="Base_Column_List"></include> |
202 | from storage_deposit | 202 | from storage_deposit |
203 | - where del_status = 0 | 203 | + where del_status = 0 AND deposit_type = 0 |
204 | <include refid="deposit_list_where"></include> | 204 | <include refid="deposit_list_where"></include> |
205 | order by id desc limit #{start},#{size} | 205 | order by id desc limit #{start},#{size} |
206 | </select> | 206 | </select> |
207 | <select id="selectDepositListCount" resultType="java.lang.Integer"> | 207 | <select id="selectDepositListCount" resultType="java.lang.Integer"> |
208 | select count(*) | 208 | select count(*) |
209 | from storage_deposit | 209 | from storage_deposit |
210 | - where del_status = 0 | 210 | + where del_status = 0 AND deposit_type = 0 |
211 | <include refid="deposit_list_where"></include> | 211 | <include refid="deposit_list_where"></include> |
212 | </select> | 212 | </select> |
213 | 213 |
-
Please register or login to post a comment