ariesy 采集入库数据重复-加分布式锁

release
yefei 2 years ago
parent c3e63f6e17
commit fc604ad5d7
  1. 2
      dxhy-core/src/main/java/com/dxhy/core/job/service/impl/InvoiceInterfaceServiceImpl.java

@ -786,6 +786,8 @@ public class InvoiceInterfaceServiceImpl implements InvoiceInterfaceService {
}catch (Exception e) {
e.printStackTrace();
} finally {
//关锁
stringRedisTemplate.opsForValue().set(lockKey, String.valueOf(1));
lock.unlock();
}
}

Loading…
Cancel
Save