Showing
1 changed file
with
6 additions
and
5 deletions
@@ -2593,12 +2593,13 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | @@ -2593,12 +2593,13 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | ||
2593 | data = getZtWaybillCode(buyerOrder, sellerGoods, appraiseAddress, skup, req); | 2593 | data = getZtWaybillCode(buyerOrder, sellerGoods, appraiseAddress, skup, req); |
2594 | } | 2594 | } |
2595 | 2595 | ||
2596 | - StorageDeposit deposit = storageDepositMapper.selectByOrderCode(req.getOrderCode()); | 2596 | + if(data.getIntValue("code") == 200) { |
2597 | + StorageDeposit deposit = storageDepositMapper.selectByOrderCode(req.getOrderCode()); | ||
2598 | + data.put("region", sellerGoods.getRegion()); | ||
2599 | + data.put("depositCode", null == deposit ? "" : deposit.getDepositCode()); | ||
2600 | + yhValueOperations.set(getRedisKey(req.getOrderCode()), JSONObject.toJSONString(data), 168, TimeUnit.HOURS); //7天 | ||
2601 | + } | ||
2597 | 2602 | ||
2598 | - data.put("region", sellerGoods.getRegion()); | ||
2599 | - data.put("depositCode", null == deposit ? "" : deposit.getDepositCode()); | ||
2600 | - yhValueOperations.set(getRedisKey(req.getOrderCode()), JSONObject.toJSONString(data), 168, TimeUnit.HOURS); //7天 | ||
2601 | - | ||
2602 | return data; | 2603 | return data; |
2603 | } | 2604 | } |
2604 | 2605 |
-
Please register or login to post a comment