Showing
1 changed file
with
7 additions
and
7 deletions
@@ -338,11 +338,11 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ | @@ -338,11 +338,11 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ | ||
338 | public ProductIdentifyResp queryIdentifyInfoForPlatform(String tagId, String nfcUid) throws GatewayException { | 338 | public ProductIdentifyResp queryIdentifyInfoForPlatform(String tagId, String nfcUid) throws GatewayException { |
339 | logger.info("enter queryNewIdentifyInfo, tagId = {}, nfcUid={}", tagId, nfcUid); | 339 | logger.info("enter queryNewIdentifyInfo, tagId = {}, nfcUid={}", tagId, nfcUid); |
340 | //返回结果可能在缓存中 | 340 | //返回结果可能在缓存中 |
341 | - ProductIdentifyResp result = getNewIdentifyFromCache(tagId, nfcUid); | ||
342 | - if(result != null ){ | ||
343 | - logger.info("queryIdentifyInfoForPlatform get result from cache success! tagId = {}, nfcUid={}, result={} ", tagId, nfcUid, result); | ||
344 | - return result; | ||
345 | - } | 341 | +// ProductIdentifyResp result = getNewIdentifyFromCache(tagId, nfcUid); |
342 | +// if(result != null ){ | ||
343 | +// logger.info("queryIdentifyInfoForPlatform get result from cache success! tagId = {}, nfcUid={}, result={} ", tagId, nfcUid, result); | ||
344 | +// return result; | ||
345 | +// } | ||
346 | 346 | ||
347 | //1)鉴定 记录--先从缓存去取 | 347 | //1)鉴定 记录--先从缓存去取 |
348 | IdentifyRecord identifyRecord = queryIdentifyRecord(tagId, nfcUid); | 348 | IdentifyRecord identifyRecord = queryIdentifyRecord(tagId, nfcUid); |
@@ -359,7 +359,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ | @@ -359,7 +359,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ | ||
359 | } | 359 | } |
360 | 360 | ||
361 | //3)商品详细信息 | 361 | //3)商品详细信息 |
362 | - result = getOrderDetail(buyerOrder, identifyRecord, tagId); | 362 | + ProductIdentifyResp result = getOrderDetail(buyerOrder, identifyRecord, tagId); |
363 | 363 | ||
364 | //4)物权转移轨迹 | 364 | //4)物权转移轨迹 |
365 | List<IdentifyTrackResp> trackList = getTrackList(identifyRecord, result.getIdentifyPlat()); | 365 | List<IdentifyTrackResp> trackList = getTrackList(identifyRecord, result.getIdentifyPlat()); |
@@ -369,7 +369,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ | @@ -369,7 +369,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ | ||
369 | result.setCurrentOwner(trackList.get(trackList.size()-1).getContent()); | 369 | result.setCurrentOwner(trackList.get(trackList.size()-1).getContent()); |
370 | 370 | ||
371 | //设置缓存--可能会有延时,不影响的 | 371 | //设置缓存--可能会有延时,不影响的 |
372 | - setNewIdentifyCache(tagId, nfcUid, result); | 372 | +// setNewIdentifyCache(tagId, nfcUid, result); |
373 | 373 | ||
374 | logger.info("queryIdentifyInfoForPlatform success!, tagId = {}, nfcUid={}, result ={}", tagId, nfcUid, result ); | 374 | logger.info("queryIdentifyInfoForPlatform success!, tagId = {}, nfcUid={}, result ={}", tagId, nfcUid, result ); |
375 | return result; | 375 | return result; |
-
Please register or login to post a comment