package com.sf.mapper; import com.sf.entity.TbKey; import com.sf.entity.TbLock; public interface TbKeyMapper { /** * 通过钥匙的id获取钥匙的信息已经锁信息 */ TbKey getKeyWithLock(Integer id); /** * 方式2 多条sql * @param id * @return */ TbKey getKeyWithLock2(Integer id); /** * 通过钥匙id获取锁的信息 */ TbLock getTbLockTbLock(Integer lockId); }