Authored by caoyan

物权转移

... ... @@ -373,7 +373,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{
}
@Override
public int applyToBeOwner(String tagId, String nfcUid, Integer uid) throws GatewayException {
public synchronized int applyToBeOwner(String tagId, String nfcUid, Integer uid) throws GatewayException {
IdentifyRecord identifyRecord = identifyRecordsMapper.selectByTagAndNfcId(tagId, nfcUid);//防止缓存更新失败
if(identifyRecord == null){
throw new GatewayException(402, "鉴定信息不存在");
... ...