PeopleDeviceMapper.java 615 B

12345678910111213141516171819202122
  1. package com.supervision.web.peopleGateManage.mapper;
  2. import com.supervision.web.peopleGateManage.enity.PeopleDevice;
  3. import org.apache.ibatis.annotations.Mapper;
  4. import org.apache.ibatis.annotations.Param;
  5. import java.util.List;
  6. @Mapper
  7. public interface PeopleDeviceMapper {
  8. int insert(PeopleDevice peopleDevice);
  9. int delete(@Param("personId") String personId, @Param("deviceId") Long deviceId);
  10. List<Long> selectDevicesByPerson(@Param("personId") String personId);
  11. List<String> selectPersonsByDevice(@Param("deviceId") Long deviceId);
  12. void insertRelation(PeopleDevice peopleDevice);
  13. }