Showing
1 changed file
with
1 additions
and
1 deletions
@@ -373,7 +373,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ | @@ -373,7 +373,7 @@ public class ProductIdentifyServiceImpl implements ProductIdentifyService{ | ||
373 | } | 373 | } |
374 | 374 | ||
375 | @Override | 375 | @Override |
376 | - public int applyToBeOwner(String tagId, String nfcUid, Integer uid) throws GatewayException { | 376 | + public synchronized int applyToBeOwner(String tagId, String nfcUid, Integer uid) throws GatewayException { |
377 | IdentifyRecord identifyRecord = identifyRecordsMapper.selectByTagAndNfcId(tagId, nfcUid);//防止缓存更新失败 | 377 | IdentifyRecord identifyRecord = identifyRecordsMapper.selectByTagAndNfcId(tagId, nfcUid);//防止缓存更新失败 |
378 | if(identifyRecord == null){ | 378 | if(identifyRecord == null){ |
379 | throw new GatewayException(402, "鉴定信息不存在"); | 379 | throw new GatewayException(402, "鉴定信息不存在"); |
-
Please register or login to post a comment