CloudBaseDataSyncDao.java 1.1 KB

123456789101112131415161718192021222324252627282930
  1. package com.xcgl.cloud.dao;
  2. import java.util.List;
  3. import org.jeecgframework.minidao.annotation.MiniDao;
  4. import org.jeecgframework.minidao.annotation.Param;
  5. import org.jeecgframework.minidao.annotation.Sql;
  6. import org.springframework.stereotype.Repository;
  7. import com.xcgl.device.entity.DeviceEntity;
  8. import com.xcgl.devicetype.entity.DeviceTypeEntity;
  9. import com.xcgl.sensormonitorpoint.entity.SensorMonitorPointEntity;
  10. import com.xcgl.sensortype.entity.SensorTypeEntity;
  11. @Repository
  12. @MiniDao
  13. public interface CloudBaseDataSyncDao {
  14. // id,type_code, type_name, description, icon, system_abbreviate, state
  15. @Sql("select * from p_device_type ")
  16. public List<DeviceTypeEntity> getAllDevicetype();
  17. @Sql("select * from p_sensor_type ")
  18. public List<SensorTypeEntity> getAllSensortype();
  19. @Sql("select * from p_device where projectid = :pid ")
  20. public List<DeviceEntity> getDevicebyProject(@Param("pid") String pid);
  21. @Sql("select * from p_sensor_monitor_point where projectid = :pid ")
  22. public List<SensorMonitorPointEntity> getSensorbyProject(@Param("pid") String pid);
  23. }