package cn.estsh.i3plus.pojo.platform.repository;

import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.platform.bean.SysToolType;
import org.springframework.data.jpa.repository.Lock;
import org.springframework.data.jpa.repository.Query;

import javax.persistence.LockModeType;

/**
 * @Description : 设备类型
 * @Reference   :
 * @Author      : wei.peng
 * @Date        : 2018-10-22 12:03:01.486
 * @Modify      :
 **/
public interface SysToolTypeRepository extends BaseRepository<SysToolType, Long> {

    @Lock(LockModeType.PESSIMISTIC_WRITE)
    @Query(value = "from SysToolType where id = ?1")
    SysToolType getByIds(Long id);

}
