设备信息接口
This commit is contained in:
parent
eea03062dd
commit
8713323b4f
@ -0,0 +1,89 @@
|
|||||||
|
package com.fastbee.deviceInfo.domain;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.fastbee.common.annotation.Excel;
|
||||||
|
import com.fastbee.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 气象设备基础信息对象 iot_device_information_meteorology
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@ApiModel(value = "DeviceInformationMeteorology",description = "气象设备基础信息 iot_device_information_meteorology")
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class DeviceInformationMeteorology extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Excel(name = "名称")
|
||||||
|
@ApiModelProperty("名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 设备品牌 */
|
||||||
|
@Excel(name = "设备品牌")
|
||||||
|
@ApiModelProperty("设备品牌")
|
||||||
|
private String deviceBrand;
|
||||||
|
|
||||||
|
/** 设备型号 */
|
||||||
|
@Excel(name = "设备型号")
|
||||||
|
@ApiModelProperty("设备型号")
|
||||||
|
private String deviceType;
|
||||||
|
|
||||||
|
/** 设备编码 */
|
||||||
|
@Excel(name = "设备编码")
|
||||||
|
@ApiModelProperty("设备编码")
|
||||||
|
private String deviceEncoding;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
@Excel(name = "类型")
|
||||||
|
@ApiModelProperty("类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Excel(name = "经度")
|
||||||
|
@ApiModelProperty("经度")
|
||||||
|
private String longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Excel(name = "纬度")
|
||||||
|
@ApiModelProperty("纬度")
|
||||||
|
private String latitude;
|
||||||
|
|
||||||
|
/** 安装位置 */
|
||||||
|
@Excel(name = "安装位置")
|
||||||
|
@ApiModelProperty("安装位置")
|
||||||
|
private String installationLocation;
|
||||||
|
|
||||||
|
/** 项目的名称 */
|
||||||
|
@Excel(name = "项目的名称")
|
||||||
|
@ApiModelProperty("项目的名称")
|
||||||
|
private String nameProject;
|
||||||
|
|
||||||
|
/** 建设年度 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "建设年度", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@ApiModelProperty("建设年度")
|
||||||
|
private Date constructionYear;
|
||||||
|
|
||||||
|
/** 对接方式 */
|
||||||
|
@Excel(name = "对接方式")
|
||||||
|
@ApiModelProperty("对接方式")
|
||||||
|
private String dockingMethod;
|
||||||
|
|
||||||
|
/** 删除标志(0代表存在,2代表删除) */
|
||||||
|
private Integer delFlag;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,89 @@
|
|||||||
|
package com.fastbee.deviceInfo.domain;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.fastbee.common.annotation.Excel;
|
||||||
|
import com.fastbee.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 苗情设备基础信息对象 iot_device_information_miaoQing
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@ApiModel(value = "DeviceInformationMiaoqing",description = "苗情设备基础信息 iot_device_information_miaoQing")
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class DeviceInformationMiaoqing extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Excel(name = "名称")
|
||||||
|
@ApiModelProperty("名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 设备品牌 */
|
||||||
|
@Excel(name = "设备品牌")
|
||||||
|
@ApiModelProperty("设备品牌")
|
||||||
|
private String deviceBrand;
|
||||||
|
|
||||||
|
/** 设备型号 */
|
||||||
|
@Excel(name = "设备型号")
|
||||||
|
@ApiModelProperty("设备型号")
|
||||||
|
private String deviceType;
|
||||||
|
|
||||||
|
/** 设备编码 */
|
||||||
|
@Excel(name = "设备编码")
|
||||||
|
@ApiModelProperty("设备编码")
|
||||||
|
private String deviceEncoding;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
@Excel(name = "类型")
|
||||||
|
@ApiModelProperty("类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Excel(name = "经度")
|
||||||
|
@ApiModelProperty("经度")
|
||||||
|
private String longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Excel(name = "纬度")
|
||||||
|
@ApiModelProperty("纬度")
|
||||||
|
private String latitude;
|
||||||
|
|
||||||
|
/** 安装位置 */
|
||||||
|
@Excel(name = "安装位置")
|
||||||
|
@ApiModelProperty("安装位置")
|
||||||
|
private String installationLocation;
|
||||||
|
|
||||||
|
/** 项目的名称 */
|
||||||
|
@Excel(name = "项目的名称")
|
||||||
|
@ApiModelProperty("项目的名称")
|
||||||
|
private String nameProject;
|
||||||
|
|
||||||
|
/** 建设年度 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "建设年度", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@ApiModelProperty("建设年度")
|
||||||
|
private Date constructionYear;
|
||||||
|
|
||||||
|
/** 对接方式 */
|
||||||
|
@Excel(name = "对接方式")
|
||||||
|
@ApiModelProperty("对接方式")
|
||||||
|
private String dockingMethod;
|
||||||
|
|
||||||
|
/** 删除标志(0代表存在,2代表删除) */
|
||||||
|
private Integer delFlag;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,94 @@
|
|||||||
|
package com.fastbee.deviceInfo.domain;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.fastbee.common.annotation.Excel;
|
||||||
|
import com.fastbee.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 墒情设备基础信息对象 iot_device_information_moisture
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@ApiModel(value = "DeviceInformationMoisture",description = "墒情设备基础信息 iot_device_information_moisture")
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class DeviceInformationMoisture extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Excel(name = "名称")
|
||||||
|
@ApiModelProperty("名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 产品名称 */
|
||||||
|
@Excel(name = "产品名称")
|
||||||
|
@ApiModelProperty("产品名称")
|
||||||
|
private String productsName;
|
||||||
|
|
||||||
|
/** 设备品牌 */
|
||||||
|
@Excel(name = "设备品牌")
|
||||||
|
@ApiModelProperty("设备品牌")
|
||||||
|
private String deviceBrand;
|
||||||
|
|
||||||
|
/** 设备型号 */
|
||||||
|
@Excel(name = "设备型号")
|
||||||
|
@ApiModelProperty("设备型号")
|
||||||
|
private String deviceType;
|
||||||
|
|
||||||
|
/** 设备编码 */
|
||||||
|
@Excel(name = "设备编码")
|
||||||
|
@ApiModelProperty("设备编码")
|
||||||
|
private String deviceEncoding;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
@Excel(name = "类型")
|
||||||
|
@ApiModelProperty("类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Excel(name = "经度")
|
||||||
|
@ApiModelProperty("经度")
|
||||||
|
private String longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Excel(name = "纬度")
|
||||||
|
@ApiModelProperty("纬度")
|
||||||
|
private String latitude;
|
||||||
|
|
||||||
|
/** 安装位置 */
|
||||||
|
@Excel(name = "安装位置")
|
||||||
|
@ApiModelProperty("安装位置")
|
||||||
|
private String installationLocation;
|
||||||
|
|
||||||
|
/** 项目的名称 */
|
||||||
|
@Excel(name = "项目的名称")
|
||||||
|
@ApiModelProperty("项目的名称")
|
||||||
|
private String nameProject;
|
||||||
|
|
||||||
|
/** 建设年度 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "建设年度", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@ApiModelProperty("建设年度")
|
||||||
|
private Date constructionYear;
|
||||||
|
|
||||||
|
/** 对接方式 */
|
||||||
|
@Excel(name = "对接方式")
|
||||||
|
@ApiModelProperty("对接方式")
|
||||||
|
private String dockingMethod;
|
||||||
|
|
||||||
|
/** 删除标志(0代表存在,2代表删除) */
|
||||||
|
private Integer delFlag;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,109 @@
|
|||||||
|
package com.fastbee.deviceInfo.domain;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.fastbee.common.annotation.Excel;
|
||||||
|
import com.fastbee.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 监控站设备基础信息对象 iot_device_information_monitor
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@ApiModel(value = "DeviceInformationMonitor",description = "监控站设备基础信息 iot_device_information_monitor")
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class DeviceInformationMonitor extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Excel(name = "名称")
|
||||||
|
@ApiModelProperty("名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 设备编码 */
|
||||||
|
@Excel(name = "设备编码")
|
||||||
|
@ApiModelProperty("设备编码")
|
||||||
|
private String deviceEncoding;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
@Excel(name = "类型")
|
||||||
|
@ApiModelProperty("类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Excel(name = "经度")
|
||||||
|
@ApiModelProperty("经度")
|
||||||
|
private String longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Excel(name = "纬度")
|
||||||
|
@ApiModelProperty("纬度")
|
||||||
|
private String latitude;
|
||||||
|
|
||||||
|
/** 安装位置 */
|
||||||
|
@Excel(name = "安装位置")
|
||||||
|
@ApiModelProperty("安装位置")
|
||||||
|
private String installationLocation;
|
||||||
|
|
||||||
|
/** 设备品牌 */
|
||||||
|
@Excel(name = "设备品牌")
|
||||||
|
@ApiModelProperty("设备品牌")
|
||||||
|
private String deviceBrand;
|
||||||
|
|
||||||
|
/** 设备型号 */
|
||||||
|
@Excel(name = "设备型号")
|
||||||
|
@ApiModelProperty("设备型号")
|
||||||
|
private String deviceType;
|
||||||
|
|
||||||
|
/** 项目的名称 */
|
||||||
|
@Excel(name = "项目的名称")
|
||||||
|
@ApiModelProperty("项目的名称")
|
||||||
|
private String nameProject;
|
||||||
|
|
||||||
|
/** 建设年度 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "建设年度", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@ApiModelProperty("建设年度")
|
||||||
|
private Date constructionYear;
|
||||||
|
|
||||||
|
/** 所属乡镇 */
|
||||||
|
@Excel(name = "所属乡镇")
|
||||||
|
@ApiModelProperty("所属乡镇")
|
||||||
|
private String affiliationTownship;
|
||||||
|
|
||||||
|
/** 管理负责人 */
|
||||||
|
@Excel(name = "管理负责人")
|
||||||
|
@ApiModelProperty("管理负责人")
|
||||||
|
private String managementLeader;
|
||||||
|
|
||||||
|
/** 管理负责人电话 */
|
||||||
|
@Excel(name = "管理负责人电话")
|
||||||
|
@ApiModelProperty("管理负责人电话")
|
||||||
|
private String managementLeaderTelephone;
|
||||||
|
|
||||||
|
/** 管理单位 */
|
||||||
|
@Excel(name = "管理单位")
|
||||||
|
@ApiModelProperty("管理单位")
|
||||||
|
private String managementUnit;
|
||||||
|
|
||||||
|
/** 备注信息 */
|
||||||
|
@Excel(name = "备注信息")
|
||||||
|
@ApiModelProperty("备注信息")
|
||||||
|
private String remarksInformation;
|
||||||
|
|
||||||
|
/** 删除标志(0代表存在,2代表删除) */
|
||||||
|
private Integer delFlag;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,81 @@
|
|||||||
|
package com.fastbee.deviceInfo.domain;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.fastbee.common.annotation.Excel;
|
||||||
|
import com.fastbee.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 靶标害虫设备基础信息对象 iot_device_information_targetPests
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@ApiModel(value = "DeviceInformationTargetpests",description = "靶标害虫设备基础信息 iot_device_information_targetPests")
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class DeviceInformationTargetpests extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 设备品牌 */
|
||||||
|
@Excel(name = "设备品牌")
|
||||||
|
@ApiModelProperty("设备品牌")
|
||||||
|
private String deviceBrand;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
@Excel(name = "类型")
|
||||||
|
@ApiModelProperty("类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 设备型号 */
|
||||||
|
@Excel(name = "设备型号")
|
||||||
|
@ApiModelProperty("设备型号")
|
||||||
|
private String deviceType;
|
||||||
|
|
||||||
|
/** 供电 */
|
||||||
|
@Excel(name = "供电")
|
||||||
|
@ApiModelProperty("供电")
|
||||||
|
private String powerSupply;
|
||||||
|
|
||||||
|
/** 设备编码 */
|
||||||
|
@Excel(name = "设备编码")
|
||||||
|
@ApiModelProperty("设备编码")
|
||||||
|
private String deviceEncoding;
|
||||||
|
|
||||||
|
/** 地址码 */
|
||||||
|
@Excel(name = "地址码")
|
||||||
|
@ApiModelProperty("地址码")
|
||||||
|
private String addressCode;
|
||||||
|
|
||||||
|
/** 安装位置 */
|
||||||
|
@Excel(name = "安装位置")
|
||||||
|
@ApiModelProperty("安装位置")
|
||||||
|
private String installationLocation;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Excel(name = "经度")
|
||||||
|
@ApiModelProperty("经度")
|
||||||
|
private String longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Excel(name = "纬度")
|
||||||
|
@ApiModelProperty("纬度")
|
||||||
|
private String latitude;
|
||||||
|
|
||||||
|
/** 对接方式 */
|
||||||
|
@Excel(name = "对接方式")
|
||||||
|
@ApiModelProperty("对接方式")
|
||||||
|
private String dockingMethod;
|
||||||
|
|
||||||
|
/** 删除标志(0代表存在,2代表删除) */
|
||||||
|
private Integer delFlag;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.fastbee.deviceInfo.domain;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.fastbee.common.annotation.Excel;
|
||||||
|
import com.fastbee.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 虫情设备基础信息对象 iot_device_information_worms
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@ApiModel(value = "DeviceInformationWorms",description = "虫情设备基础信息 iot_device_information_worms")
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class DeviceInformationWorms extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Excel(name = "名称")
|
||||||
|
@ApiModelProperty("名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 设备品牌 */
|
||||||
|
@Excel(name = "设备品牌")
|
||||||
|
@ApiModelProperty("设备品牌")
|
||||||
|
private String deviceBrand;
|
||||||
|
|
||||||
|
/** 设备型号 */
|
||||||
|
@Excel(name = "设备型号")
|
||||||
|
@ApiModelProperty("设备型号")
|
||||||
|
private String deviceType;
|
||||||
|
|
||||||
|
/** 设备编码 */
|
||||||
|
@Excel(name = "设备编码")
|
||||||
|
@ApiModelProperty("设备编码")
|
||||||
|
private String deviceEncoding;
|
||||||
|
|
||||||
|
/** 安装位置 */
|
||||||
|
@Excel(name = "安装位置")
|
||||||
|
@ApiModelProperty("安装位置")
|
||||||
|
private String installationLocation;
|
||||||
|
|
||||||
|
/** 经度 */
|
||||||
|
@Excel(name = "经度")
|
||||||
|
@ApiModelProperty("经度")
|
||||||
|
private String longitude;
|
||||||
|
|
||||||
|
/** 纬度 */
|
||||||
|
@Excel(name = "纬度")
|
||||||
|
@ApiModelProperty("纬度")
|
||||||
|
private String latitude;
|
||||||
|
|
||||||
|
/** 项目的名称 */
|
||||||
|
@Excel(name = "项目的名称")
|
||||||
|
@ApiModelProperty("项目的名称")
|
||||||
|
private String nameProject;
|
||||||
|
|
||||||
|
/** 建设年度 */
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
|
@Excel(name = "建设年度", width = 30, dateFormat = "yyyy-MM-dd")
|
||||||
|
@ApiModelProperty("建设年度")
|
||||||
|
private Date constructionYear;
|
||||||
|
|
||||||
|
/** 对接方式 */
|
||||||
|
@Excel(name = "对接方式")
|
||||||
|
@ApiModelProperty("对接方式")
|
||||||
|
private String dockingMethod;
|
||||||
|
|
||||||
|
/** 删除标志(0代表存在,2代表删除) */
|
||||||
|
private Integer delFlag;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.fastbee.deviceInfo.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMeteorology;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 气象设备基础信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface DeviceInformationMeteorologyMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 气象设备基础信息主键
|
||||||
|
* @return 气象设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationMeteorology selectDeviceInformationMeteorologyById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询气象设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMeteorology 气象设备基础信息
|
||||||
|
* @return 气象设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationMeteorology> selectDeviceInformationMeteorologyList(DeviceInformationMeteorology deviceInformationMeteorology);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMeteorology 气象设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationMeteorology(DeviceInformationMeteorology deviceInformationMeteorology);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMeteorology 气象设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationMeteorology(DeviceInformationMeteorology deviceInformationMeteorology);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 气象设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMeteorologyById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMeteorologyByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.fastbee.deviceInfo.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMiaoqing;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 苗情设备基础信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface DeviceInformationMiaoqingMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 苗情设备基础信息主键
|
||||||
|
* @return 苗情设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationMiaoqing selectDeviceInformationMiaoqingById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询苗情设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMiaoqing 苗情设备基础信息
|
||||||
|
* @return 苗情设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationMiaoqing> selectDeviceInformationMiaoqingList(DeviceInformationMiaoqing deviceInformationMiaoqing);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMiaoqing 苗情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationMiaoqing(DeviceInformationMiaoqing deviceInformationMiaoqing);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMiaoqing 苗情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationMiaoqing(DeviceInformationMiaoqing deviceInformationMiaoqing);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 苗情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMiaoqingById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMiaoqingByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.fastbee.deviceInfo.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMoisture;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 墒情设备基础信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface DeviceInformationMoistureMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 墒情设备基础信息主键
|
||||||
|
* @return 墒情设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationMoisture selectDeviceInformationMoistureById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询墒情设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMoisture 墒情设备基础信息
|
||||||
|
* @return 墒情设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationMoisture> selectDeviceInformationMoistureList(DeviceInformationMoisture deviceInformationMoisture);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMoisture 墒情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationMoisture(DeviceInformationMoisture deviceInformationMoisture);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMoisture 墒情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationMoisture(DeviceInformationMoisture deviceInformationMoisture);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 墒情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMoistureById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMoistureByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.fastbee.deviceInfo.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMonitor;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 监控站设备基础信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface DeviceInformationMonitorMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 监控站设备基础信息主键
|
||||||
|
* @return 监控站设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationMonitor selectDeviceInformationMonitorById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询监控站设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMonitor 监控站设备基础信息
|
||||||
|
* @return 监控站设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationMonitor> selectDeviceInformationMonitorList(DeviceInformationMonitor deviceInformationMonitor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMonitor 监控站设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationMonitor(DeviceInformationMonitor deviceInformationMonitor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMonitor 监控站设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationMonitor(DeviceInformationMonitor deviceInformationMonitor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 监控站设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMonitorById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMonitorByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.fastbee.deviceInfo.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationTargetpests;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 靶标害虫设备基础信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface DeviceInformationTargetpestsMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 靶标害虫设备基础信息主键
|
||||||
|
* @return 靶标害虫设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationTargetpests selectDeviceInformationTargetpestsById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询靶标害虫设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationTargetpests 靶标害虫设备基础信息
|
||||||
|
* @return 靶标害虫设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationTargetpests> selectDeviceInformationTargetpestsList(DeviceInformationTargetpests deviceInformationTargetpests);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationTargetpests 靶标害虫设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationTargetpests(DeviceInformationTargetpests deviceInformationTargetpests);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationTargetpests 靶标害虫设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationTargetpests(DeviceInformationTargetpests deviceInformationTargetpests);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 靶标害虫设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationTargetpestsById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationTargetpestsByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.fastbee.deviceInfo.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationWorms;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 虫情设备基础信息Mapper接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface DeviceInformationWormsMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 虫情设备基础信息主键
|
||||||
|
* @return 虫情设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationWorms selectDeviceInformationWormsById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询虫情设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationWorms 虫情设备基础信息
|
||||||
|
* @return 虫情设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationWorms> selectDeviceInformationWormsList(DeviceInformationWorms deviceInformationWorms);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationWorms 虫情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationWorms(DeviceInformationWorms deviceInformationWorms);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationWorms 虫情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationWorms(DeviceInformationWorms deviceInformationWorms);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 虫情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationWormsById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationWormsByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.fastbee.deviceInfo.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMeteorology;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 气象设备基础信息Service接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
public interface IDeviceInformationMeteorologyService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 气象设备基础信息主键
|
||||||
|
* @return 气象设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationMeteorology selectDeviceInformationMeteorologyById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询气象设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMeteorology 气象设备基础信息
|
||||||
|
* @return 气象设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationMeteorology> selectDeviceInformationMeteorologyList(DeviceInformationMeteorology deviceInformationMeteorology);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMeteorology 气象设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationMeteorology(DeviceInformationMeteorology deviceInformationMeteorology);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMeteorology 气象设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationMeteorology(DeviceInformationMeteorology deviceInformationMeteorology);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的气象设备基础信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMeteorologyByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除气象设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 气象设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMeteorologyById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.fastbee.deviceInfo.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMiaoqing;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 苗情设备基础信息Service接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
public interface IDeviceInformationMiaoqingService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 苗情设备基础信息主键
|
||||||
|
* @return 苗情设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationMiaoqing selectDeviceInformationMiaoqingById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询苗情设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMiaoqing 苗情设备基础信息
|
||||||
|
* @return 苗情设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationMiaoqing> selectDeviceInformationMiaoqingList(DeviceInformationMiaoqing deviceInformationMiaoqing);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMiaoqing 苗情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationMiaoqing(DeviceInformationMiaoqing deviceInformationMiaoqing);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMiaoqing 苗情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationMiaoqing(DeviceInformationMiaoqing deviceInformationMiaoqing);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的苗情设备基础信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMiaoqingByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除苗情设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 苗情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMiaoqingById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.fastbee.deviceInfo.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMoisture;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 墒情设备基础信息Service接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
public interface IDeviceInformationMoistureService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 墒情设备基础信息主键
|
||||||
|
* @return 墒情设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationMoisture selectDeviceInformationMoistureById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询墒情设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMoisture 墒情设备基础信息
|
||||||
|
* @return 墒情设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationMoisture> selectDeviceInformationMoistureList(DeviceInformationMoisture deviceInformationMoisture);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMoisture 墒情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationMoisture(DeviceInformationMoisture deviceInformationMoisture);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMoisture 墒情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationMoisture(DeviceInformationMoisture deviceInformationMoisture);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的墒情设备基础信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMoistureByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除墒情设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 墒情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMoistureById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.fastbee.deviceInfo.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMonitor;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 监控站设备基础信息Service接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
public interface IDeviceInformationMonitorService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 监控站设备基础信息主键
|
||||||
|
* @return 监控站设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationMonitor selectDeviceInformationMonitorById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询监控站设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMonitor 监控站设备基础信息
|
||||||
|
* @return 监控站设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationMonitor> selectDeviceInformationMonitorList(DeviceInformationMonitor deviceInformationMonitor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMonitor 监控站设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationMonitor(DeviceInformationMonitor deviceInformationMonitor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMonitor 监控站设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationMonitor(DeviceInformationMonitor deviceInformationMonitor);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的监控站设备基础信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMonitorByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除监控站设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 监控站设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationMonitorById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.fastbee.deviceInfo.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationTargetpests;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 靶标害虫设备基础信息Service接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
public interface IDeviceInformationTargetpestsService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 靶标害虫设备基础信息主键
|
||||||
|
* @return 靶标害虫设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationTargetpests selectDeviceInformationTargetpestsById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询靶标害虫设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationTargetpests 靶标害虫设备基础信息
|
||||||
|
* @return 靶标害虫设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationTargetpests> selectDeviceInformationTargetpestsList(DeviceInformationTargetpests deviceInformationTargetpests);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationTargetpests 靶标害虫设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationTargetpests(DeviceInformationTargetpests deviceInformationTargetpests);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationTargetpests 靶标害虫设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationTargetpests(DeviceInformationTargetpests deviceInformationTargetpests);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的靶标害虫设备基础信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationTargetpestsByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除靶标害虫设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 靶标害虫设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationTargetpestsById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.fastbee.deviceInfo.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationWorms;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 虫情设备基础信息Service接口
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
public interface IDeviceInformationWormsService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 虫情设备基础信息主键
|
||||||
|
* @return 虫情设备基础信息
|
||||||
|
*/
|
||||||
|
public DeviceInformationWorms selectDeviceInformationWormsById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询虫情设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationWorms 虫情设备基础信息
|
||||||
|
* @return 虫情设备基础信息集合
|
||||||
|
*/
|
||||||
|
public List<DeviceInformationWorms> selectDeviceInformationWormsList(DeviceInformationWorms deviceInformationWorms);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationWorms 虫情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertDeviceInformationWorms(DeviceInformationWorms deviceInformationWorms);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationWorms 虫情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateDeviceInformationWorms(DeviceInformationWorms deviceInformationWorms);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的虫情设备基础信息主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationWormsByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除虫情设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 虫情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteDeviceInformationWormsById(Long id);
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.fastbee.deviceInfo.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.fastbee.deviceInfo.mapper.DeviceInformationMeteorologyMapper;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMeteorology;
|
||||||
|
import com.fastbee.deviceInfo.service.IDeviceInformationMeteorologyService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 气象设备基础信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DeviceInformationMeteorologyServiceImpl implements IDeviceInformationMeteorologyService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private DeviceInformationMeteorologyMapper deviceInformationMeteorologyMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 气象设备基础信息主键
|
||||||
|
* @return 气象设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public DeviceInformationMeteorology selectDeviceInformationMeteorologyById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationMeteorologyMapper.selectDeviceInformationMeteorologyById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询气象设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMeteorology 气象设备基础信息
|
||||||
|
* @return 气象设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<DeviceInformationMeteorology> selectDeviceInformationMeteorologyList(DeviceInformationMeteorology deviceInformationMeteorology)
|
||||||
|
{
|
||||||
|
return deviceInformationMeteorologyMapper.selectDeviceInformationMeteorologyList(deviceInformationMeteorology);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMeteorology 气象设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertDeviceInformationMeteorology(DeviceInformationMeteorology deviceInformationMeteorology)
|
||||||
|
{
|
||||||
|
deviceInformationMeteorology.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationMeteorologyMapper.insertDeviceInformationMeteorology(deviceInformationMeteorology);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMeteorology 气象设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateDeviceInformationMeteorology(DeviceInformationMeteorology deviceInformationMeteorology)
|
||||||
|
{
|
||||||
|
deviceInformationMeteorology.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationMeteorologyMapper.updateDeviceInformationMeteorology(deviceInformationMeteorology);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除气象设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的气象设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationMeteorologyByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return deviceInformationMeteorologyMapper.deleteDeviceInformationMeteorologyByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除气象设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 气象设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationMeteorologyById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationMeteorologyMapper.deleteDeviceInformationMeteorologyById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.fastbee.deviceInfo.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.fastbee.deviceInfo.mapper.DeviceInformationMiaoqingMapper;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMiaoqing;
|
||||||
|
import com.fastbee.deviceInfo.service.IDeviceInformationMiaoqingService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 苗情设备基础信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DeviceInformationMiaoqingServiceImpl implements IDeviceInformationMiaoqingService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private DeviceInformationMiaoqingMapper deviceInformationMiaoqingMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 苗情设备基础信息主键
|
||||||
|
* @return 苗情设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public DeviceInformationMiaoqing selectDeviceInformationMiaoqingById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationMiaoqingMapper.selectDeviceInformationMiaoqingById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询苗情设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMiaoqing 苗情设备基础信息
|
||||||
|
* @return 苗情设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<DeviceInformationMiaoqing> selectDeviceInformationMiaoqingList(DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||||
|
{
|
||||||
|
return deviceInformationMiaoqingMapper.selectDeviceInformationMiaoqingList(deviceInformationMiaoqing);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMiaoqing 苗情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertDeviceInformationMiaoqing(DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||||
|
{
|
||||||
|
deviceInformationMiaoqing.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationMiaoqingMapper.insertDeviceInformationMiaoqing(deviceInformationMiaoqing);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMiaoqing 苗情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateDeviceInformationMiaoqing(DeviceInformationMiaoqing deviceInformationMiaoqing)
|
||||||
|
{
|
||||||
|
deviceInformationMiaoqing.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationMiaoqingMapper.updateDeviceInformationMiaoqing(deviceInformationMiaoqing);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除苗情设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的苗情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationMiaoqingByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return deviceInformationMiaoqingMapper.deleteDeviceInformationMiaoqingByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除苗情设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 苗情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationMiaoqingById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationMiaoqingMapper.deleteDeviceInformationMiaoqingById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.fastbee.deviceInfo.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.fastbee.deviceInfo.mapper.DeviceInformationMoistureMapper;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMoisture;
|
||||||
|
import com.fastbee.deviceInfo.service.IDeviceInformationMoistureService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 墒情设备基础信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DeviceInformationMoistureServiceImpl implements IDeviceInformationMoistureService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private DeviceInformationMoistureMapper deviceInformationMoistureMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 墒情设备基础信息主键
|
||||||
|
* @return 墒情设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public DeviceInformationMoisture selectDeviceInformationMoistureById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationMoistureMapper.selectDeviceInformationMoistureById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询墒情设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMoisture 墒情设备基础信息
|
||||||
|
* @return 墒情设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<DeviceInformationMoisture> selectDeviceInformationMoistureList(DeviceInformationMoisture deviceInformationMoisture)
|
||||||
|
{
|
||||||
|
return deviceInformationMoistureMapper.selectDeviceInformationMoistureList(deviceInformationMoisture);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMoisture 墒情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertDeviceInformationMoisture(DeviceInformationMoisture deviceInformationMoisture)
|
||||||
|
{
|
||||||
|
deviceInformationMoisture.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationMoistureMapper.insertDeviceInformationMoisture(deviceInformationMoisture);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMoisture 墒情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateDeviceInformationMoisture(DeviceInformationMoisture deviceInformationMoisture)
|
||||||
|
{
|
||||||
|
deviceInformationMoisture.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationMoistureMapper.updateDeviceInformationMoisture(deviceInformationMoisture);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除墒情设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的墒情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationMoistureByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return deviceInformationMoistureMapper.deleteDeviceInformationMoistureByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除墒情设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 墒情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationMoistureById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationMoistureMapper.deleteDeviceInformationMoistureById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.fastbee.deviceInfo.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.fastbee.deviceInfo.mapper.DeviceInformationMonitorMapper;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationMonitor;
|
||||||
|
import com.fastbee.deviceInfo.service.IDeviceInformationMonitorService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 监控站设备基础信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DeviceInformationMonitorServiceImpl implements IDeviceInformationMonitorService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private DeviceInformationMonitorMapper deviceInformationMonitorMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 监控站设备基础信息主键
|
||||||
|
* @return 监控站设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public DeviceInformationMonitor selectDeviceInformationMonitorById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationMonitorMapper.selectDeviceInformationMonitorById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询监控站设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationMonitor 监控站设备基础信息
|
||||||
|
* @return 监控站设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<DeviceInformationMonitor> selectDeviceInformationMonitorList(DeviceInformationMonitor deviceInformationMonitor)
|
||||||
|
{
|
||||||
|
return deviceInformationMonitorMapper.selectDeviceInformationMonitorList(deviceInformationMonitor);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMonitor 监控站设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertDeviceInformationMonitor(DeviceInformationMonitor deviceInformationMonitor)
|
||||||
|
{
|
||||||
|
deviceInformationMonitor.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationMonitorMapper.insertDeviceInformationMonitor(deviceInformationMonitor);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationMonitor 监控站设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateDeviceInformationMonitor(DeviceInformationMonitor deviceInformationMonitor)
|
||||||
|
{
|
||||||
|
deviceInformationMonitor.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationMonitorMapper.updateDeviceInformationMonitor(deviceInformationMonitor);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除监控站设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的监控站设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationMonitorByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return deviceInformationMonitorMapper.deleteDeviceInformationMonitorByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除监控站设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 监控站设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationMonitorById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationMonitorMapper.deleteDeviceInformationMonitorById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.fastbee.deviceInfo.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.fastbee.deviceInfo.mapper.DeviceInformationTargetpestsMapper;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationTargetpests;
|
||||||
|
import com.fastbee.deviceInfo.service.IDeviceInformationTargetpestsService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 靶标害虫设备基础信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DeviceInformationTargetpestsServiceImpl implements IDeviceInformationTargetpestsService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private DeviceInformationTargetpestsMapper deviceInformationTargetpestsMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 靶标害虫设备基础信息主键
|
||||||
|
* @return 靶标害虫设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public DeviceInformationTargetpests selectDeviceInformationTargetpestsById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationTargetpestsMapper.selectDeviceInformationTargetpestsById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询靶标害虫设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationTargetpests 靶标害虫设备基础信息
|
||||||
|
* @return 靶标害虫设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<DeviceInformationTargetpests> selectDeviceInformationTargetpestsList(DeviceInformationTargetpests deviceInformationTargetpests)
|
||||||
|
{
|
||||||
|
return deviceInformationTargetpestsMapper.selectDeviceInformationTargetpestsList(deviceInformationTargetpests);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationTargetpests 靶标害虫设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertDeviceInformationTargetpests(DeviceInformationTargetpests deviceInformationTargetpests)
|
||||||
|
{
|
||||||
|
deviceInformationTargetpests.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationTargetpestsMapper.insertDeviceInformationTargetpests(deviceInformationTargetpests);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationTargetpests 靶标害虫设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateDeviceInformationTargetpests(DeviceInformationTargetpests deviceInformationTargetpests)
|
||||||
|
{
|
||||||
|
deviceInformationTargetpests.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationTargetpestsMapper.updateDeviceInformationTargetpests(deviceInformationTargetpests);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除靶标害虫设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的靶标害虫设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationTargetpestsByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return deviceInformationTargetpestsMapper.deleteDeviceInformationTargetpestsByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除靶标害虫设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 靶标害虫设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationTargetpestsById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationTargetpestsMapper.deleteDeviceInformationTargetpestsById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.fastbee.deviceInfo.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.fastbee.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.fastbee.deviceInfo.mapper.DeviceInformationWormsMapper;
|
||||||
|
import com.fastbee.deviceInfo.domain.DeviceInformationWorms;
|
||||||
|
import com.fastbee.deviceInfo.service.IDeviceInformationWormsService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 虫情设备基础信息Service业务层处理
|
||||||
|
*
|
||||||
|
* @author kerwincui
|
||||||
|
* @date 2024-11-18
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class DeviceInformationWormsServiceImpl implements IDeviceInformationWormsService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private DeviceInformationWormsMapper deviceInformationWormsMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param id 虫情设备基础信息主键
|
||||||
|
* @return 虫情设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public DeviceInformationWorms selectDeviceInformationWormsById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationWormsMapper.selectDeviceInformationWormsById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询虫情设备基础信息列表
|
||||||
|
*
|
||||||
|
* @param deviceInformationWorms 虫情设备基础信息
|
||||||
|
* @return 虫情设备基础信息
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<DeviceInformationWorms> selectDeviceInformationWormsList(DeviceInformationWorms deviceInformationWorms)
|
||||||
|
{
|
||||||
|
return deviceInformationWormsMapper.selectDeviceInformationWormsList(deviceInformationWorms);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationWorms 虫情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertDeviceInformationWorms(DeviceInformationWorms deviceInformationWorms)
|
||||||
|
{
|
||||||
|
deviceInformationWorms.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationWormsMapper.insertDeviceInformationWorms(deviceInformationWorms);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param deviceInformationWorms 虫情设备基础信息
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateDeviceInformationWorms(DeviceInformationWorms deviceInformationWorms)
|
||||||
|
{
|
||||||
|
deviceInformationWorms.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return deviceInformationWormsMapper.updateDeviceInformationWorms(deviceInformationWorms);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除虫情设备基础信息
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的虫情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationWormsByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return deviceInformationWormsMapper.deleteDeviceInformationWormsByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除虫情设备基础信息信息
|
||||||
|
*
|
||||||
|
* @param id 虫情设备基础信息主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteDeviceInformationWormsById(Long id)
|
||||||
|
{
|
||||||
|
return deviceInformationWormsMapper.deleteDeviceInformationWormsById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,126 @@
|
|||||||
|
<?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.fastbee.deviceInfo.mapper.DeviceInformationMeteorologyMapper">
|
||||||
|
|
||||||
|
<resultMap type="DeviceInformationMeteorology" id="DeviceInformationMeteorologyResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="deviceBrand" column="device_brand" />
|
||||||
|
<result property="deviceType" column="device_type" />
|
||||||
|
<result property="deviceEncoding" column="device_encoding" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="longitude" column="longitude" />
|
||||||
|
<result property="latitude" column="latitude" />
|
||||||
|
<result property="installationLocation" column="installation_location" />
|
||||||
|
<result property="nameProject" column="name_project" />
|
||||||
|
<result property="constructionYear" column="construction_year" />
|
||||||
|
<result property="dockingMethod" column="docking_method" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectDeviceInformationMeteorologyVo">
|
||||||
|
select id, name, device_brand, device_type, device_encoding, type, longitude, latitude, installation_location, name_project, construction_year, docking_method, del_flag, create_time, create_by, update_time, update_by from iot_device_information_meteorology
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationMeteorologyList" parameterType="DeviceInformationMeteorology" resultMap="DeviceInformationMeteorologyResult">
|
||||||
|
<include refid="selectDeviceInformationMeteorologyVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
|
<if test="deviceBrand != null and deviceBrand != ''"> and device_brand = #{deviceBrand}</if>
|
||||||
|
<if test="deviceType != null and deviceType != ''"> and device_type = #{deviceType}</if>
|
||||||
|
<if test="deviceEncoding != null and deviceEncoding != ''"> and device_encoding = #{deviceEncoding}</if>
|
||||||
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||||
|
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
|
||||||
|
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
|
||||||
|
<if test="installationLocation != null and installationLocation != ''"> and installation_location = #{installationLocation}</if>
|
||||||
|
<if test="nameProject != null and nameProject != ''"> and name_project = #{nameProject}</if>
|
||||||
|
<if test="constructionYear != null "> and construction_year = #{constructionYear}</if>
|
||||||
|
<if test="dockingMethod != null and dockingMethod != ''"> and docking_method = #{dockingMethod}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationMeteorologyById" parameterType="Long" resultMap="DeviceInformationMeteorologyResult">
|
||||||
|
<include refid="selectDeviceInformationMeteorologyVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertDeviceInformationMeteorology" parameterType="DeviceInformationMeteorology" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into iot_device_information_meteorology
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">name,</if>
|
||||||
|
<if test="deviceBrand != null">device_brand,</if>
|
||||||
|
<if test="deviceType != null">device_type,</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding,</if>
|
||||||
|
<if test="type != null">type,</if>
|
||||||
|
<if test="longitude != null">longitude,</if>
|
||||||
|
<if test="latitude != null">latitude,</if>
|
||||||
|
<if test="installationLocation != null">installation_location,</if>
|
||||||
|
<if test="nameProject != null">name_project,</if>
|
||||||
|
<if test="constructionYear != null">construction_year,</if>
|
||||||
|
<if test="dockingMethod != null">docking_method,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">#{name},</if>
|
||||||
|
<if test="deviceBrand != null">#{deviceBrand},</if>
|
||||||
|
<if test="deviceType != null">#{deviceType},</if>
|
||||||
|
<if test="deviceEncoding != null">#{deviceEncoding},</if>
|
||||||
|
<if test="type != null">#{type},</if>
|
||||||
|
<if test="longitude != null">#{longitude},</if>
|
||||||
|
<if test="latitude != null">#{latitude},</if>
|
||||||
|
<if test="installationLocation != null">#{installationLocation},</if>
|
||||||
|
<if test="nameProject != null">#{nameProject},</if>
|
||||||
|
<if test="constructionYear != null">#{constructionYear},</if>
|
||||||
|
<if test="dockingMethod != null">#{dockingMethod},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateDeviceInformationMeteorology" parameterType="DeviceInformationMeteorology">
|
||||||
|
update iot_device_information_meteorology
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null">name = #{name},</if>
|
||||||
|
<if test="deviceBrand != null">device_brand = #{deviceBrand},</if>
|
||||||
|
<if test="deviceType != null">device_type = #{deviceType},</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding = #{deviceEncoding},</if>
|
||||||
|
<if test="type != null">type = #{type},</if>
|
||||||
|
<if test="longitude != null">longitude = #{longitude},</if>
|
||||||
|
<if test="latitude != null">latitude = #{latitude},</if>
|
||||||
|
<if test="installationLocation != null">installation_location = #{installationLocation},</if>
|
||||||
|
<if test="nameProject != null">name_project = #{nameProject},</if>
|
||||||
|
<if test="constructionYear != null">construction_year = #{constructionYear},</if>
|
||||||
|
<if test="dockingMethod != null">docking_method = #{dockingMethod},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationMeteorologyById" parameterType="Long">
|
||||||
|
delete from iot_device_information_meteorology where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationMeteorologyByIds" parameterType="String">
|
||||||
|
delete from iot_device_information_meteorology where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
@ -0,0 +1,126 @@
|
|||||||
|
<?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.fastbee.deviceInfo.mapper.DeviceInformationMiaoqingMapper">
|
||||||
|
|
||||||
|
<resultMap type="DeviceInformationMiaoqing" id="DeviceInformationMiaoqingResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="deviceBrand" column="device_brand" />
|
||||||
|
<result property="deviceType" column="device_type" />
|
||||||
|
<result property="deviceEncoding" column="device_encoding" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="longitude" column="longitude" />
|
||||||
|
<result property="latitude" column="latitude" />
|
||||||
|
<result property="installationLocation" column="installation_location" />
|
||||||
|
<result property="nameProject" column="name_project" />
|
||||||
|
<result property="constructionYear" column="construction_year" />
|
||||||
|
<result property="dockingMethod" column="docking_method" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectDeviceInformationMiaoqingVo">
|
||||||
|
select id, name, device_brand, device_type, device_encoding, type, longitude, latitude, installation_location, name_project, construction_year, docking_method, del_flag, create_time, create_by, update_time, update_by from iot_device_information_miaoQing
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationMiaoqingList" parameterType="DeviceInformationMiaoqing" resultMap="DeviceInformationMiaoqingResult">
|
||||||
|
<include refid="selectDeviceInformationMiaoqingVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
|
<if test="deviceBrand != null and deviceBrand != ''"> and device_brand = #{deviceBrand}</if>
|
||||||
|
<if test="deviceType != null and deviceType != ''"> and device_type = #{deviceType}</if>
|
||||||
|
<if test="deviceEncoding != null and deviceEncoding != ''"> and device_encoding = #{deviceEncoding}</if>
|
||||||
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||||
|
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
|
||||||
|
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
|
||||||
|
<if test="installationLocation != null and installationLocation != ''"> and installation_location = #{installationLocation}</if>
|
||||||
|
<if test="nameProject != null and nameProject != ''"> and name_project = #{nameProject}</if>
|
||||||
|
<if test="constructionYear != null "> and construction_year = #{constructionYear}</if>
|
||||||
|
<if test="dockingMethod != null and dockingMethod != ''"> and docking_method = #{dockingMethod}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationMiaoqingById" parameterType="Long" resultMap="DeviceInformationMiaoqingResult">
|
||||||
|
<include refid="selectDeviceInformationMiaoqingVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertDeviceInformationMiaoqing" parameterType="DeviceInformationMiaoqing" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into iot_device_information_miaoQing
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">name,</if>
|
||||||
|
<if test="deviceBrand != null">device_brand,</if>
|
||||||
|
<if test="deviceType != null">device_type,</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding,</if>
|
||||||
|
<if test="type != null">type,</if>
|
||||||
|
<if test="longitude != null">longitude,</if>
|
||||||
|
<if test="latitude != null">latitude,</if>
|
||||||
|
<if test="installationLocation != null">installation_location,</if>
|
||||||
|
<if test="nameProject != null">name_project,</if>
|
||||||
|
<if test="constructionYear != null">construction_year,</if>
|
||||||
|
<if test="dockingMethod != null">docking_method,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">#{name},</if>
|
||||||
|
<if test="deviceBrand != null">#{deviceBrand},</if>
|
||||||
|
<if test="deviceType != null">#{deviceType},</if>
|
||||||
|
<if test="deviceEncoding != null">#{deviceEncoding},</if>
|
||||||
|
<if test="type != null">#{type},</if>
|
||||||
|
<if test="longitude != null">#{longitude},</if>
|
||||||
|
<if test="latitude != null">#{latitude},</if>
|
||||||
|
<if test="installationLocation != null">#{installationLocation},</if>
|
||||||
|
<if test="nameProject != null">#{nameProject},</if>
|
||||||
|
<if test="constructionYear != null">#{constructionYear},</if>
|
||||||
|
<if test="dockingMethod != null">#{dockingMethod},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateDeviceInformationMiaoqing" parameterType="DeviceInformationMiaoqing">
|
||||||
|
update iot_device_information_miaoQing
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null">name = #{name},</if>
|
||||||
|
<if test="deviceBrand != null">device_brand = #{deviceBrand},</if>
|
||||||
|
<if test="deviceType != null">device_type = #{deviceType},</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding = #{deviceEncoding},</if>
|
||||||
|
<if test="type != null">type = #{type},</if>
|
||||||
|
<if test="longitude != null">longitude = #{longitude},</if>
|
||||||
|
<if test="latitude != null">latitude = #{latitude},</if>
|
||||||
|
<if test="installationLocation != null">installation_location = #{installationLocation},</if>
|
||||||
|
<if test="nameProject != null">name_project = #{nameProject},</if>
|
||||||
|
<if test="constructionYear != null">construction_year = #{constructionYear},</if>
|
||||||
|
<if test="dockingMethod != null">docking_method = #{dockingMethod},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationMiaoqingById" parameterType="Long">
|
||||||
|
delete from iot_device_information_miaoQing where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationMiaoqingByIds" parameterType="String">
|
||||||
|
delete from iot_device_information_miaoQing where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
@ -0,0 +1,131 @@
|
|||||||
|
<?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.fastbee.deviceInfo.mapper.DeviceInformationMoistureMapper">
|
||||||
|
|
||||||
|
<resultMap type="DeviceInformationMoisture" id="DeviceInformationMoistureResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="productsName" column="products_name" />
|
||||||
|
<result property="deviceBrand" column="device_brand" />
|
||||||
|
<result property="deviceType" column="device_type" />
|
||||||
|
<result property="deviceEncoding" column="device_encoding" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="longitude" column="longitude" />
|
||||||
|
<result property="latitude" column="latitude" />
|
||||||
|
<result property="installationLocation" column="installation_location" />
|
||||||
|
<result property="nameProject" column="name_project" />
|
||||||
|
<result property="constructionYear" column="construction_year" />
|
||||||
|
<result property="dockingMethod" column="docking_method" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectDeviceInformationMoistureVo">
|
||||||
|
select id, name, products_name, device_brand, device_type, device_encoding, type, longitude, latitude, installation_location, name_project, construction_year, docking_method, del_flag, create_time, create_by, update_time, update_by from iot_device_information_moisture
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationMoistureList" parameterType="DeviceInformationMoisture" resultMap="DeviceInformationMoistureResult">
|
||||||
|
<include refid="selectDeviceInformationMoistureVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
|
<if test="productsName != null and productsName != ''"> and products_name like concat('%', #{productsName}, '%')</if>
|
||||||
|
<if test="deviceBrand != null and deviceBrand != ''"> and device_brand = #{deviceBrand}</if>
|
||||||
|
<if test="deviceType != null and deviceType != ''"> and device_type = #{deviceType}</if>
|
||||||
|
<if test="deviceEncoding != null and deviceEncoding != ''"> and device_encoding = #{deviceEncoding}</if>
|
||||||
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||||
|
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
|
||||||
|
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
|
||||||
|
<if test="installationLocation != null and installationLocation != ''"> and installation_location = #{installationLocation}</if>
|
||||||
|
<if test="nameProject != null and nameProject != ''"> and name_project = #{nameProject}</if>
|
||||||
|
<if test="constructionYear != null "> and construction_year = #{constructionYear}</if>
|
||||||
|
<if test="dockingMethod != null and dockingMethod != ''"> and docking_method = #{dockingMethod}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationMoistureById" parameterType="Long" resultMap="DeviceInformationMoistureResult">
|
||||||
|
<include refid="selectDeviceInformationMoistureVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertDeviceInformationMoisture" parameterType="DeviceInformationMoisture" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into iot_device_information_moisture
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">name,</if>
|
||||||
|
<if test="productsName != null">products_name,</if>
|
||||||
|
<if test="deviceBrand != null">device_brand,</if>
|
||||||
|
<if test="deviceType != null">device_type,</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding,</if>
|
||||||
|
<if test="type != null">type,</if>
|
||||||
|
<if test="longitude != null">longitude,</if>
|
||||||
|
<if test="latitude != null">latitude,</if>
|
||||||
|
<if test="installationLocation != null">installation_location,</if>
|
||||||
|
<if test="nameProject != null">name_project,</if>
|
||||||
|
<if test="constructionYear != null">construction_year,</if>
|
||||||
|
<if test="dockingMethod != null">docking_method,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">#{name},</if>
|
||||||
|
<if test="productsName != null">#{productsName},</if>
|
||||||
|
<if test="deviceBrand != null">#{deviceBrand},</if>
|
||||||
|
<if test="deviceType != null">#{deviceType},</if>
|
||||||
|
<if test="deviceEncoding != null">#{deviceEncoding},</if>
|
||||||
|
<if test="type != null">#{type},</if>
|
||||||
|
<if test="longitude != null">#{longitude},</if>
|
||||||
|
<if test="latitude != null">#{latitude},</if>
|
||||||
|
<if test="installationLocation != null">#{installationLocation},</if>
|
||||||
|
<if test="nameProject != null">#{nameProject},</if>
|
||||||
|
<if test="constructionYear != null">#{constructionYear},</if>
|
||||||
|
<if test="dockingMethod != null">#{dockingMethod},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateDeviceInformationMoisture" parameterType="DeviceInformationMoisture">
|
||||||
|
update iot_device_information_moisture
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null">name = #{name},</if>
|
||||||
|
<if test="productsName != null">products_name = #{productsName},</if>
|
||||||
|
<if test="deviceBrand != null">device_brand = #{deviceBrand},</if>
|
||||||
|
<if test="deviceType != null">device_type = #{deviceType},</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding = #{deviceEncoding},</if>
|
||||||
|
<if test="type != null">type = #{type},</if>
|
||||||
|
<if test="longitude != null">longitude = #{longitude},</if>
|
||||||
|
<if test="latitude != null">latitude = #{latitude},</if>
|
||||||
|
<if test="installationLocation != null">installation_location = #{installationLocation},</if>
|
||||||
|
<if test="nameProject != null">name_project = #{nameProject},</if>
|
||||||
|
<if test="constructionYear != null">construction_year = #{constructionYear},</if>
|
||||||
|
<if test="dockingMethod != null">docking_method = #{dockingMethod},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationMoistureById" parameterType="Long">
|
||||||
|
delete from iot_device_information_moisture where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationMoistureByIds" parameterType="String">
|
||||||
|
delete from iot_device_information_moisture where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
@ -0,0 +1,146 @@
|
|||||||
|
<?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.fastbee.deviceInfo.mapper.DeviceInformationMonitorMapper">
|
||||||
|
|
||||||
|
<resultMap type="DeviceInformationMonitor" id="DeviceInformationMonitorResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="deviceEncoding" column="device_encoding" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="longitude" column="longitude" />
|
||||||
|
<result property="latitude" column="latitude" />
|
||||||
|
<result property="installationLocation" column="installation_location" />
|
||||||
|
<result property="deviceBrand" column="device_brand" />
|
||||||
|
<result property="deviceType" column="device_type" />
|
||||||
|
<result property="nameProject" column="name_project" />
|
||||||
|
<result property="constructionYear" column="construction_year" />
|
||||||
|
<result property="affiliationTownship" column="affiliation_township" />
|
||||||
|
<result property="managementLeader" column="management_leader" />
|
||||||
|
<result property="managementLeaderTelephone" column="management_leader_telephone" />
|
||||||
|
<result property="managementUnit" column="management_unit" />
|
||||||
|
<result property="remarksInformation" column="remarks_information" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectDeviceInformationMonitorVo">
|
||||||
|
select id, name, device_encoding, type, longitude, latitude, installation_location, device_brand, device_type, name_project, construction_year, affiliation_township, management_leader, management_leader_telephone, management_unit, remarks_information, del_flag, create_time, create_by, update_time, update_by from iot_device_information_monitor
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationMonitorList" parameterType="DeviceInformationMonitor" resultMap="DeviceInformationMonitorResult">
|
||||||
|
<include refid="selectDeviceInformationMonitorVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
|
<if test="deviceEncoding != null and deviceEncoding != ''"> and device_encoding = #{deviceEncoding}</if>
|
||||||
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||||
|
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
|
||||||
|
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
|
||||||
|
<if test="installationLocation != null and installationLocation != ''"> and installation_location = #{installationLocation}</if>
|
||||||
|
<if test="deviceBrand != null and deviceBrand != ''"> and device_brand = #{deviceBrand}</if>
|
||||||
|
<if test="deviceType != null and deviceType != ''"> and device_type = #{deviceType}</if>
|
||||||
|
<if test="nameProject != null and nameProject != ''"> and name_project = #{nameProject}</if>
|
||||||
|
<if test="constructionYear != null "> and construction_year = #{constructionYear}</if>
|
||||||
|
<if test="affiliationTownship != null and affiliationTownship != ''"> and affiliation_township = #{affiliationTownship}</if>
|
||||||
|
<if test="managementLeader != null and managementLeader != ''"> and management_leader = #{managementLeader}</if>
|
||||||
|
<if test="managementLeaderTelephone != null and managementLeaderTelephone != ''"> and management_leader_telephone = #{managementLeaderTelephone}</if>
|
||||||
|
<if test="managementUnit != null and managementUnit != ''"> and management_unit = #{managementUnit}</if>
|
||||||
|
<if test="remarksInformation != null and remarksInformation != ''"> and remarks_information = #{remarksInformation}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationMonitorById" parameterType="Long" resultMap="DeviceInformationMonitorResult">
|
||||||
|
<include refid="selectDeviceInformationMonitorVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertDeviceInformationMonitor" parameterType="DeviceInformationMonitor" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into iot_device_information_monitor
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">name,</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding,</if>
|
||||||
|
<if test="type != null">type,</if>
|
||||||
|
<if test="longitude != null">longitude,</if>
|
||||||
|
<if test="latitude != null">latitude,</if>
|
||||||
|
<if test="installationLocation != null">installation_location,</if>
|
||||||
|
<if test="deviceBrand != null">device_brand,</if>
|
||||||
|
<if test="deviceType != null">device_type,</if>
|
||||||
|
<if test="nameProject != null">name_project,</if>
|
||||||
|
<if test="constructionYear != null">construction_year,</if>
|
||||||
|
<if test="affiliationTownship != null">affiliation_township,</if>
|
||||||
|
<if test="managementLeader != null">management_leader,</if>
|
||||||
|
<if test="managementLeaderTelephone != null">management_leader_telephone,</if>
|
||||||
|
<if test="managementUnit != null">management_unit,</if>
|
||||||
|
<if test="remarksInformation != null">remarks_information,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">#{name},</if>
|
||||||
|
<if test="deviceEncoding != null">#{deviceEncoding},</if>
|
||||||
|
<if test="type != null">#{type},</if>
|
||||||
|
<if test="longitude != null">#{longitude},</if>
|
||||||
|
<if test="latitude != null">#{latitude},</if>
|
||||||
|
<if test="installationLocation != null">#{installationLocation},</if>
|
||||||
|
<if test="deviceBrand != null">#{deviceBrand},</if>
|
||||||
|
<if test="deviceType != null">#{deviceType},</if>
|
||||||
|
<if test="nameProject != null">#{nameProject},</if>
|
||||||
|
<if test="constructionYear != null">#{constructionYear},</if>
|
||||||
|
<if test="affiliationTownship != null">#{affiliationTownship},</if>
|
||||||
|
<if test="managementLeader != null">#{managementLeader},</if>
|
||||||
|
<if test="managementLeaderTelephone != null">#{managementLeaderTelephone},</if>
|
||||||
|
<if test="managementUnit != null">#{managementUnit},</if>
|
||||||
|
<if test="remarksInformation != null">#{remarksInformation},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateDeviceInformationMonitor" parameterType="DeviceInformationMonitor">
|
||||||
|
update iot_device_information_monitor
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null">name = #{name},</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding = #{deviceEncoding},</if>
|
||||||
|
<if test="type != null">type = #{type},</if>
|
||||||
|
<if test="longitude != null">longitude = #{longitude},</if>
|
||||||
|
<if test="latitude != null">latitude = #{latitude},</if>
|
||||||
|
<if test="installationLocation != null">installation_location = #{installationLocation},</if>
|
||||||
|
<if test="deviceBrand != null">device_brand = #{deviceBrand},</if>
|
||||||
|
<if test="deviceType != null">device_type = #{deviceType},</if>
|
||||||
|
<if test="nameProject != null">name_project = #{nameProject},</if>
|
||||||
|
<if test="constructionYear != null">construction_year = #{constructionYear},</if>
|
||||||
|
<if test="affiliationTownship != null">affiliation_township = #{affiliationTownship},</if>
|
||||||
|
<if test="managementLeader != null">management_leader = #{managementLeader},</if>
|
||||||
|
<if test="managementLeaderTelephone != null">management_leader_telephone = #{managementLeaderTelephone},</if>
|
||||||
|
<if test="managementUnit != null">management_unit = #{managementUnit},</if>
|
||||||
|
<if test="remarksInformation != null">remarks_information = #{remarksInformation},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationMonitorById" parameterType="Long">
|
||||||
|
delete from iot_device_information_monitor where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationMonitorByIds" parameterType="String">
|
||||||
|
delete from iot_device_information_monitor where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
@ -0,0 +1,121 @@
|
|||||||
|
<?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.fastbee.deviceInfo.mapper.DeviceInformationTargetpestsMapper">
|
||||||
|
|
||||||
|
<resultMap type="DeviceInformationTargetpests" id="DeviceInformationTargetpestsResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="deviceBrand" column="device_brand" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="deviceType" column="device_type" />
|
||||||
|
<result property="powerSupply" column="power_supply" />
|
||||||
|
<result property="deviceEncoding" column="device_encoding" />
|
||||||
|
<result property="addressCode" column="address_code" />
|
||||||
|
<result property="installationLocation" column="installation_location" />
|
||||||
|
<result property="longitude" column="longitude" />
|
||||||
|
<result property="latitude" column="latitude" />
|
||||||
|
<result property="dockingMethod" column="docking_method" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectDeviceInformationTargetpestsVo">
|
||||||
|
select id, device_brand, type, device_type, power_supply, device_encoding, address_code, installation_location, longitude, latitude, docking_method, del_flag, create_time, create_by, update_time, update_by from iot_device_information_targetPests
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationTargetpestsList" parameterType="DeviceInformationTargetpests" resultMap="DeviceInformationTargetpestsResult">
|
||||||
|
<include refid="selectDeviceInformationTargetpestsVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="deviceBrand != null and deviceBrand != ''"> and device_brand = #{deviceBrand}</if>
|
||||||
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||||
|
<if test="deviceType != null and deviceType != ''"> and device_type = #{deviceType}</if>
|
||||||
|
<if test="powerSupply != null and powerSupply != ''"> and power_supply = #{powerSupply}</if>
|
||||||
|
<if test="deviceEncoding != null and deviceEncoding != ''"> and device_encoding = #{deviceEncoding}</if>
|
||||||
|
<if test="addressCode != null and addressCode != ''"> and address_code = #{addressCode}</if>
|
||||||
|
<if test="installationLocation != null and installationLocation != ''"> and installation_location = #{installationLocation}</if>
|
||||||
|
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
|
||||||
|
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
|
||||||
|
<if test="dockingMethod != null and dockingMethod != ''"> and docking_method = #{dockingMethod}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationTargetpestsById" parameterType="Long" resultMap="DeviceInformationTargetpestsResult">
|
||||||
|
<include refid="selectDeviceInformationTargetpestsVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertDeviceInformationTargetpests" parameterType="DeviceInformationTargetpests" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into iot_device_information_targetPests
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="deviceBrand != null">device_brand,</if>
|
||||||
|
<if test="type != null">type,</if>
|
||||||
|
<if test="deviceType != null">device_type,</if>
|
||||||
|
<if test="powerSupply != null">power_supply,</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding,</if>
|
||||||
|
<if test="addressCode != null">address_code,</if>
|
||||||
|
<if test="installationLocation != null">installation_location,</if>
|
||||||
|
<if test="longitude != null">longitude,</if>
|
||||||
|
<if test="latitude != null">latitude,</if>
|
||||||
|
<if test="dockingMethod != null">docking_method,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="deviceBrand != null">#{deviceBrand},</if>
|
||||||
|
<if test="type != null">#{type},</if>
|
||||||
|
<if test="deviceType != null">#{deviceType},</if>
|
||||||
|
<if test="powerSupply != null">#{powerSupply},</if>
|
||||||
|
<if test="deviceEncoding != null">#{deviceEncoding},</if>
|
||||||
|
<if test="addressCode != null">#{addressCode},</if>
|
||||||
|
<if test="installationLocation != null">#{installationLocation},</if>
|
||||||
|
<if test="longitude != null">#{longitude},</if>
|
||||||
|
<if test="latitude != null">#{latitude},</if>
|
||||||
|
<if test="dockingMethod != null">#{dockingMethod},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateDeviceInformationTargetpests" parameterType="DeviceInformationTargetpests">
|
||||||
|
update iot_device_information_targetPests
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="deviceBrand != null">device_brand = #{deviceBrand},</if>
|
||||||
|
<if test="type != null">type = #{type},</if>
|
||||||
|
<if test="deviceType != null">device_type = #{deviceType},</if>
|
||||||
|
<if test="powerSupply != null">power_supply = #{powerSupply},</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding = #{deviceEncoding},</if>
|
||||||
|
<if test="addressCode != null">address_code = #{addressCode},</if>
|
||||||
|
<if test="installationLocation != null">installation_location = #{installationLocation},</if>
|
||||||
|
<if test="longitude != null">longitude = #{longitude},</if>
|
||||||
|
<if test="latitude != null">latitude = #{latitude},</if>
|
||||||
|
<if test="dockingMethod != null">docking_method = #{dockingMethod},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationTargetpestsById" parameterType="Long">
|
||||||
|
delete from iot_device_information_targetPests where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationTargetpestsByIds" parameterType="String">
|
||||||
|
delete from iot_device_information_targetPests where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
@ -0,0 +1,121 @@
|
|||||||
|
<?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.fastbee.deviceInfo.mapper.DeviceInformationWormsMapper">
|
||||||
|
|
||||||
|
<resultMap type="DeviceInformationWorms" id="DeviceInformationWormsResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="deviceBrand" column="device_brand" />
|
||||||
|
<result property="deviceType" column="device_type" />
|
||||||
|
<result property="deviceEncoding" column="device_encoding" />
|
||||||
|
<result property="installationLocation" column="installation_location" />
|
||||||
|
<result property="longitude" column="longitude" />
|
||||||
|
<result property="latitude" column="latitude" />
|
||||||
|
<result property="nameProject" column="name_project" />
|
||||||
|
<result property="constructionYear" column="construction_year" />
|
||||||
|
<result property="dockingMethod" column="docking_method" />
|
||||||
|
<result property="delFlag" column="del_flag" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
<result property="createBy" column="create_by" />
|
||||||
|
<result property="updateTime" column="update_time" />
|
||||||
|
<result property="updateBy" column="update_by" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectDeviceInformationWormsVo">
|
||||||
|
select id, name, device_brand, device_type, device_encoding, installation_location, longitude, latitude, name_project, construction_year, docking_method, del_flag, create_time, create_by, update_time, update_by from iot_device_information_worms
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationWormsList" parameterType="DeviceInformationWorms" resultMap="DeviceInformationWormsResult">
|
||||||
|
<include refid="selectDeviceInformationWormsVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
|
<if test="deviceBrand != null and deviceBrand != ''"> and device_brand = #{deviceBrand}</if>
|
||||||
|
<if test="deviceType != null and deviceType != ''"> and device_type = #{deviceType}</if>
|
||||||
|
<if test="deviceEncoding != null and deviceEncoding != ''"> and device_encoding = #{deviceEncoding}</if>
|
||||||
|
<if test="installationLocation != null and installationLocation != ''"> and installation_location = #{installationLocation}</if>
|
||||||
|
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
|
||||||
|
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
|
||||||
|
<if test="nameProject != null and nameProject != ''"> and name_project = #{nameProject}</if>
|
||||||
|
<if test="constructionYear != null "> and construction_year = #{constructionYear}</if>
|
||||||
|
<if test="dockingMethod != null and dockingMethod != ''"> and docking_method = #{dockingMethod}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectDeviceInformationWormsById" parameterType="Long" resultMap="DeviceInformationWormsResult">
|
||||||
|
<include refid="selectDeviceInformationWormsVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertDeviceInformationWorms" parameterType="DeviceInformationWorms" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into iot_device_information_worms
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">name,</if>
|
||||||
|
<if test="deviceBrand != null">device_brand,</if>
|
||||||
|
<if test="deviceType != null">device_type,</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding,</if>
|
||||||
|
<if test="installationLocation != null">installation_location,</if>
|
||||||
|
<if test="longitude != null">longitude,</if>
|
||||||
|
<if test="latitude != null">latitude,</if>
|
||||||
|
<if test="nameProject != null">name_project,</if>
|
||||||
|
<if test="constructionYear != null">construction_year,</if>
|
||||||
|
<if test="dockingMethod != null">docking_method,</if>
|
||||||
|
<if test="delFlag != null">del_flag,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="createBy != null">create_by,</if>
|
||||||
|
<if test="updateTime != null">update_time,</if>
|
||||||
|
<if test="updateBy != null">update_by,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">#{name},</if>
|
||||||
|
<if test="deviceBrand != null">#{deviceBrand},</if>
|
||||||
|
<if test="deviceType != null">#{deviceType},</if>
|
||||||
|
<if test="deviceEncoding != null">#{deviceEncoding},</if>
|
||||||
|
<if test="installationLocation != null">#{installationLocation},</if>
|
||||||
|
<if test="longitude != null">#{longitude},</if>
|
||||||
|
<if test="latitude != null">#{latitude},</if>
|
||||||
|
<if test="nameProject != null">#{nameProject},</if>
|
||||||
|
<if test="constructionYear != null">#{constructionYear},</if>
|
||||||
|
<if test="dockingMethod != null">#{dockingMethod},</if>
|
||||||
|
<if test="delFlag != null">#{delFlag},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="createBy != null">#{createBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime},</if>
|
||||||
|
<if test="updateBy != null">#{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateDeviceInformationWorms" parameterType="DeviceInformationWorms">
|
||||||
|
update iot_device_information_worms
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null">name = #{name},</if>
|
||||||
|
<if test="deviceBrand != null">device_brand = #{deviceBrand},</if>
|
||||||
|
<if test="deviceType != null">device_type = #{deviceType},</if>
|
||||||
|
<if test="deviceEncoding != null">device_encoding = #{deviceEncoding},</if>
|
||||||
|
<if test="installationLocation != null">installation_location = #{installationLocation},</if>
|
||||||
|
<if test="longitude != null">longitude = #{longitude},</if>
|
||||||
|
<if test="latitude != null">latitude = #{latitude},</if>
|
||||||
|
<if test="nameProject != null">name_project = #{nameProject},</if>
|
||||||
|
<if test="constructionYear != null">construction_year = #{constructionYear},</if>
|
||||||
|
<if test="dockingMethod != null">docking_method = #{dockingMethod},</if>
|
||||||
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
<if test="createBy != null">create_by = #{createBy},</if>
|
||||||
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||||
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationWormsById" parameterType="Long">
|
||||||
|
delete from iot_device_information_worms where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteDeviceInformationWormsByIds" parameterType="String">
|
||||||
|
delete from iot_device_information_worms where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
Loading…
x
Reference in New Issue
Block a user