Showing
5 changed files
with
8 additions
and
4 deletions
@@ -51,7 +51,7 @@ public interface StorageDepositMapper { | @@ -51,7 +51,7 @@ public interface StorageDepositMapper { | ||
51 | StorageDeposit selectByDepositCode(@Param("uid") int uid, @Param("depositCode")String depositCode, @Param("statusList")List<Integer> statusList); | 51 | StorageDeposit selectByDepositCode(@Param("uid") int uid, @Param("depositCode")String depositCode, @Param("statusList")List<Integer> statusList); |
52 | 52 | ||
53 | List<StorageDeposit> getDepositOffs(@Param("uid") Integer uid, @Param("storageId") Integer storageId, @Param("count") Integer count); | 53 | List<StorageDeposit> getDepositOffs(@Param("uid") Integer uid, @Param("storageId") Integer storageId, @Param("count") Integer count); |
54 | - int updateStorageStatus(@Param("depositCode")String depositCode, @Param("status")int status, @Param("orderStatus")int orderStatus); | 54 | + int updateStorageStatus(@Param("depositCode")String depositCode, @Param("status")int status, @Param("orderStatus")int orderStatus,@Param("outType")Integer outType); |
55 | 55 | ||
56 | int getUserDepositCount(@Param("uid") Integer uid); | 56 | int getUserDepositCount(@Param("uid") Integer uid); |
57 | 57 |
@@ -347,6 +347,9 @@ | @@ -347,6 +347,9 @@ | ||
347 | <update id="updateStorageStatus"> | 347 | <update id="updateStorageStatus"> |
348 | update storage_deposit | 348 | update storage_deposit |
349 | set status = #{status,jdbcType=INTEGER} ,update_time = unix_timestamp(now()) | 349 | set status = #{status,jdbcType=INTEGER} ,update_time = unix_timestamp(now()) |
350 | + <if test="outType != null" > | ||
351 | + , out_type = #{outType} | ||
352 | + </if> | ||
350 | where deposit_code = #{depositCode,jdbcType=VARCHAR} AND del_status = 0 AND order_status = #{orderStatus,jdbcType=INTEGER} | 353 | where deposit_code = #{depositCode,jdbcType=VARCHAR} AND del_status = 0 AND order_status = #{orderStatus,jdbcType=INTEGER} |
351 | </update> | 354 | </update> |
352 | 355 |
@@ -44,7 +44,7 @@ public class DepositFinishDeliveryDelayMsgConsumer implements YhConsumer { | @@ -44,7 +44,7 @@ public class DepositFinishDeliveryDelayMsgConsumer implements YhConsumer { | ||
44 | } | 44 | } |
45 | 45 | ||
46 | //更新寄存状态为已完成 | 46 | //更新寄存状态为已完成 |
47 | - storageDepositMapper.updateStorageStatus(deposit.getDepositCode(), StorageDepositStatusEnum.HAS_END.getCode(), OrderStatus.WAITING_PAY.getCode()); | 47 | + storageDepositMapper.updateStorageStatus(deposit.getDepositCode(), StorageDepositStatusEnum.HAS_END.getCode(), OrderStatus.WAITING_PAY.getCode(), null); |
48 | 48 | ||
49 | } | 49 | } |
50 | } | 50 | } |
@@ -267,7 +267,7 @@ public class AppraiseService { | @@ -267,7 +267,7 @@ public class AppraiseService { | ||
267 | return; | 267 | return; |
268 | } | 268 | } |
269 | 269 | ||
270 | - int num = storageDepositMapper.updateStorageStatus(deposit.getDepositCode(), StorageDepositStatusEnum.HAS_OUT.getCode(), OrderStatus.WAITING_PAY.getCode()); | 270 | + int num = storageDepositMapper.updateStorageStatus(deposit.getDepositCode(), StorageDepositStatusEnum.HAS_OUT.getCode(), OrderStatus.WAITING_PAY.getCode(), null); |
271 | if(num > 0) { | 271 | if(num > 0) { |
272 | //发mq,延迟30天设置状态为已完成 | 272 | //发mq,延迟30天设置状态为已完成 |
273 | LOGGER.info("start send storageDeposit mq,topic is {}, depositCode is {}", TopicConstants.DEPOSIT_FINISH_DELIVERY, deposit.getDepositCode()); | 273 | LOGGER.info("start send storageDeposit mq,topic is {}, depositCode is {}", TopicConstants.DEPOSIT_FINISH_DELIVERY, deposit.getDepositCode()); |
@@ -5,6 +5,7 @@ import com.yohobuy.ufo.model.order.bo.ButtonShowBo; | @@ -5,6 +5,7 @@ import com.yohobuy.ufo.model.order.bo.ButtonShowBo; | ||
5 | import com.yohobuy.ufo.model.order.bo.DepositDetailBo; | 5 | import com.yohobuy.ufo.model.order.bo.DepositDetailBo; |
6 | import com.yohobuy.ufo.model.order.bo.DepositProductBo; | 6 | import com.yohobuy.ufo.model.order.bo.DepositProductBo; |
7 | import com.yohobuy.ufo.model.order.constants.DepositOrderStatusEnum; | 7 | import com.yohobuy.ufo.model.order.constants.DepositOrderStatusEnum; |
8 | +import com.yohobuy.ufo.model.order.constants.DepositOutTypeEnum; | ||
8 | import com.yohobuy.ufo.model.order.constants.StorageDepositStatusEnum; | 9 | import com.yohobuy.ufo.model.order.constants.StorageDepositStatusEnum; |
9 | import com.yohobuy.ufo.model.order.resp.PageResp; | 10 | import com.yohobuy.ufo.model.order.resp.PageResp; |
10 | import com.yohoufo.common.ApiResponse; | 11 | import com.yohoufo.common.ApiResponse; |
@@ -316,7 +317,7 @@ public class DepositServiceImpl implements DepositService { | @@ -316,7 +317,7 @@ public class DepositServiceImpl implements DepositService { | ||
316 | LOGGER.warn("clearOrderCache execute wrong, depositCode is {}", depositCode); | 317 | LOGGER.warn("clearOrderCache execute wrong, depositCode is {}", depositCode); |
317 | } | 318 | } |
318 | 319 | ||
319 | - return storageDepositMapper.updateStorageStatus(depositCode, status, orderStatus); | 320 | + return storageDepositMapper.updateStorageStatus(depositCode, status, orderStatus, DepositOutTypeEnum.OUTTYPE_FLASH_PURCHASE.getCode()); |
320 | } | 321 | } |
321 | 322 | ||
322 | public void clearCache(Integer uid, Integer productId, Integer storageId) { | 323 | public void clearCache(Integer uid, Integer productId, Integer storageId) { |
-
Please register or login to post a comment