Merge branch 'hhk' into main
commit
dd0ddb6c04
@ -0,0 +1,17 @@
|
||||
package cn.iocoder.yudao.module.iot.controller.admin.device.config;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
|
||||
@Configuration
|
||||
public class TDengineConfig {
|
||||
|
||||
@Bean("tdengineJdbcTemplate")
|
||||
public JdbcTemplate tdengineJdbcTemplate(DataSource dataSource) {
|
||||
// 此处的dataSource会自动注入上面在yml中配置的TDengine数据源
|
||||
return new JdbcTemplate(dataSource);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package cn.iocoder.yudao.module.iot.controller.admin.device.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class LineDeviceRequestVO extends PageParam {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26404")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "产线编码")
|
||||
private String lineNode;
|
||||
|
||||
@Schema(description = "产线名称")
|
||||
private String lineName;
|
||||
|
||||
@Schema(description = "设备编码")
|
||||
private String deviceCode;
|
||||
|
||||
@Schema(description = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
@Schema(description = "状态 1-在线 2-离线")
|
||||
private String status;
|
||||
|
||||
@Schema(description = "采集时间")
|
||||
private LocalDateTime collectionTime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
package cn.iocoder.yudao.module.iot.controller.admin.device.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
|
||||
@Schema(description = "管理后台 - 产线设备分页返回 Resq VO")
|
||||
@Data
|
||||
public class LineDeviceRespVO {
|
||||
|
||||
@Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "26404")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "产线编码")
|
||||
private String lineNode;
|
||||
|
||||
@Schema(description = "产线名称")
|
||||
private String lineName;
|
||||
|
||||
@Schema(description = "设备编码")
|
||||
private String deviceCode;
|
||||
|
||||
@Schema(description = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
@Schema(description = "状态 1-在线 2-离线")
|
||||
private String status;
|
||||
|
||||
@Schema(description = "采集时间")
|
||||
private LocalDateTime collectionTime;
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue