FaceDeviceDao.java 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.yx.face.dao;
  2. import com.yx.face.boot.component.tk.TKMapper;
  3. import com.yx.face.model.entity.FaceDevice;
  4. import com.yx.face.model.vo.FaceDeviceVO;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * @description: 人脸设备信息表(FaceDevice)表数据库访问层 <br>
  10. * @author: PWB <br>
  11. * @since: 1.0 <br>
  12. * @date: 2021-06-04 14:25:45 <br>
  13. */
  14. public interface FaceDeviceDao extends TKMapper<FaceDevice> {
  15. Integer getIdBySn(@Param("sn") String sn);
  16. Integer getAdminIdBySn(@Param("sn") String sn);
  17. FaceDevice getFaceDeviceBySn(@Param("sn") String sn);
  18. List<FaceDeviceVO> getFaceDevices(Map<String,Object> map);
  19. List<FaceDevice> getSnList(@Param("adminId") Integer adminId);
  20. List<FaceDeviceVO> getFaceDeviceList(Map<String, Object> map);
  21. List<String> selectList(@Param("adminId") Integer adminId);
  22. String getFaceDeviceOne(@Param("sn") String sn);
  23. List<String> selectListNo(@Param("adminId") Integer adminId);
  24. Integer selectAdminId(@Param("sn") String sn);
  25. /**
  26. *
  27. * @param type 类型 1 全量 2 账号 3 sn
  28. * @param sn sn码
  29. * @param provinceId //leixng
  30. * @param adminId 账号id
  31. * @return
  32. */
  33. List<FaceDevice> selectSnList(@Param("type") Integer type, @Param("sn") String sn, @Param("provinceId") Integer provinceId, @Param("adminId") Integer adminId);
  34. Integer update(@Param("sn") String sn, @Param("type") int type, @Param("adminId") Integer adminId);
  35. List<FaceDevice> selectTypeFaceDev(@Param("type") int type);
  36. Integer updateStatus(@Param("sn") String sn, @Param("type") int type, @Param("adminId") Integer adminId);
  37. List<FaceDeviceVO> getBySnList(List<String> snList);
  38. }