...
|
...
|
@@ -178,6 +178,10 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ |
|
|
|
|
|
public static final Integer MESSAGE_TYPE_APPLICANT = 4;//申请人
|
|
|
|
|
|
public static final int ALLOW_POP = 1;
|
|
|
|
|
|
public static final int NOT_ALLOW_POP = 0;
|
|
|
|
|
|
/**
|
|
|
* 鉴定结果查询接口
|
|
|
* @param tagId
|
...
|
...
|
@@ -355,11 +359,15 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ |
|
|
//5)设置当前物权所有人
|
|
|
result.setCurrentOwner(trackList.get(trackList.size()-1).getContent());
|
|
|
|
|
|
//设置是否弹窗
|
|
|
result.setAllowPop(identifyRecord.getAllowPop());
|
|
|
|
|
|
//设置缓存--可能会有延时,不影响的
|
|
|
setIdentifyCache(tagId, nfcUid, result);
|
|
|
|
|
|
//添加申请物权转移人信息
|
|
|
rebuildResult(result, tagId, nfcUid, uid);
|
|
|
|
|
|
logger.info("queryIdentifyInfo success!, tagId = {}, nfcUid={}, result ={}", tagId, nfcUid, result );
|
|
|
return result;
|
|
|
}
|
...
|
...
|
@@ -552,9 +560,13 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ |
|
|
boolean isOwner = queryIsOwner(tagId, nfcUid, uid);
|
|
|
result.setIfOwner(isOwner);
|
|
|
if(isOwner) {
|
|
|
if(result.getAllowPop() == ALLOW_POP) {
|
|
|
identifyRecordsMapper.updateAllowPop(tagId, nfcUid, NOT_ALLOW_POP);
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
result.setAllowPop(NOT_ALLOW_POP);//非主人不弹窗
|
|
|
//申请人申请状态
|
|
|
TransferRecordsHistory history = transferRecordsHistoryMapper.selectByToUid(tagId, nfcUid, null);
|
|
|
result.setApplyStatus(OPERATE_TYPE_NO_APPLY);
|
...
|
...
|
|