DeviceMapper.java 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package com.bizmatics.persistence.mapper;
  2. import com.bizmatics.model.Device;
  3. import com.bizmatics.common.mvc.base.CrudMapper;
  4. import com.bizmatics.model.DeviceList;
  5. import com.bizmatics.model.vo.CorrespondDeviceVO;
  6. import org.apache.ibatis.annotations.Param;
  7. import org.springframework.stereotype.Repository;
  8. import java.util.Date;
  9. import java.util.List;
  10. /**
  11. * <p>
  12. * Mapper 接口
  13. * </p>
  14. *
  15. * @author ya
  16. * @since 2021-07-07
  17. */
  18. @Repository
  19. public interface DeviceMapper extends CrudMapper<Device> {
  20. /**
  21. * 根据条件查询总数
  22. * @param userId
  23. * @param siteId
  24. * @param deviceStatus
  25. * @return
  26. */
  27. int selectCount(@Param("userId") Integer userId,
  28. @Param("siteId") Integer siteId,
  29. @Param("deviceStatus") Integer deviceStatus,
  30. @Param("startTime") Date startTime,
  31. @Param("endTime") Date endTime,
  32. @Param("type") String type);
  33. List<Device> list(@Param("userId") Integer userId,
  34. @Param("siteId") Integer siteId,
  35. @Param("deviceStatus") Integer deviceStatus,
  36. @Param("startTime") Date startTime,
  37. @Param("endTime") Date endTime,
  38. @Param("type") String type);
  39. List<DeviceList> DeviceList(@Param("siteId") Integer siteId);
  40. List<CorrespondDeviceVO> CorrespondDeviceList(@Param("deviceName") String deviceName,
  41. @Param("startCurrent") Integer startCurrent,
  42. @Param("size") Integer size);
  43. }