Authored by mali

先更新状态,后清理缓存

@@ -407,6 +407,8 @@ public class DepositServiceImpl implements DepositService { @@ -407,6 +407,8 @@ public class DepositServiceImpl implements DepositService {
407 } 407 }
408 408
409 public int changeStorageStatus(String depositCode, int status, int orderStatus, int uid) { 409 public int changeStorageStatus(String depositCode, int status, int orderStatus, int uid) {
  410 + int result = storageDepositMapper.updateStorageStatus(depositCode, status, orderStatus, DepositOutTypeEnum.OUTTYPE_FLASH_PURCHASE.getCode());
  411 +
410 try { 412 try {
411 ufoServiceCaller.call("ufo.deposit.clearOrderCache", uid, depositCode); // 清理库存详情缓存 413 ufoServiceCaller.call("ufo.deposit.clearOrderCache", uid, depositCode); // 清理库存详情缓存
412 414
@@ -415,7 +417,7 @@ public class DepositServiceImpl implements DepositService { @@ -415,7 +417,7 @@ public class DepositServiceImpl implements DepositService {
415 LOGGER.warn("clearOrderCache execute wrong, depositCode is {}", depositCode); 417 LOGGER.warn("clearOrderCache execute wrong, depositCode is {}", depositCode);
416 } 418 }
417 419
418 - return storageDepositMapper.updateStorageStatus(depositCode, status, orderStatus, DepositOutTypeEnum.OUTTYPE_FLASH_PURCHASE.getCode()); 420 + return result;
419 } 421 }
420 422
421 public void clearCache(Integer uid, Integer productId, Integer storageId) { 423 public void clearCache(Integer uid, Integer productId, Integer storageId) {