Commit 331e2efe authored by tangwei's avatar tangwei

新增中间表数据

parent c6c65f5c
package com.yeejoin.amos.boot.module.jxiop.api.dto;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorFanAlarmInfoDto", description="")
public class MonitorFanAlarmInfoDto extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "风机编号")
private String fanNumber;
@ApiModelProperty(value = "告警描述")
private String eventDesciption;
@ApiModelProperty(value = "告警时间")
private LocalDateTime happendTime;
@ApiModelProperty(value = "告警值")
private String alarmValue;
}
package com.yeejoin.amos.boot.module.jxiop.api.dto;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorFanInfoDto", description="")
public class MonitorFanInfoDto extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "风机编号")
private String fanNumber;
@ApiModelProperty(value = "风机型号")
private String fanType;
@ApiModelProperty(value = "经度")
private Double longitude;
@ApiModelProperty(value = "纬度")
private Double latitude;
@ApiModelProperty(value = "运行状态")
private String runningState;
@ApiModelProperty(value = "所属场站")
private String belongStation;
}
package com.yeejoin.amos.boot.module.jxiop.api.dto;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorFanRealtimeMonitoringDto", description="")
public class MonitorFanRealtimeMonitoringDto extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "风机编号")
private String fanNumber;
@ApiModelProperty(value = "所属场站")
private String belongStation;
@ApiModelProperty(value = "风速")
private Double windSpeed;
@ApiModelProperty(value = "有功功率")
private Double activePower;
@ApiModelProperty(value = "电网频率")
private Integer lineFrequency;
@ApiModelProperty(value = "轮毂转速")
private Double hubSpeed;
@ApiModelProperty(value = "机舱温度")
private Double cabinTemperature;
@ApiModelProperty(value = "轮毂温度")
private Double hubTemperature;
@ApiModelProperty(value = "主轴承温度")
private Double mainBearingTemperature;
@ApiModelProperty(value = "发电机前轴承温度")
private Double genFrontBearingTemperature;
@ApiModelProperty(value = "发电机后轴承温度")
private Double genRearBearingTemperature;
@ApiModelProperty(value = "发电机绕组u1承温度")
private String u1Temperature;
@ApiModelProperty(value = "发电机绕组v1承温度")
private String v1Temperature;
@ApiModelProperty(value = "发电机绕组w1承温度")
private String w1Temernature;
}
package com.yeejoin.amos.boot.module.jxiop.api.dto;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorFanRealtimeRunningDto", description="")
public class MonitorFanRealtimeRunningDto extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "风机编号")
private String fanNumber;
@ApiModelProperty(value = "所属场站")
private String belongStation;
@ApiModelProperty(value = "电网平均电压")
private Double avgVoltageOfGrid;
@ApiModelProperty(value = "电网平均电流")
private Double gridAvgGrid;
@ApiModelProperty(value = "有功功率")
private Double activePower;
@ApiModelProperty(value = "无功功率")
private Double reactivePower;
@ApiModelProperty(value = "变频器网侧电流1")
private Double inverterGridSideCurrent1;
@ApiModelProperty(value = "变频器网侧电流2")
private Double inverterGridSideCurrent2;
@ApiModelProperty(value = "变频器网侧电流3")
private Double inverterGridSideCurrent3;
@ApiModelProperty(value = "风向绝对值")
private Double absValueOfWindDirection;
@ApiModelProperty(value = "叶片1角度")
private Double blade1Angle;
@ApiModelProperty(value = "叶片2角度")
private Double blade2Angle;
@ApiModelProperty(value = "叶片3角度")
private Double blade3Angle;
@ApiModelProperty(value = "偏航角度")
private Double yawAngle;
@ApiModelProperty(value = "偏航位置")
private Double yawLocation;
@ApiModelProperty(value = "日发电量")
private Double dailyPower;
@ApiModelProperty(value = "月发电量")
private Double monthlyPower;
@ApiModelProperty(value = "年发电量")
private Double annualPower;
@ApiModelProperty(value = "总发电量")
private Double totalPower;
}
package com.yeejoin.amos.boot.module.jxiop.api.dto;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import java.time.LocalTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorPowerInfoDto", description="")
public class MonitorPowerInfoDto extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "有功功率")
private Double activePower;
@ApiModelProperty(value = "风速")
private Double windSpeed;
@ApiModelProperty(value = "时间")
private LocalTime timeValue;
@ApiModelProperty(value = "所属场站")
private String belongStation;
}
package com.yeejoin.amos.boot.module.jxiop.api.dto;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorStationInfoDto", description="")
public class MonitorStationInfoDto extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "场站名称")
private String stationName;
@ApiModelProperty(value = "装机容量")
private Double stationInstallCapacity;
@ApiModelProperty(value = "辐照度")
private String irradiance;
@ApiModelProperty(value = "有功功率")
private String activePower;
@ApiModelProperty(value = "日发电量")
private String dayPower;
@ApiModelProperty(value = "月发电量")
private String montyPower;
@ApiModelProperty(value = "年度发电量")
private String yearPower;
@ApiModelProperty(value = "年利用小时数")
private Double yearActiveHours;
@ApiModelProperty(value = "所属区域")
private String belongArea;
@ApiModelProperty(value = "风机数量")
private Integer fanNumber;
@ApiModelProperty(value = "平均风速")
private Double windSpeedAvg;
@ApiModelProperty(value = "日利用小时数")
private Double dayActiveHours;
@ApiModelProperty(value = "场站类型")
private String stationType;
@ApiModelProperty(value = "所属省份")
private String belongPronvice;
}
package com.yeejoin.amos.boot.module.jxiop.api.entity;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorFanAlarmInfo对象", description="")
public class MonitorFanAlarmInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "风机编号")
private String fanNumber;
@ApiModelProperty(value = "告警描述")
private String eventDesciption;
@ApiModelProperty(value = "告警时间")
private LocalDateTime happendTime;
@ApiModelProperty(value = "告警值")
private String alarmValue;
}
package com.yeejoin.amos.boot.module.jxiop.api.entity;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorFanInfo对象", description="")
public class MonitorFanInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "风机编号")
private String fanNumber;
@ApiModelProperty(value = "风机型号")
private String fanType;
@ApiModelProperty(value = "经度")
private Double longitude;
@ApiModelProperty(value = "纬度")
private Double latitude;
@ApiModelProperty(value = "运行状态")
private String runningState;
@ApiModelProperty(value = "所属场站")
private String belongStation;
}
package com.yeejoin.amos.boot.module.jxiop.api.entity;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorFanRealtimeMonitoring对象", description="")
public class MonitorFanRealtimeMonitoring extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "风机编号")
private String fanNumber;
@ApiModelProperty(value = "所属场站")
private String belongStation;
@ApiModelProperty(value = "风速")
private Double windSpeed;
@ApiModelProperty(value = "有功功率")
private Double activePower;
@ApiModelProperty(value = "电网频率")
private Integer lineFrequency;
@ApiModelProperty(value = "轮毂转速")
private Double hubSpeed;
@ApiModelProperty(value = "机舱温度")
private Double cabinTemperature;
@ApiModelProperty(value = "轮毂温度")
private Double hubTemperature;
@ApiModelProperty(value = "主轴承温度")
private Double mainBearingTemperature;
@ApiModelProperty(value = "发电机前轴承温度")
private Double genFrontBearingTemperature;
@ApiModelProperty(value = "发电机后轴承温度")
private Double genRearBearingTemperature;
@ApiModelProperty(value = "发电机绕组u1承温度")
private String u1Temperature;
@ApiModelProperty(value = "发电机绕组v1承温度")
private String v1Temperature;
@ApiModelProperty(value = "发电机绕组w1承温度")
private String w1Temernature;
}
package com.yeejoin.amos.boot.module.jxiop.api.entity;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorFanRealtimeRunning对象", description="")
public class MonitorFanRealtimeRunning extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "风机编号")
private String fanNumber;
@ApiModelProperty(value = "所属场站")
private String belongStation;
@ApiModelProperty(value = "电网平均电压")
private Double avgVoltageOfGrid;
@ApiModelProperty(value = "电网平均电流")
private Double gridAvgGrid;
@ApiModelProperty(value = "有功功率")
private Double activePower;
@ApiModelProperty(value = "无功功率")
private Double reactivePower;
@ApiModelProperty(value = "变频器网侧电流1")
private Double inverterGridSideCurrent1;
@ApiModelProperty(value = "变频器网侧电流2")
private Double inverterGridSideCurrent2;
@ApiModelProperty(value = "变频器网侧电流3")
private Double inverterGridSideCurrent3;
@ApiModelProperty(value = "风向绝对值")
private Double absValueOfWindDirection;
@ApiModelProperty(value = "叶片1角度")
private Double blade1Angle;
@ApiModelProperty(value = "叶片2角度")
private Double blade2Angle;
@ApiModelProperty(value = "叶片3角度")
private Double blade3Angle;
@ApiModelProperty(value = "偏航角度")
private Double yawAngle;
@ApiModelProperty(value = "偏航位置")
private Double yawLocation;
@ApiModelProperty(value = "日发电量")
private Double dailyPower;
@ApiModelProperty(value = "月发电量")
private Double monthlyPower;
@ApiModelProperty(value = "年发电量")
private Double annualPower;
@ApiModelProperty(value = "总发电量")
private Double totalPower;
}
package com.yeejoin.amos.boot.module.jxiop.api.entity;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import java.time.LocalTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorPowerInfo对象", description="")
public class MonitorPowerInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "有功功率")
private Double activePower;
@ApiModelProperty(value = "风速")
private Double windSpeed;
@ApiModelProperty(value = "时间")
private LocalTime timeValue;
@ApiModelProperty(value = "所属场站")
private String belongStation;
}
package com.yeejoin.amos.boot.module.jxiop.api.entity;
import java.util.Date;
import com.yeejoin.amos.boot.biz.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="MonitorStationInfo对象", description="")
public class MonitorStationInfo extends BaseEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "ID")
private Long sequenceNbr;
private Date recDate;
private Long recUserId;
private Integer isDelete;
@ApiModelProperty(value = "场站名称")
private String stationName;
@ApiModelProperty(value = "装机容量")
private Double stationInstallCapacity;
@ApiModelProperty(value = "辐照度")
private String irradiance;
@ApiModelProperty(value = "有功功率")
private String activePower;
@ApiModelProperty(value = "日发电量")
private String dayPower;
@ApiModelProperty(value = "月发电量")
private String montyPower;
@ApiModelProperty(value = "年度发电量")
private String yearPower;
@ApiModelProperty(value = "年利用小时数")
private Double yearActiveHours;
@ApiModelProperty(value = "所属区域")
private String belongArea;
@ApiModelProperty(value = "风机数量")
private Integer fanNumber;
@ApiModelProperty(value = "平均风速")
private Double windSpeedAvg;
@ApiModelProperty(value = "日利用小时数")
private Double dayActiveHours;
@ApiModelProperty(value = "场站类型")
private String stationType;
@ApiModelProperty(value = "所属省份")
private String belongPronvice;
}
package com.yeejoin.amos.boot.module.jxiop.api.mapper;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanAlarmInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* Mapper 接口
*
* @author duanwei
* @date 2023-06-30
*/
public interface MonitorFanAlarmInfoMapper extends BaseMapper<MonitorFanAlarmInfo> {
}
package com.yeejoin.amos.boot.module.jxiop.api.mapper;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* Mapper 接口
*
* @author duanwei
* @date 2023-06-30
*/
public interface MonitorFanInfoMapper extends BaseMapper<MonitorFanInfo> {
}
package com.yeejoin.amos.boot.module.jxiop.api.mapper;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanRealtimeMonitoring;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* Mapper 接口
*
* @author duanwei
* @date 2023-06-30
*/
public interface MonitorFanRealtimeMonitoringMapper extends BaseMapper<MonitorFanRealtimeMonitoring> {
}
package com.yeejoin.amos.boot.module.jxiop.api.mapper;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanRealtimeRunning;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* Mapper 接口
*
* @author duanwei
* @date 2023-06-30
*/
public interface MonitorFanRealtimeRunningMapper extends BaseMapper<MonitorFanRealtimeRunning> {
}
package com.yeejoin.amos.boot.module.jxiop.api.mapper;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorPowerInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* Mapper 接口
*
* @author duanwei
* @date 2023-06-30
*/
public interface MonitorPowerInfoMapper extends BaseMapper<MonitorPowerInfo> {
}
package com.yeejoin.amos.boot.module.jxiop.api.mapper;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorStationInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* Mapper 接口
*
* @author duanwei
* @date 2023-06-30
*/
public interface MonitorStationInfoMapper extends BaseMapper<MonitorStationInfo> {
}
package com.yeejoin.amos.boot.module.jxiop.api.service;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanAlarmInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 服务类
*
* @author duanwei
* @date 2023-06-30
*/
public interface IMonitorFanAlarmInfoService extends IService<MonitorFanAlarmInfo> {
}
package com.yeejoin.amos.boot.module.jxiop.api.service;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 服务类
*
* @author duanwei
* @date 2023-06-30
*/
public interface IMonitorFanInfoService extends IService<MonitorFanInfo> {
}
package com.yeejoin.amos.boot.module.jxiop.api.service;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanRealtimeMonitoring;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 服务类
*
* @author duanwei
* @date 2023-06-30
*/
public interface IMonitorFanRealtimeMonitoringService extends IService<MonitorFanRealtimeMonitoring> {
}
package com.yeejoin.amos.boot.module.jxiop.api.service;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanRealtimeRunning;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 服务类
*
* @author duanwei
* @date 2023-06-30
*/
public interface IMonitorFanRealtimeRunningService extends IService<MonitorFanRealtimeRunning> {
}
package com.yeejoin.amos.boot.module.jxiop.api.service;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorPowerInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 服务类
*
* @author duanwei
* @date 2023-06-30
*/
public interface IMonitorPowerInfoService extends IService<MonitorPowerInfo> {
}
package com.yeejoin.amos.boot.module.jxiop.api.service;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorStationInfo;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 服务类
*
* @author duanwei
* @date 2023-06-30
*/
public interface IMonitorStationInfoService extends IService<MonitorStationInfo> {
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.jxiop.api.mapper.MonitorFanAlarmInfoMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.jxiop.api.mapper.MonitorFanInfoMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.jxiop.api.mapper.MonitorFanRealtimeMonitoringMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.jxiop.api.mapper.MonitorFanRealtimeRunningMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.jxiop.api.mapper.MonitorPowerInfoMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.yeejoin.amos.boot.module.jxiop.api.mapper.MonitorStationInfoMapper">
</mapper>
package com.yeejoin.amos.boot.module.jxiop.biz.controller;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorFanAlarmInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanAlarmInfo;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-fan-alarm-info", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorFanAlarmInfoController {
@Autowired
IMonitorFanAlarmInfoService iMonitorFanAlarmInfoService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorFanAlarmInfo(HttpServletRequest request, @RequestBody MonitorFanAlarmInfo monitorFanAlarmInfo){
return iMonitorFanAlarmInfoService.save(monitorFanAlarmInfo);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanAlarmInfoService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorFanAlarmInfo(HttpServletRequest request, @RequestBody MonitorFanAlarmInfo monitorFanAlarmInfo){
return iMonitorFanAlarmInfoService.updateById(monitorFanAlarmInfo);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorFanAlarmInfo selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanAlarmInfoService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorFanAlarmInfo> listPage(String pageNum,String pageSize,
MonitorFanAlarmInfo monitorFanAlarmInfo){
Page<MonitorFanAlarmInfo> pageBean;
QueryWrapper<MonitorFanAlarmInfo> monitorFanAlarmInfoQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorFanAlarmInfo> aClass = monitorFanAlarmInfo.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorFanAlarmInfo);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorFanAlarmInfo);
monitorFanAlarmInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorFanAlarmInfo);
monitorFanAlarmInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorFanAlarmInfo);
monitorFanAlarmInfoQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorFanAlarmInfo);
monitorFanAlarmInfoQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorFanAlarmInfo> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorFanAlarmInfoService.page(pageBean, monitorFanAlarmInfoQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.controller;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorFanInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanInfo;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-fan-info", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorFanInfoController {
@Autowired
IMonitorFanInfoService iMonitorFanInfoService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorFanInfo(HttpServletRequest request, @RequestBody MonitorFanInfo monitorFanInfo){
return iMonitorFanInfoService.save(monitorFanInfo);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanInfoService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorFanInfo(HttpServletRequest request, @RequestBody MonitorFanInfo monitorFanInfo){
return iMonitorFanInfoService.updateById(monitorFanInfo);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorFanInfo selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanInfoService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorFanInfo> listPage(String pageNum,String pageSize,
MonitorFanInfo monitorFanInfo){
Page<MonitorFanInfo> pageBean;
QueryWrapper<MonitorFanInfo> monitorFanInfoQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorFanInfo> aClass = monitorFanInfo.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorFanInfo);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorFanInfo);
monitorFanInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorFanInfo);
monitorFanInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorFanInfo);
monitorFanInfoQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorFanInfo);
monitorFanInfoQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorFanInfo> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorFanInfoService.page(pageBean, monitorFanInfoQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.controller;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorFanRealtimeMonitoringService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanRealtimeMonitoring;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-fan-realtime-monitoring", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorFanRealtimeMonitoringController {
@Autowired
IMonitorFanRealtimeMonitoringService iMonitorFanRealtimeMonitoringService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorFanRealtimeMonitoring(HttpServletRequest request, @RequestBody MonitorFanRealtimeMonitoring monitorFanRealtimeMonitoring){
return iMonitorFanRealtimeMonitoringService.save(monitorFanRealtimeMonitoring);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanRealtimeMonitoringService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorFanRealtimeMonitoring(HttpServletRequest request, @RequestBody MonitorFanRealtimeMonitoring monitorFanRealtimeMonitoring){
return iMonitorFanRealtimeMonitoringService.updateById(monitorFanRealtimeMonitoring);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorFanRealtimeMonitoring selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanRealtimeMonitoringService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorFanRealtimeMonitoring> listPage(String pageNum,String pageSize,
MonitorFanRealtimeMonitoring monitorFanRealtimeMonitoring){
Page<MonitorFanRealtimeMonitoring> pageBean;
QueryWrapper<MonitorFanRealtimeMonitoring> monitorFanRealtimeMonitoringQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorFanRealtimeMonitoring> aClass = monitorFanRealtimeMonitoring.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorFanRealtimeMonitoring);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorFanRealtimeMonitoring);
monitorFanRealtimeMonitoringQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorFanRealtimeMonitoring);
monitorFanRealtimeMonitoringQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorFanRealtimeMonitoring);
monitorFanRealtimeMonitoringQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorFanRealtimeMonitoring);
monitorFanRealtimeMonitoringQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorFanRealtimeMonitoring> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorFanRealtimeMonitoringService.page(pageBean, monitorFanRealtimeMonitoringQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.controller;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorFanRealtimeRunningService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanRealtimeRunning;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-fan-realtime-running", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorFanRealtimeRunningController {
@Autowired
IMonitorFanRealtimeRunningService iMonitorFanRealtimeRunningService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorFanRealtimeRunning(HttpServletRequest request, @RequestBody MonitorFanRealtimeRunning monitorFanRealtimeRunning){
return iMonitorFanRealtimeRunningService.save(monitorFanRealtimeRunning);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanRealtimeRunningService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorFanRealtimeRunning(HttpServletRequest request, @RequestBody MonitorFanRealtimeRunning monitorFanRealtimeRunning){
return iMonitorFanRealtimeRunningService.updateById(monitorFanRealtimeRunning);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorFanRealtimeRunning selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanRealtimeRunningService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorFanRealtimeRunning> listPage(String pageNum,String pageSize,
MonitorFanRealtimeRunning monitorFanRealtimeRunning){
Page<MonitorFanRealtimeRunning> pageBean;
QueryWrapper<MonitorFanRealtimeRunning> monitorFanRealtimeRunningQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorFanRealtimeRunning> aClass = monitorFanRealtimeRunning.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorFanRealtimeRunning);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorFanRealtimeRunning);
monitorFanRealtimeRunningQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorFanRealtimeRunning);
monitorFanRealtimeRunningQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorFanRealtimeRunning);
monitorFanRealtimeRunningQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorFanRealtimeRunning);
monitorFanRealtimeRunningQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorFanRealtimeRunning> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorFanRealtimeRunningService.page(pageBean, monitorFanRealtimeRunningQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.controller;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorPowerInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorPowerInfo;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-power-info", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorPowerInfoController {
@Autowired
IMonitorPowerInfoService iMonitorPowerInfoService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorPowerInfo(HttpServletRequest request, @RequestBody MonitorPowerInfo monitorPowerInfo){
return iMonitorPowerInfoService.save(monitorPowerInfo);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorPowerInfoService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorPowerInfo(HttpServletRequest request, @RequestBody MonitorPowerInfo monitorPowerInfo){
return iMonitorPowerInfoService.updateById(monitorPowerInfo);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorPowerInfo selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorPowerInfoService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorPowerInfo> listPage(String pageNum,String pageSize,
MonitorPowerInfo monitorPowerInfo){
Page<MonitorPowerInfo> pageBean;
QueryWrapper<MonitorPowerInfo> monitorPowerInfoQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorPowerInfo> aClass = monitorPowerInfo.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorPowerInfo);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorPowerInfo);
monitorPowerInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorPowerInfo);
monitorPowerInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorPowerInfo);
monitorPowerInfoQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorPowerInfo);
monitorPowerInfoQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorPowerInfo> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorPowerInfoService.page(pageBean, monitorPowerInfoQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.controller;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorStationInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorStationInfo;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-station-info", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorStationInfoController {
@Autowired
IMonitorStationInfoService iMonitorStationInfoService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorStationInfo(HttpServletRequest request, @RequestBody MonitorStationInfo monitorStationInfo){
return iMonitorStationInfoService.save(monitorStationInfo);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorStationInfoService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorStationInfo(HttpServletRequest request, @RequestBody MonitorStationInfo monitorStationInfo){
return iMonitorStationInfoService.updateById(monitorStationInfo);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorStationInfo selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorStationInfoService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorStationInfo> listPage(String pageNum,String pageSize,
MonitorStationInfo monitorStationInfo){
Page<MonitorStationInfo> pageBean;
QueryWrapper<MonitorStationInfo> monitorStationInfoQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorStationInfo> aClass = monitorStationInfo.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorStationInfo);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorStationInfo);
monitorStationInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorStationInfo);
monitorStationInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorStationInfo);
monitorStationInfoQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorStationInfo);
monitorStationInfoQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorStationInfo> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorStationInfoService.page(pageBean, monitorStationInfoQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import com.yeejoin.amos.boot.biz.common.utils.NameUtils;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorFanAlarmInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanAlarmInfo;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-fan-alarm-info", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorFanAlarmInfoController {
@Autowired
IMonitorFanAlarmInfoService iMonitorFanAlarmInfoService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorFanAlarmInfo(HttpServletRequest request, @RequestBody MonitorFanAlarmInfo monitorFanAlarmInfo){
return iMonitorFanAlarmInfoService.save(monitorFanAlarmInfo);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanAlarmInfoService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorFanAlarmInfo(HttpServletRequest request, @RequestBody MonitorFanAlarmInfo monitorFanAlarmInfo){
return iMonitorFanAlarmInfoService.updateById(monitorFanAlarmInfo);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorFanAlarmInfo selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanAlarmInfoService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorFanAlarmInfo> listPage(String pageNum,String pageSize,
MonitorFanAlarmInfo monitorFanAlarmInfo){
Page<MonitorFanAlarmInfo> pageBean;
QueryWrapper<MonitorFanAlarmInfo> monitorFanAlarmInfoQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorFanAlarmInfo> aClass = monitorFanAlarmInfo.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorFanAlarmInfo);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorFanAlarmInfo);
monitorFanAlarmInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorFanAlarmInfo);
monitorFanAlarmInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorFanAlarmInfo);
monitorFanAlarmInfoQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorFanAlarmInfo);
monitorFanAlarmInfoQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorFanAlarmInfo> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorFanAlarmInfoService.page(pageBean, monitorFanAlarmInfoQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import com.yeejoin.precontrol.common.entity.publics.CommonResponse;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorFanInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanInfo;
import com.yeejoin.precontrol.common.utils.NameUtils;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-fan-info", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorFanInfoController {
@Autowired
IMonitorFanInfoService iMonitorFanInfoService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorFanInfo(HttpServletRequest request, @RequestBody MonitorFanInfo monitorFanInfo){
return iMonitorFanInfoService.save(monitorFanInfo);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanInfoService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorFanInfo(HttpServletRequest request, @RequestBody MonitorFanInfo monitorFanInfo){
return iMonitorFanInfoService.updateById(monitorFanInfo);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorFanInfo selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanInfoService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorFanInfo> listPage(String pageNum,String pageSize,
MonitorFanInfo monitorFanInfo){
Page<MonitorFanInfo> pageBean;
QueryWrapper<MonitorFanInfo> monitorFanInfoQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorFanInfo> aClass = monitorFanInfo.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorFanInfo);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorFanInfo);
monitorFanInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorFanInfo);
monitorFanInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorFanInfo);
monitorFanInfoQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorFanInfo);
monitorFanInfoQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorFanInfo> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorFanInfoService.page(pageBean, monitorFanInfoQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import com.yeejoin.precontrol.common.entity.publics.CommonResponse;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorFanRealtimeMonitoringService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanRealtimeMonitoring;
import com.yeejoin.precontrol.common.utils.NameUtils;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-fan-realtime-monitoring", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorFanRealtimeMonitoringController {
@Autowired
IMonitorFanRealtimeMonitoringService iMonitorFanRealtimeMonitoringService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorFanRealtimeMonitoring(HttpServletRequest request, @RequestBody MonitorFanRealtimeMonitoring monitorFanRealtimeMonitoring){
return iMonitorFanRealtimeMonitoringService.save(monitorFanRealtimeMonitoring);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanRealtimeMonitoringService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorFanRealtimeMonitoring(HttpServletRequest request, @RequestBody MonitorFanRealtimeMonitoring monitorFanRealtimeMonitoring){
return iMonitorFanRealtimeMonitoringService.updateById(monitorFanRealtimeMonitoring);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorFanRealtimeMonitoring selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanRealtimeMonitoringService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorFanRealtimeMonitoring> listPage(String pageNum,String pageSize,
MonitorFanRealtimeMonitoring monitorFanRealtimeMonitoring){
Page<MonitorFanRealtimeMonitoring> pageBean;
QueryWrapper<MonitorFanRealtimeMonitoring> monitorFanRealtimeMonitoringQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorFanRealtimeMonitoring> aClass = monitorFanRealtimeMonitoring.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorFanRealtimeMonitoring);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorFanRealtimeMonitoring);
monitorFanRealtimeMonitoringQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorFanRealtimeMonitoring);
monitorFanRealtimeMonitoringQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorFanRealtimeMonitoring);
monitorFanRealtimeMonitoringQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorFanRealtimeMonitoring);
monitorFanRealtimeMonitoringQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorFanRealtimeMonitoring> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorFanRealtimeMonitoringService.page(pageBean, monitorFanRealtimeMonitoringQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import com.yeejoin.precontrol.common.entity.publics.CommonResponse;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorFanRealtimeRunningService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorFanRealtimeRunning;
import com.yeejoin.precontrol.common.utils.NameUtils;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-fan-realtime-running", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorFanRealtimeRunningController {
@Autowired
IMonitorFanRealtimeRunningService iMonitorFanRealtimeRunningService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorFanRealtimeRunning(HttpServletRequest request, @RequestBody MonitorFanRealtimeRunning monitorFanRealtimeRunning){
return iMonitorFanRealtimeRunningService.save(monitorFanRealtimeRunning);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanRealtimeRunningService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorFanRealtimeRunning(HttpServletRequest request, @RequestBody MonitorFanRealtimeRunning monitorFanRealtimeRunning){
return iMonitorFanRealtimeRunningService.updateById(monitorFanRealtimeRunning);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorFanRealtimeRunning selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorFanRealtimeRunningService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorFanRealtimeRunning> listPage(String pageNum,String pageSize,
MonitorFanRealtimeRunning monitorFanRealtimeRunning){
Page<MonitorFanRealtimeRunning> pageBean;
QueryWrapper<MonitorFanRealtimeRunning> monitorFanRealtimeRunningQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorFanRealtimeRunning> aClass = monitorFanRealtimeRunning.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorFanRealtimeRunning);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorFanRealtimeRunning);
monitorFanRealtimeRunningQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorFanRealtimeRunning);
monitorFanRealtimeRunningQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorFanRealtimeRunning);
monitorFanRealtimeRunningQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorFanRealtimeRunning);
monitorFanRealtimeRunningQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorFanRealtimeRunning> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorFanRealtimeRunningService.page(pageBean, monitorFanRealtimeRunningQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import com.yeejoin.precontrol.common.entity.publics.CommonResponse;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorPowerInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorPowerInfo;
import com.yeejoin.precontrol.common.utils.NameUtils;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-power-info", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorPowerInfoController {
@Autowired
IMonitorPowerInfoService iMonitorPowerInfoService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorPowerInfo(HttpServletRequest request, @RequestBody MonitorPowerInfo monitorPowerInfo){
return iMonitorPowerInfoService.save(monitorPowerInfo);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorPowerInfoService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorPowerInfo(HttpServletRequest request, @RequestBody MonitorPowerInfo monitorPowerInfo){
return iMonitorPowerInfoService.updateById(monitorPowerInfo);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorPowerInfo selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorPowerInfoService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorPowerInfo> listPage(String pageNum,String pageSize,
MonitorPowerInfo monitorPowerInfo){
Page<MonitorPowerInfo> pageBean;
QueryWrapper<MonitorPowerInfo> monitorPowerInfoQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorPowerInfo> aClass = monitorPowerInfo.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorPowerInfo);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorPowerInfo);
monitorPowerInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorPowerInfo);
monitorPowerInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorPowerInfo);
monitorPowerInfoQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorPowerInfo);
monitorPowerInfoQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorPowerInfo> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorPowerInfoService.page(pageBean, monitorPowerInfoQueryWrapper);
return page;
}
}
package com.yeejoin.amos.boot.module.jxiop.biz.service.impl;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.Api;
import com.yeejoin.precontrol.common.entity.publics.CommonResponse;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.RestController;
import com.yeejoin.amos.boot.module.jxiop.api.service.IMonitorStationInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yeejoin.amos.boot.module.jxiop.api.entity.MonitorStationInfo;
import com.yeejoin.precontrol.common.utils.NameUtils;
import java.lang.reflect.Field;
import java.util.Arrays;
/**
*
*
* @author duanwei
* @date 2023-06-30
*/
@RestController
@Api(tags = "Api")
@RequestMapping(value = "/monitor-station-info", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public class MonitorStationInfoController {
@Autowired
IMonitorStationInfoService iMonitorStationInfoService;
/**
* 新增
* @return
*/
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增", notes = "新增")
public boolean saveMonitorStationInfo(HttpServletRequest request, @RequestBody MonitorStationInfo monitorStationInfo){
return iMonitorStationInfoService.save(monitorStationInfo);
}
/**
* 根据id删除
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@ApiOperation(httpMethod = "DELETE", value = "根据id删除", notes = "根据id删除")
public boolean deleteById(HttpServletRequest request, @PathVariable Long id){
return iMonitorStationInfoService.removeById(id);
}
/**
* 修改
* @return
*/
@RequestMapping(value = "/updateById", method = RequestMethod.PUT)
@ApiOperation(httpMethod = "PUT", value = "修改", notes = "修改")
public boolean updateByIdMonitorStationInfo(HttpServletRequest request, @RequestBody MonitorStationInfo monitorStationInfo){
return iMonitorStationInfoService.updateById(monitorStationInfo);
}
/**
* 根据id查询
* @param id
* @return
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "根据id查询", notes = "根据id查询")
public MonitorStationInfo selectById(HttpServletRequest request, @PathVariable Long id){
return iMonitorStationInfoService.getById(id);
}
/**
* 列表分页查询
* @return
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "列表分页查询", notes = "列表分页查询")
public IPage<MonitorStationInfo> listPage(String pageNum,String pageSize,
MonitorStationInfo monitorStationInfo){
Page<MonitorStationInfo> pageBean;
QueryWrapper<MonitorStationInfo> monitorStationInfoQueryWrapper = new QueryWrapper<>();
Class<? extends MonitorStationInfo> aClass = monitorStationInfo.getClass();
Arrays.stream(aClass.getDeclaredFields()).forEach(field -> {
try {
field.setAccessible(true);
Object o = field.get(monitorStationInfo);
if (o != null) {
Class<?> type = field.getType();
String name = NameUtils.camel2Underline(field.getName());
if (type.equals(Integer.class)) {
Integer fileValue = (Integer) field.get(monitorStationInfo);
monitorStationInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(Long.class)) {
Long fileValue = (Long) field.get(monitorStationInfo);
monitorStationInfoQueryWrapper.eq(name, fileValue);
} else if (type.equals(String.class)) {
String fileValue = (String) field.get(monitorStationInfo);
monitorStationInfoQueryWrapper.eq(name, fileValue);
} else {
String fileValue = (String) field.get(monitorStationInfo);
monitorStationInfoQueryWrapper.eq(name, fileValue);
}
}
}catch (Exception e) {
}
});
IPage<MonitorStationInfo> page;
if (StringUtils.isBlank(pageNum) ||StringUtils.isBlank(pageSize)) {
pageBean = new Page<>(0, Long.MAX_VALUE);
}else{
pageBean = new Page<>(Integer.parseInt(pageNum), Integer.parseInt(pageSize));
}
page = iMonitorStationInfoService.page(pageBean, monitorStationInfoQueryWrapper);
return page;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment