whyclxw
2025-03-25 a7fef2846505b08e0711345b17902e7381612d23
src/main/java/com/whyc/mapper/LockInfMapper.java
@@ -1,6 +1,25 @@
package com.whyc.mapper;
import com.whyc.pojo.db_area.LockInf;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface LockInfMapper extends CustomMapper<LockInf>{
    //获取当前最大的锁
    int getMaxLockId();
    //获取当前最大的锁
    List<LockInf> getAllLockInf(String lockName, Integer lockType, Integer lockState,List<Integer> areaList);
    //查看区域下所有的锁
    List<LockInf> selectAllLockById(@Param("areaList") List<Integer> areaList);
    //根据锁的lockIds查询锁的记录
    List<LockInf> selectlinfByLockIds(@Param("lockIds") List<Integer> lockIds);
    //实时获取获取区域下所有锁的状态
    List<LockInf> getRealLock(@Param("areaList")  List<Integer> areaList);
    LockInf getlinfBylockId(Integer lockId);
}