class VenRequestCountService {

    @Transactional
    public Long getAndIncrease(String venId) {
        VenRequestCount findOneAndLock = dao.findOneAndLock(venId);
        long count = 0L;
        if (findOneAndLock == null) {
            findOneAndLock = new VenRequestCount(venId);
        } else {
            count = findOneAndLock.getRequestCount();
        }
        findOneAndLock.setRequestCount(count + 1);
        dao.save(findOneAndLock);
        return count;
    }

}