Authored by caoyan

物权转移

... ... @@ -338,11 +338,11 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{
public ProductIdentifyResp queryIdentifyInfoForPlatform(String tagId, String nfcUid) throws GatewayException {
logger.info("enter queryNewIdentifyInfo, tagId = {}, nfcUid={}", tagId, nfcUid);
//返回结果可能在缓存中
ProductIdentifyResp result = getNewIdentifyFromCache(tagId, nfcUid);
if(result != null ){
logger.info("queryIdentifyInfoForPlatform get result from cache success! tagId = {}, nfcUid={}, result={} ", tagId, nfcUid, result);
return result;
}
// ProductIdentifyResp result = getNewIdentifyFromCache(tagId, nfcUid);
// if(result != null ){
// logger.info("queryIdentifyInfoForPlatform get result from cache success! tagId = {}, nfcUid={}, result={} ", tagId, nfcUid, result);
// return result;
// }
//1)鉴定 记录--先从缓存去取
IdentifyRecord identifyRecord = queryIdentifyRecord(tagId, nfcUid);
... ... @@ -359,7 +359,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{
}
//3)商品详细信息
result = getOrderDetail(buyerOrder, identifyRecord, tagId);
ProductIdentifyResp result = getOrderDetail(buyerOrder, identifyRecord, tagId);
//4)物权转移轨迹
List<IdentifyTrackResp> trackList = getTrackList(identifyRecord, result.getIdentifyPlat());
... ... @@ -369,7 +369,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{
result.setCurrentOwner(trackList.get(trackList.size()-1).getContent());
//设置缓存--可能会有延时,不影响的
setNewIdentifyCache(tagId, nfcUid, result);
// setNewIdentifyCache(tagId, nfcUid, result);
logger.info("queryIdentifyInfoForPlatform success!, tagId = {}, nfcUid={}, result ={}", tagId, nfcUid, result );
return result;
... ...