queryById(@RequestParam(name="id",required=true) String id) {
+ Thermalcompany thermalcompany = thermalcompanyService.getById(id);
+ if(thermalcompany==null) {
+ return Result.error("未找到对应数据");
+ }
+ return Result.OK(thermalcompany);
+ }
+
+ /**
+ * 导出excel
+ *
+ * @param request
+ * @param thermalcompany
+ */
+ @RequiresPermissions("heating:bl_thermalcompany:exportXls")
+ @RequestMapping(value = "/exportXls")
+ public ModelAndView exportXls(HttpServletRequest request, Thermalcompany thermalcompany) {
+ return super.exportXls(request, thermalcompany, Thermalcompany.class, "热力公司");
+ }
+
+ /**
+ * 通过excel导入数据
+ *
+ * @param request
+ * @param response
+ * @return
+ */
+ @RequiresPermissions("heating:bl_thermalcompany:importExcel")
+ @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+ public Result> importExcel(HttpServletRequest request, HttpServletResponse response) {
+ return super.importExcel(request, response, Thermalcompany.class);
+ }
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/DataExtractConfig.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/DataExtractConfig.java
new file mode 100644
index 0000000..f0c563c
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/DataExtractConfig.java
@@ -0,0 +1,68 @@
+package org.jeecg.modules.heating.entity;
+
+import com.baomidou.mybatisplus.annotation.*;
+import lombok.Data;
+import org.jeecg.common.system.base.entity.JeecgEntity;
+
+import java.io.Serializable;
+
+/**
+ * Class :数据抽取配置Entity
+ *
功能描述:功能描述
+ */
+@Data
+@TableName("bl_data_extract_config")
+public class DataExtractConfig implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ /**
+ * id
+ */
+ @TableId(type = IdType.AUTO)
+ private Long id;
+ private String sim; //手机号
+ private String onePipeSim; //一次网抽取sim卡号
+ private String onePipeType; //一次网抽取类型 0无 1一次网 2二次网
+ private String twoPipeSim; //二次网抽取sim卡号
+ private String twoPipeType; //二次网抽取类型 0无 1一次网 2二次网
+ private String flag; //是否生效 0失效 1生效
+
+ @TableField(exist = false)
+ private Integer companyId;//热力公司
+ @TableField(exist = false)
+ private String company;
+ @TableField(exist = false)
+ private Integer sourceId;//热源站
+ @TableField(exist = false)
+ private String source;
+ @TableField(exist = false)
+ private Integer stationId;//换热站
+ @TableField(exist = false)
+ private String station;
+
+ @TableField(exist = false)
+ private Integer oneCompanyId;//一次网热力公司
+ @TableField(exist = false)
+ private String oneCompany;
+ @TableField(exist = false)
+ private Integer oneSourceId;//一次网热源站
+ @TableField(exist = false)
+ private String oneSource;
+ @TableField(exist = false)
+ private Integer oneStationId;//一次网换热站
+ @TableField(exist = false)
+ private String oneStation;
+ @TableField(exist = false)
+ private Integer twoCompanyId;//二次网热力公司
+ @TableField(exist = false)
+ private String twoCompany;
+ @TableField(exist = false)
+ private Integer twoSourceId;//二次网热源站
+ @TableField(exist = false)
+ private String twoSource;
+ @TableField(exist = false)
+ private Integer twoStationId;//二次网换热站
+ @TableField(exist = false)
+ private String twoStation;
+
+}
\ No newline at end of file
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Heatanalysis.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Heatanalysis.java
new file mode 100644
index 0000000..ceab39c
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Heatanalysis.java
@@ -0,0 +1,139 @@
+package org.jeecg.modules.heating.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.FieldStrategy;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecg.common.system.base.entity.JeecgEntity;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ *
Class :管网温压检测Entity
+ *
功能描述:功能描述
+ */
+@Data
+@TableName("bl_heatanalysis")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+public class Heatanalysis extends JeecgEntity {
+
+ private static final long serialVersionUID = 1L;
+
+ @TableField(exist = false)
+ private java.lang.String createBy;
+ @TableField(exist = false)
+ @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ private java.util.Date createTime;
+ @TableField(exist = false)
+ private java.lang.String updateBy;
+ @TableField(exist = false)
+ @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+ private java.util.Date updateTime;
+
+ @TableField(exist = false)
+ @Excel(name="热力公司", width = 15)
+ private String view001Name;//公司名称
+ @TableField(exist = false)
+ @Excel(name="热源名称", width = 15)
+ private String view002Name;//热源名称
+ @TableField(exist = false)
+ private String view003Name;//热源所名称
+ @TableField(exist = false)
+ @Excel(name="换热站名称", width = 15)
+ private String view004Name;//热力站名称
+
+ private Integer view001; // 热力公司
+ private Integer view002; // 热源站
+ private String view003; // 热源所
+ private String view004; // 换热站
+ @Excel(name = "数据时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @TableField(updateStrategy = FieldStrategy.NEVER)
+ private Date datatime; // 数据时间
+ private Integer caveat; // caveat
+ @Excel(name="一次供水温度", width = 15)
+ private String view005; // 一次供水温度
+ @Excel(name="一次回水温度", width = 15)
+ private String view006; // 一次回水温度
+ @Excel(name="一次供水压力", width = 15)
+ private String view007; // 一次供水压力
+ @Excel(name="一次回水压力", width = 15)
+ private String view008; // 一次回水压力
+ @Excel(name="二次供水温度", width = 15)
+ private String view009; // 二次供水温度
+ @Excel(name="二次回水温度", width = 15)
+ private String view010; // 二次回水温度
+ @Excel(name="二次供水压力", width = 15)
+ private String view011; // 二次供水压力
+ @Excel(name="二次回水压力", width = 15)
+ private String view012; // 二次回水压力
+ private String view013; // view013
+ private String view014; // view014
+ private String view015; // view015
+ private String view016; // view016
+ private String view017; // view017
+ private String view018; // view018
+ private String view019; // view019
+ private String view020; // view020
+ private String view021; // view021
+ private String view022; // view022
+ private String view023; // view023
+ private String view024; // view024
+ private String view025; // view025
+ private String view026; // view026
+ private String view027; // view027
+ private String view028; // view028
+ private String view029; // view029
+ private String view030; // view030
+ private String sim; // sim
+ private String code; // code
+ private Integer reportType;//数据采集类型 1设备自动上报 2定时模拟
+ private String fromFlow; // 温度是否从流量取 0否 1是
+ private String view031; // 流量设备SN,view031到view047全是从流量表上获取的数据
+ private String view032; // 流量数据上报时间
+ private String view033; // 仪表ID
+ private String view034; // 数据有效标识 0无效 1有效
+ private String view035; // 供水温度
+ private String view036; // 回水温度
+ private String view037; // 瞬时流量
+ private String view038; // 正累积流量
+ private String view039; // 负累积流量
+ private String view040; // 净累积流量
+ private String view041; // 瞬时热量
+ private String view042; // 正累积热量
+ private String view043; // 负累积热量
+ private String view044; // 净累积热量
+ private String view045; // 流体速度
+ private String view046; // 流量因子
+ private String view047; // 热量因子
+ private Integer isExtract;//是否抽取 0否 1是
+ /**地区类型*/
+ @Excel(name = "地区类型", width = 15)
+ private java.lang.String regionType;
+
+ @TableField(exist = false)
+ private Integer isExtracted;//是否被抽取 0否 1是
+ @TableField(exist = false)
+ private Integer isTimeout;//是否超时 0否 1是
+
+ @TableField(exist = false)
+ private String SDate;//开始时间
+ @TableField(exist = false)
+ private String EDate;//结束时间
+ @TableField(exist = false)
+ private String tableName;//表名字
+ private String delFlag; // 删除标识
+
+
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/HeatanalysisHistory.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/HeatanalysisHistory.java
new file mode 100644
index 0000000..f19627f
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/HeatanalysisHistory.java
@@ -0,0 +1,116 @@
+package org.jeecg.modules.heating.entity;
+
+import com.baomidou.mybatisplus.annotation.FieldStrategy;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+import lombok.Data;
+import org.jeecg.common.system.base.entity.JeecgEntity;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+/**
+ *
Class :管网温压检测Entity
+ *
功能描述:功能描述
+ */
+@Data
+@TableName("bl_heatanalysis_YYMM")
+public class HeatanalysisHistory extends JeecgEntity {
+
+ private static final long serialVersionUID = 1L;
+
+ @TableField(exist = false)
+ @Excel(name="热力公司", width = 15)
+ private String view001Name;//公司名称
+ @TableField(exist = false)
+ @Excel(name="热源名称", width = 15)
+ private String view002Name;//热源名称
+ @TableField(exist = false)
+ private String view003Name;//热源所名称
+ @TableField(exist = false)
+ @Excel(name="换热站名称", width = 15)
+ private String view004Name;//热力站名称
+
+ private Integer view001; // 热力公司
+ private Integer view002; // 热源站
+ private String view003; // 热源所
+ private String view004; // 换热站
+ @Excel(name = "数据时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+ @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
+ @TableField(updateStrategy = FieldStrategy.NEVER)
+ private Date datatime; // 数据时间
+ private Integer caveat; // caveat
+ @Excel(name="一次供水温度", width = 15)
+ private String view005; // 一次供水温度
+ @Excel(name="一次回水温度", width = 15)
+ private String view006; // 一次回水温度
+ @Excel(name="一次供水压力", width = 15)
+ private String view007; // 一次供水压力
+ @Excel(name="一次回水压力", width = 15)
+ private String view008; // 一次回水压力
+ @Excel(name="二次供水温度", width = 15)
+ private String view009; // 二次供水温度
+ @Excel(name="二次回水温度", width = 15)
+ private String view010; // 二次回水温度
+ @Excel(name="二次供水压力", width = 15)
+ private String view011; // 二次供水压力
+ @Excel(name="二次回水压力", width = 15)
+ private String view012; // 二次回水压力
+ private String view013; // view013
+ private String view014; // view014
+ private String view015; // view015
+ private String view016; // view016
+ private String view017; // view017
+ private String view018; // view018
+ private String view019; // view019
+ private String view020; // view020
+ private String view021; // view021
+ private String view022; // view022
+ private String view023; // view023
+ private String view024; // view024
+ private String view025; // view025
+ private String view026; // view026
+ private String view027; // view027
+ private String view028; // view028
+ private String view029; // view029
+ private String view030; // view030
+ private String sim; // sim
+ private String code; // code
+ private Integer reportType;//数据采集类型 1设备自动上报 2定时模拟
+ private String fromFlow; // 温度是否从流量取 0否 1是
+ private String view031; // 流量设备SN,view031到view047全是从流量表上获取的数据
+ private Date view032; // 流量数据上报时间
+ private String view033; // 仪表ID
+ private int view034; // 数据有效标识 0无效 1有效
+ private Double view035; // 供水温度
+ private Double view036; // 回水温度
+ private Double view037; // 瞬时流量
+ private Double view038; // 正累积流量
+ private Double view039; // 负累积流量
+ private Double view040; // 净累积流量
+ private Double view041; // 瞬时热量
+ private Double view042; // 正累积热量
+ private Double view043; // 负累积热量
+ private Double view044; // 净累积热量
+ private Double view045; // 流体速度
+ private Double view046; // 流量因子
+ private Double view047; // 热量因子
+ private Integer isExtract;//是否抽取 0否 1是
+ /**地区类型*/
+ @Excel(name = "地区类型", width = 15)
+ private java.lang.String regionType;
+ @TableField(exist = false)
+ private Date SDate;//开始时间
+ @TableField(exist = false)
+ private Date EDate;//结束时间
+ @TableField(exist = false)
+ private String tableName;//表名字
+ private String delFlag; // 删除标识
+ @TableField(exist = false)
+ private String startDate;//开始时间
+ @TableField(exist = false)
+ private String endDate;//结束时间
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Heatsource.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Heatsource.java
new file mode 100644
index 0000000..af3ad42
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Heatsource.java
@@ -0,0 +1,151 @@
+package org.jeecg.modules.heating.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.*;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecg.common.aspect.annotation.Dict;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ *
Class :热源信息管理Entity
+ *
功能描述:功能描述
+ */
+@Data
+@TableName("bl_heatsource")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@Tag(name ="bl_heatsource对象", description="热力源")
+public class Heatsource implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**主键*/
+ @TableId(type = IdType.AUTO)
+ private Integer id;
+ /**锅炉规格*/
+ @Excel(name = "锅炉规格", width = 15)
+ private Double boilerCapacity;
+ /**锅炉类型*/
+ @Excel(name = "锅炉类型", width = 15)
+ @Dict(dicCode = "h_boiler_type")
+ private String boilerType;
+ /**联系人*/
+ @Excel(name = "联系人", width = 15)
+ private String dutyPeople;
+ /**流量回下限*/
+ @Excel(name = "流量回下限", width = 15)
+ private String llcomeDown;
+ /**流量回上限*/
+ @Excel(name = "流量回上限", width = 15)
+ private String llcomeUp;
+ /**流量入下限*/
+ @Excel(name = "流量入下限", width = 15)
+ private String llgoDown;
+ /**流量入上限*/
+ @Excel(name = "流量入上限", width = 15)
+ private String llgoUp;
+ /**建设时间*/
+ @Excel(name = "建设时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private Date setupTime;
+ /**热源名称*/
+ @Excel(name = "热源名称", width = 15)
+ private String sourceName;
+ /**联系电话*/
+ @Excel(name = "联系电话", width = 15)
+ private String sourcePhone;
+ /**热源类型*/
+ @Excel(name = "热源类型", width = 15)
+ @Dict(dicCode = "h_source_type")
+ private String sourceType;
+ /**热力回下限*/
+ @Excel(name = "热力回下限", width = 15)
+ private String wdcomeDown;
+ /**热力回上限*/
+ @Excel(name = "热力回上限", width = 15)
+ private String wdcomeUp;
+ /**热力入下限*/
+ @Excel(name = "热力入下限", width = 15)
+ private String wdgoDown;
+ /**热力入上限*/
+ @Excel(name = "热力入上限", width = 15)
+ private String wdgoUp;
+ /**压力回下限*/
+ @Excel(name = "压力回下限", width = 15)
+ private String ylcomeDown;
+ /**压力回上限*/
+ @Excel(name = "压力回上限", width = 15)
+ private String ylcomeUp;
+ /**压力入下限*/
+ @Excel(name = "压力入下限", width = 15)
+ private String ylgoDown;
+ /**压力入上限*/
+ @Excel(name = "压力入上限", width = 15)
+ private String ylgoUp;
+ /**所属公司*/
+ @Excel(name = "所属公司", width = 15)
+ private Integer company;
+ /**公司名称*/
+ @Excel(name = "公司名称", width = 15)
+ private String companyName;
+ /**公司ID*/
+ @Excel(name = "公司ID", width = 15, dictTable = "bl_thermalcompany", dicText = "company_name", dicCode = "id")
+ @Dict(dictTable = "bl_thermalcompany", dicText = "company_name", dicCode = "id")
+ private String companyId;
+ @TableField(exist = false)
+ private String companyNameView;//公司名称
+ private String sourceImage;//热源图片
+ private String treeId; //树形ID
+ private String heatingArea; //供热面积
+ private String residentialArea; //住宅面积
+ private String noresidentialArea; //非住宅面积
+ private String yearcoal; //年用煤量
+ private String nowcoal; //现储煤量
+ private String yearwater; //年用水量
+ private String yearelectricity; //年用电量
+ private String onenet; //一次网
+ private String secondarynet; //二次网
+ private String boilernum; //锅炉数量
+ private String tonnage; //吨位
+ private String tonnageTwo; //锅炉吨位2
+ @TableField(exist = false)
+ private String stationName;
+ @TableField(exist = false)
+ private String stationAddress;
+ @TableField(exist = false)
+ private String datatime;
+ @TableField(exist = false)
+ private String supplyBuild;
+ @Excel(name = "删除标识", width = 15)
+ @TableLogic
+ private String delFlag; // 删除标识
+ /**创建人*/
+ private String createBy;
+ /**创建时间*/
+ @Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private Date createDate;
+ /**更改人*/
+ private String updateBy;
+ /**更改时间*/
+ @Excel(name = "更改时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private Date updateDate;
+ @TableField(exist = false)
+ private String typeFlag; // 类型标识 1热源 2换热站
+ /**地区类型*/
+ @Excel(name = "地区类型", width = 15)
+ private java.lang.String regionType;
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Heatsourcestation.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Heatsourcestation.java
new file mode 100644
index 0000000..60b1983
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Heatsourcestation.java
@@ -0,0 +1,108 @@
+package org.jeecg.modules.heating.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecg.common.aspect.annotation.Dict;
+import org.jeecg.common.system.base.entity.JeecgEntity;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ *
Class :热力站点管理Entity
+ *
功能描述:功能描述
+ */
+@Data
+@TableName("bl_heatsourcestation")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@Tag(name ="bl_heatsourcestation对象", description="热力站")
+public class Heatsourcestation implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**主键*/
+ @TableId(type = IdType.AUTO)
+ private java.lang.Integer id;
+ @Excel(name="流量回下线", width = 15)
+ private Double llcomeDown; // 流量回下线
+ @Excel(name="流量回上线", width = 15)
+ private Double llcomeUp; // 流量回上线
+ @Excel(name="流量入下线", width = 15)
+ private Double llgoDown; // 流量入下线
+ @Excel(name="流量入上线", width = 15)
+ private Double llgoUp; // 流量入上线
+ @Excel(name="热力回下线", width = 15)
+ private Double wdcomeDown; // 热力回下线
+ @Excel(name="热力回上线", width = 15)
+ private Double wdcomeUp; // 热力回上线
+ @Excel(name="热力入下线", width = 15)
+ private Double wdgoDown; // 热力入下线
+ @Excel(name="热力入上线", width = 15)
+ private Double wdgoUp; // 热力入上线
+ @Excel(name="压力回下线", width = 15)
+ private Double ylcomeDown; // 压力回下线
+ @Excel(name="压力回上线", width = 15)
+ private Double ylcomeUp; // 压力回上线
+ @Excel(name="压力入下线", width = 15)
+ private Double ylgoDown; // 压力入下线
+ @Excel(name="压力入上线", width = 15)
+ private Double ylgoUp; // 压力入上线
+ @Excel(name="联系人", width = 15)
+ private String dutyPeople; // 联系人
+ @Excel(name = "建设时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private java.util.Date setupTime;
+ @Excel(name="换热站地址", width = 15)
+ private String stationAddress; // 换热站地址
+ @Excel(name="换热站名称", width = 15)
+ private String stationName; // 换热站名称
+ @Excel(name="换热站电话", width = 15)
+ private String stationPhone; // 换热站电话
+ @Excel(name="公司", width = 15)
+ private String company; // 公司
+ @Excel(name="热源", width = 15)
+ private String source; // 热源
+ @Excel(name="热力", width = 15)
+ private String substation; // 热力
+ @Excel(name="公司ID", width = 15)
+ @Dict(dictTable = "bl_thermalcompany", dicText = "company_name", dicCode = "id")
+ private String companyId; // 公司ID
+ @Excel(name="公司名称", width = 15)
+ private String companyName; // 公司名称
+ @Excel(name="热源ID", width = 15)
+ @Dict(dictTable = "bl_heatsource", dicText = "source_name", dicCode = "id")
+ private String sourceId; // 热源ID
+ @Excel(name="热源名称", width = 15)
+ private String sourceName; // 热源名称
+ @Excel(name="热力ID", width = 15)
+ private Integer substationId; // 热力ID
+ @Excel(name="热力名称", width = 15)
+ private String substationName; // 热力名称
+ @TableField(exist = false)
+ private String sourceNameView; //热源名称
+ @TableField(exist = false)
+ private String companyNameView;//公司名称
+ @TableField(exist = false)
+ private String substationNameView;//热力分所名称
+ private String sourcestationImage;//热力站图片
+ private String treeId; //树形ID
+ private String supplyBuild; //所供楼宇
+ private String delFlag; // 删除标识
+ @TableField(exist = false)
+ private String typeFlag; // 类型标识 1热源 2换热站
+ @TableField(exist = false)
+ private String regionType; // 地区类型 城区 郊县
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Markinfo.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Markinfo.java
new file mode 100644
index 0000000..c5c033e
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Markinfo.java
@@ -0,0 +1,71 @@
+package org.jeecg.modules.heating.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecg.common.system.base.entity.JeecgEntity;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ *
Class:地图标注信息Entity
+ *
功能描述:功能描述
+ */
+@Data
+@TableName("bl_markinfo")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@Tag(name ="bl_markinfo对象", description="地图标注信息")
+public class Markinfo implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+ /**
+ * ID
+ */
+ @TableId(type = IdType.ASSIGN_ID)
+ private java.lang.String id;
+ private String description; // 描述
+ private String latitude; // 纬度
+ private String longitude; // 经度
+ private String name; // 热源的名称
+ @TableField(exist = false)
+ private String stationId; // 热源的id
+ private String delFlag; // 删除标识
+ private String typeFlag; // 类型标识 1热源 2换热站
+ /**创建人*/
+ private String createBy;
+ /**创建时间*/
+ @Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private Date createDate;
+ /**更改人*/
+ private String updateBy;
+ /**更改时间*/
+ @Excel(name = "更改时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private Date updateDate;
+
+ @TableField(exist = false)
+ private String heatSourceId; // 热源的id
+ @TableField(exist = false)
+ private String heatSourceName; // 热源的名称
+
+ @TableField(exist = false)
+ private String heatStationId; // 热站的id
+ @TableField(exist = false)
+ private String heatStationName; // 热站的名称
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Simconfig.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Simconfig.java
new file mode 100644
index 0000000..78840d7
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Simconfig.java
@@ -0,0 +1,94 @@
+package org.jeecg.modules.heating.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.*;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.Data;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.jeecg.common.aspect.annotation.Dict;
+import org.springframework.format.annotation.DateTimeFormat;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * @Description: 设备信息管理
+ * @Author: jeecg-boot
+ * @Date: 2025-04-09
+ * @Version: V1.0
+ */
+@Data
+@TableName("bl_simconfig")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@Tag(name ="bl_simconfig对象", description="设备信息管理")
+public class Simconfig implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**主键*/
+ @TableId(type = IdType.AUTO)
+ private Integer id;
+ /**手机号*/
+ @Excel(name = "手机号", width = 15)
+ private String sim;
+ /**注册设备时间*/
+ @Excel(name = "注册设备时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private Date occurtime;
+ /**公司名称*/
+ @Excel(name = "公司名称", width = 15)
+ @Dict(dictTable = "bl_thermalcompany", dicText = "company_name", dicCode = "id")
+ private Integer companyCompanyId;
+ @TableField(exist = false)
+ private String companyId;
+ @TableField(exist = false)
+ private String companyName;
+ /**热源名称*/
+ @Excel(name = "热源名称", width = 15)
+ @Dict(dictTable = "bl_heatsource", dicText = "source_name", dicCode = "id")
+ private Integer sourceSourceId;
+ @TableField(exist = false)
+ private String sourceId;
+ @TableField(exist = false)
+ private String sourceName;
+ /**换热站名称*/
+ @Excel(name = "换热站名称", width = 15)
+ @Dict(dictTable = "bl_heatsourcestation", dicText = "station_name", dicCode = "id")
+ private Integer stationStationId;
+ @TableField(exist = false)
+ private String stationId;
+ @TableField(exist = false)
+ private String stationName;
+ /**热力分所名称*/
+ @Excel(name = "热力分所名称", width = 15)
+ private Integer substationId;
+ /**创建者*/
+ private String createBy;
+ /**创建时间*/
+ @Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private Date createDate;
+ /**更改者*/
+ private String updateBy;
+ /**更改时间*/
+ @Excel(name = "更改时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private Date updateDate;
+ /**删除标识*/
+ @Excel(name = "删除标识", width = 15)
+ @TableLogic
+ private String delFlag;
+ /**设备代码*/
+ @Excel(name = "设备代码", width = 15)
+ private String code;/**地区类型*/
+ @Excel(name = "地区类型", width = 15)
+ private java.lang.String regionType;
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Substation.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Substation.java
new file mode 100644
index 0000000..1371f78
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Substation.java
@@ -0,0 +1,58 @@
+package org.jeecg.modules.heating.entity;
+
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import java.util.Date;
+import org.jeecg.common.system.base.entity.JeecgEntity;
+import org.jeecgframework.poi.excel.annotation.Excel;
+
+/**
+ *
Class :热力分所管理Entity
+ *
功能描述:功能描述
+ */
+@Data
+@TableName("bl_substation")
+public class Substation extends JeecgEntity {
+
+ private static final long serialVersionUID = 1L;
+ @Excel(name="供热所地址", width = 15)
+ private String addres; // 供热所地址
+ @Excel(name="供热面积", width = 15)
+ private String area; // 供热面积
+ @Excel(name="管线长度", width = 15)
+ private String conduits; // 管线长度
+ @Excel(name="供热总户数", width = 15)
+ private Integer doorsum; // 供热总户数
+ @Excel(name="成立时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+ private Date establishedtime; // 成立时间
+ @Excel(name="供热区域", width = 15)
+ private String heatarea; // 供热区域
+ @Excel(name="负责人", width = 15)
+ private String inperson; // 负责人
+ @Excel(name="供热所名称", width = 15)
+ private String name; // 供热所名称
+ @Excel(name="十五年以上管网", width = 15)
+ private Double old15conduits; // 十五年以上管网
+ @Excel(name="换热站数量", width = 15)
+ private Integer stacount; // 换热站数量
+ @Excel(name="供热所电话", width = 15)
+ private String tel; // 供热所电话
+ @Excel(name="热力公司", width = 15)
+ private String company; // 热力公司
+ @Excel(name="热源", width = 15)
+ private Integer source; // 热源
+ @Excel(name="热力公司ID", width = 15)
+ private Integer companyId; // 热力公司ID
+ @Excel(name="热力公司名称", width = 15)
+ private String companyName; // 热力公司名称
+ @Excel(name="热源ID", width = 15)
+ private Integer sourceId; // 热源ID
+ @Excel(name="热源名称", width = 15)
+ private String sourceName; // 热源名称
+ @TableField(exist = false)
+ private String companyNameView; // 热力公司名称
+ @TableField(exist = false)
+ private String sourceNameView; // 热源名称
+ private String delFlag; // 删除标识
+}
\ No newline at end of file
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Thermalcompany.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Thermalcompany.java
new file mode 100644
index 0000000..c9b41ce
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/entity/Thermalcompany.java
@@ -0,0 +1,123 @@
+package org.jeecg.modules.heating.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableLogic;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+
+
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.Data;
+
+import java.io.Serializable;
+import java.util.Date;
+
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecg.common.aspect.annotation.Dict;
+import org.jeecg.common.system.base.entity.JeecgEntity;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ *
Class :热力公司配置Entity
+ *
功能描述:功能描述
+ */
+@Data
+@TableName("bl_thermalcompany")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@Tag(name ="bl_thermalcompany对象", description="热力公司")
+public class Thermalcompany implements Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**主键*/
+ @TableId(type = IdType.AUTO)
+ private java.lang.Integer id;
+ /**换热站个数*/
+ @Excel(name = "换热站个数", width = 15)
+ private java.lang.Integer barterHeat;
+ /**锅炉房个数*/
+ @Excel(name = "锅炉房个数", width = 15)
+ private java.lang.Integer boilerHouse;
+ /**公司地址*/
+ @Excel(name = "公司地址", width = 15)
+ private java.lang.String companyAddress;
+ /**公司名称*/
+ @Excel(name = "公司名称", width = 15)
+ private java.lang.String companyName;
+ /**电话*/
+ @Excel(name = "电话", width = 15)
+ private java.lang.String companyPhone;
+ /**公司类型*/
+ @Excel(name = "公司类型", width = 15, dicCode = "h_company_type")
+ @Dict(dicCode = "h_company_type")
+ private java.lang.String companyType;
+ /**其中直供个数*/
+ @Excel(name = "其中直供个数", width = 15)
+ private java.lang.Integer direct;
+ /**供热总户数*/
+ @Excel(name = "供热总户数", width = 15)
+ private java.lang.Integer doorsum;
+ /**管线长度*/
+ @Excel(name = "管线长度", width = 15)
+ private java.lang.Double ductLength;
+ /**负责人*/
+ @Excel(name = "负责人", width = 15)
+ private java.lang.String dutyPeople;
+ /**供热区域*/
+ @Excel(name = "供热区域", width = 15)
+ private java.lang.String heatArea;
+ /**拥有热源*/
+ @Excel(name = "拥有热源", width = 15)
+ private java.lang.Integer heatSource;
+ /**供热面积*/
+ @Excel(name = "供热面积", width = 15)
+ private java.lang.Double heatingArea;
+ /**其中间供个数*/
+ @Excel(name = "其中间供个数", width = 15)
+ private java.lang.Integer indirect;
+ /**非居民热费价格*/
+ @Excel(name = "非居民热费价格", width = 15)
+ private java.lang.Double nonresidentPrice;
+ /**十五年以上管网*/
+ @Excel(name = "十五年以上管网", width = 15)
+ private java.lang.Double old15Length;
+ /**居民热费价格*/
+ @Excel(name = "居民热费价格", width = 15)
+ private java.lang.Double residentPrice;
+ /**成立时间*/
+ @Excel(name = "成立时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private java.util.Date setupTime;
+ /**创建人*/
+ private java.lang.String createBy;
+ /**创建时间*/
+ @Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private java.util.Date createDate;
+ /**更改人*/
+ private java.lang.String updateBy;
+ /**更改时间*/
+ @Excel(name = "更改时间", width = 15, format = "yyyy-MM-dd")
+ @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
+ @DateTimeFormat(pattern="yyyy-MM-dd")
+ private java.util.Date updateDate;
+ /**删除标识*/
+ @Excel(name = "删除标识", width = 15)
+ @TableLogic
+ private java.lang.String delFlag;
+ /**树形ID*/
+ @Excel(name = "树形ID", width = 15)
+ private java.lang.String treeId;
+ /**排序ID*/
+ @Excel(name = "排序ID", width = 15)
+ private java.lang.Integer orderId;
+ /**地区类型*/
+ @Excel(name = "地区类型", width = 15)
+ private java.lang.String regionType;
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/FlowanalysisJob.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/FlowanalysisJob.java
new file mode 100644
index 0000000..17d9be4
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/FlowanalysisJob.java
@@ -0,0 +1,192 @@
+package org.jeecg.modules.heating.job;
+
+import cn.hutool.json.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang.StringUtils;
+import org.apache.http.HttpEntity;
+import org.apache.http.client.methods.CloseableHttpResponse;
+import org.apache.http.client.methods.HttpPost;
+import org.apache.http.entity.ContentType;
+import org.apache.http.entity.StringEntity;
+import org.apache.http.impl.client.CloseableHttpClient;
+import org.apache.http.impl.client.HttpClientBuilder;
+import org.apache.http.util.EntityUtils;
+import org.jeecg.common.util.DateUtils;
+import org.jeecg.modules.heating.entity.Heatanalysis;
+import org.jeecg.modules.heating.service.HeatanalysisService;
+import org.jeecg.modules.waterFlowConfig.entity.BlWaterFlowConfig;
+import org.jeecg.modules.waterFlowConfig.service.IBlWaterFlowConfigService;
+import org.quartz.Job;
+import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import java.io.IOException;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+/**
+ * 发送消息任务
+ * @author: jeecg-boot
+ */
+
+@Slf4j
+public class FlowanalysisJob implements Job {
+
+ @Autowired
+ private HeatanalysisService heatanalysisService;
+
+ @Autowired
+ private IBlWaterFlowConfigService WaterFlowConfigService;
+
+ @Override
+ public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
+
+ log.info(String.format("获取热量水流量数据 ! 时间:" + DateUtils.getTimestamp()));
+ QueryWrapper queryWrapper = new QueryWrapper<>();
+ queryWrapper.eq("del_flag","0");
+ List list = WaterFlowConfigService.list(queryWrapper);
+ for(BlWaterFlowConfig config : list){
+ try{
+ String sn = config.getSn();
+ String json = getWebInfo(sn);
+ if(StringUtils.equals(json,"false")) continue;
+ JSONObject jsonObject = new JSONObject(json);
+ log.info("jsonObject:"+jsonObject);
+ String success = jsonObject.getStr("success");
+ if(StringUtils.equals(success,"true")){
+ QueryWrapper heatanalysisQueryWrapper = new QueryWrapper<>();
+ heatanalysisQueryWrapper.eq("view031",sn);
+ heatanalysisQueryWrapper.last("limit 1");
+ Heatanalysis heatanalysis = heatanalysisService.getOne(heatanalysisQueryWrapper);
+ if(heatanalysis != null){
+ String view032_old = heatanalysis.getView032();
+ String data = jsonObject.getStr("data");
+ JSONObject dataObject = new JSONObject(data);
+ String view032 = dataObject.getStr("logat");
+ if(StringUtils.equals(view032,view032_old)){
+ log.info("--------数据重复---------");
+ continue;
+ }
+ String view033 = dataObject.getStr("ID");
+ String view034 = dataObject.getStr("valid");
+ String view035 = dataObject.getStr("gswd");
+ String view036 = dataObject.getStr("hswd");
+ String view037 = dataObject.getStr("flowRate");
+ String view037_2 = dataObject.getStr("ssll");
+ String view038 = dataObject.getStr("pflowAccumulator");
+ String view038_2 = dataObject.getStr("zljll");
+ String view039 = dataObject.getStr("nflowAccumulator");
+ String view039_2 = dataObject.getStr("fljll");
+ String view040 = dataObject.getStr("netflowAccumulator");
+ String view040_2 = dataObject.getStr("jljll");
+ String view041 = dataObject.getStr("ssrl");
+ String view042 = dataObject.getStr("zljrl");
+ String view043 = dataObject.getStr("fljrl");
+ String view044 = dataObject.getStr("jljrl");
+ String view045 = dataObject.getStr("ltsd");
+ String view046 = dataObject.getStr("n");
+ String view047 = dataObject.getStr("m");
+ heatanalysis.setView031(sn);
+ heatanalysis.setView032(view032);
+ heatanalysis.setView033(view033);
+ heatanalysis.setView034(view034);
+ heatanalysis.setView035(view035);
+ heatanalysis.setView036(view036);
+ if (StringUtils.isEmpty(view037)){
+ heatanalysis.setView037(view037_2);
+ }else{
+ heatanalysis.setView037(view037);
+ }
+ if (StringUtils.isEmpty(view038)){
+ heatanalysis.setView038(view038_2);
+ }else{
+ heatanalysis.setView038(view038);
+ }
+ if (StringUtils.isEmpty(view039)){
+ heatanalysis.setView039(view039_2);
+ }else{
+ heatanalysis.setView039(view039);
+ }
+ if (StringUtils.isEmpty(view040)){
+ heatanalysis.setView040(view040_2);
+ }else{
+ heatanalysis.setView040(view040);
+ }
+ heatanalysis.setView041(view041);
+ heatanalysis.setView042(view042);
+ heatanalysis.setView043(view043);
+ heatanalysis.setView044(view044);
+ heatanalysis.setView045(view045);
+ heatanalysis.setView046(view046);
+ heatanalysis.setView047(view047);
+ heatanalysisService.exeWater(heatanalysis);
+
+ }
+ }
+
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+
+
+ public static String getWebInfo(String sn) {
+ String result = "false";
+ try {
+ // 1. 创建URL对象
+ URL url = new URL("http://49.235.190.102:8068/api/v1/feeding/snap/b501a6e0-d23f-4282-8fab-78661bf999e7/"+sn);
+
+ // 2. 打开连接,转换为HttpURLConnection
+ HttpURLConnection connection = (HttpURLConnection) url.openConnection();
+
+ // 3. 设置请求方法为GET
+ connection.setRequestMethod("GET");
+
+ // 4. 可选:设置请求头(例如,指定期望的响应内容类型)
+ connection.setRequestProperty("Accept", "application/json");
+
+ // 5. 获取响应代码
+ int responseCode = connection.getResponseCode();
+ System.out.println("Response Code: " + responseCode);
+
+ // 6. 如果响应成功(200 OK),读取响应体
+ if (responseCode == HttpURLConnection.HTTP_OK) {
+ // 使用BufferedReader读取输入流
+ BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
+ String inputLine;
+ StringBuilder response = new StringBuilder();
+
+ while ((inputLine = in.readLine()) != null) {
+ response.append(inputLine);
+ }
+ in.close(); // 关闭流
+
+ // 打印响应结果
+ log.info(String.format("获取热量水流量数据 - Response Body:" + response.toString()));
+ result = response.toString();
+ } else {
+ log.error(String.format("获取热量水流量数据 - GET request failed."));
+ result = "false";
+ }
+
+ // 7. 断开连接
+ connection.disconnect();
+
+ } catch (IOException e) {
+ e.printStackTrace();
+ result = "false";
+ }
+ return result;
+ }
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/HeatingReportJob.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/HeatingReportJob.java
new file mode 100644
index 0000000..963062c
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/HeatingReportJob.java
@@ -0,0 +1,194 @@
+package org.jeecg.modules.heating.job;
+
+import cn.hutool.json.JSONObject;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.http.HttpEntity;
+import org.apache.http.client.methods.CloseableHttpResponse;
+import org.apache.http.client.methods.HttpPost;
+import org.apache.http.entity.ContentType;
+import org.apache.http.entity.StringEntity;
+import org.apache.http.impl.client.CloseableHttpClient;
+import org.apache.http.impl.client.HttpClientBuilder;
+import org.apache.http.util.EntityUtils;
+import org.jeecg.common.api.dto.message.MessageDTO;
+import org.jeecg.common.system.api.ISysBaseAPI;
+import org.jeecg.common.util.DateUtils;
+import org.jeecg.modules.heating.entity.Heatanalysis;
+import org.jeecg.modules.heating.service.HeatanalysisService;
+import org.jeecg.modules.message.entity.SysMessage;
+import org.jeecg.modules.message.handle.enums.SendMsgStatusEnum;
+import org.jeecg.modules.message.service.ISysMessageService;
+import org.quartz.Job;
+import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import java.io.IOException;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 发送消息任务
+ * @author: jeecg-boot
+ */
+
+@Slf4j
+public class HeatingReportJob implements Job {
+
+ @Autowired
+ private HeatanalysisService heatanalysisService;
+
+ @Override
+ public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
+
+ log.info(String.format("热量上报 HeatingReportJob ! 时间:" + DateUtils.getTimestamp()));
+
+ String body = PsdsjApiTask.getToken();
+ JSONObject jsonObjectTok = new JSONObject(body);
+ if(jsonObjectTok!=null && jsonObjectTok.get("access_token")!=null && !"".equals(jsonObjectTok.get("access_token"))){
+ String token = jsonObjectTok.get("access_token").toString();
+ log.info("token:"+token);
+ String url = "http://36.135.12.177:12101/uploadsHeatData";
+ SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ String SDate = sdf.format(new Date());
+ String tableName = "heatanalysis_"+SDate.substring(2, 4)+SDate.substring(5, 7);
+ List list = new ArrayList<>();
+ list.add("22423010001");//磐石市白云物业管理有限责任公司 磐石白云物业供热站 白云锅炉房
+ list.add("12423011000");//磐石市北亚供热有限公司 磐石北亚供热站 北亚锅炉房
+// list.add("");//磐石市颐和供热有限责任公司 磐石颐和供热站 三兴嘉园锅炉房
+ list.add("22423030004");//磐石市鼎丰供热有限责任公司 磐石鼎丰供热站 汇城国樾府小区(香格里拉
+ list.add("22423013000");//磐石市冬晨供热有限公司 磐石冬晨供热站 冬晨锅炉房
+ list.add("22423014000");//磐石市海达供热有限公司 磐石海达供热站 海达锅炉房
+ list.add("22423001001");//磐石市红大供热有限公司 磐石红大供热站 红大锅炉房
+ list.add("22423002001");//磐石市宏城供热有限公司 磐石宏城供热站 宏城锅炉房
+ list.add("22423003002");//磐石市隆昌物业管理有限公司 磐石隆昌物业供热站 隆昌1处锅炉房
+ list.add("22423003005");//磐石市琉森供热管理有限公司 磐石琉森供热站 隆昌二处锅炉房
+ list.add("32423012001");//磐石市牟力供热有限公司 磐石牟力供热站 牟力锅炉房
+ list.add("22423004000");//磐石市三兴供热有限公司 磐石三兴供热站 三兴锅炉房
+ list.add("12423005000");//磐石市升旺供热有限公司 磐石升旺供热站 升旺锅炉房
+ list.add("22423008001");//磐石市万达物业管理有限公司 磐石万达供热站 万达锅炉房
+ list.add("22423006000");//磐石市馨达供热有限公司 磐石馨达供热站 馨达锅炉房
+ list.add("22423009000");//磐石市忠信供热有限公司 磐石忠信供热站 忠信锅炉房
+ list.add("22423020000");//磐石市恒升供热有限公司 磐石恒升供热站 恒升锅炉房
+// list.add("");//磐石市柏悦供热有限公司 磐石柏悦供热站
+ for(String sim:list){
+ Heatanalysis heatanalysis = new Heatanalysis();
+ heatanalysis.setSim(sim);
+ heatanalysis.setTableName(tableName);
+ Heatanalysis heatanalysis2 = heatanalysisService.getHeatOne(heatanalysis);
+ String CompanyName = "";
+ String HeatName = "";
+// if("1111111111".equals(sim)){
+ if("22423010001".equals(sim)){
+ CompanyName = "磐石市白云物业管理有限责任公司";
+ HeatName = "磐石白云物业供热站";
+ }else if("12423011000".equals(sim)){
+ CompanyName = "磐石市北亚供热有限公司";
+ HeatName = "磐石北亚供热站";
+ }else if("12423007000".equals(sim)){
+ CompanyName = "磐石市颐和供热有限责任公司";
+ HeatName = "磐石颐和供热站";
+ }else if("22423030004".equals(sim)){
+ CompanyName = "磐石市鼎丰供热有限责任公司";
+ HeatName = "磐石鼎丰供热站";
+ }else if("22423013000".equals(sim)){
+ CompanyName = "磐石市冬晨供热有限公司";
+ HeatName = "磐石冬晨供热站";
+ }else if("22423014000".equals(sim)){
+ CompanyName = "磐石市海达供热有限公司";
+ HeatName = "磐石海达供热站";
+ }else if("22423001001".equals(sim)){
+ CompanyName = "磐石市红大供热有限公司";
+ HeatName = "磐石红大供热站";
+ }else if("22423002001".equals(sim)){
+ CompanyName = "磐石市宏城供热有限公司";
+ HeatName = "磐石宏城供热站";
+ }else if("22423003002".equals(sim)){
+ CompanyName = "磐石市隆昌物业管理有限公司";
+ HeatName = "磐石隆昌物业供热站";
+ }else if("22423003005".equals(sim)){
+ CompanyName = "磐石市琉森供热管理有限公司";
+ HeatName = "磐石琉森供热站";
+ }else if("32423012001".equals(sim)){
+ CompanyName = "磐石市牟力供热有限公司";
+ HeatName = "磐石牟力供热站";
+ }else if("22423004000".equals(sim)){
+ CompanyName = "磐石市三兴供热有限公司";
+ HeatName = "磐石三兴供热站";
+ }else if("12423005000".equals(sim)){
+ CompanyName = "磐石市升旺供热有限公司";
+ HeatName = "磐石升旺供热站";
+ }else if("22423008001".equals(sim)){
+ CompanyName = "磐石市万达物业管理有限公司";
+ HeatName = "磐石万达供热站";
+ }else if("22423006000".equals(sim)){
+ CompanyName = "磐石市馨达供热有限公司";
+ HeatName = "磐石馨达供热站";
+ }else if("22423009000".equals(sim)){
+ CompanyName = "磐石市忠信供热有限公司";
+ HeatName = "磐石忠信供热站";
+ }else if("22423020000".equals(sim)){
+ CompanyName = "磐石市恒升供热有限公司";
+ HeatName = "磐石恒升供热站";
+ }
+// else if("".equals(sim)){
+// CompanyName = "磐石市柏悦供热有限公司";
+// HeatName = "磐石柏悦供热站";
+// }
+ try{
+ if(CompanyName!=null&&!"".equals(CompanyName)&&heatanalysis2!=null&&!"".equals(heatanalysis2.getId())){
+ log.info("sim:"+sim);
+ JSONObject jsonObject = new JSONObject();
+ JSONObject jsonObject2 = new JSONObject();
+ jsonObject2.put("CompanyName", CompanyName);//供热公司名称
+ jsonObject2.put("HeatName", HeatName);//热源名称
+ jsonObject2.put("DateTime", sdf.format(new Date()));//数据上传时间
+ jsonObject2.put("PrimaryFeedTem", heatanalysis2.getView005());//供水温度
+ jsonObject2.put("PrimaryFeedPressure", heatanalysis2.getView007());//供水压力
+ jsonObject2.put("PrimaryReturnTem", heatanalysis2.getView006());//回水温度
+ jsonObject2.put("PrimaryReturnPressure", heatanalysis2.getView008());//回水压力
+ jsonObject2.put("FeedFlow","0");//供水瞬时流量
+ jsonObject2.put("ReturnFlow", "0");//供水累计流量
+ jsonObject.put("InParam", jsonObject2);
+ jsonObject.put("RequestType", "normal");//默认填写
+ jsonObject.put("RequestID","121");//默认填写
+ log.info("jsonObject:"+jsonObject);
+ uploadData5(url,jsonObject.toString(),token);
+ }
+ }catch(Exception e){
+ e.printStackTrace();
+ }
+ }
+ }
+
+ }
+
+ public static void uploadData5(String url,String params,String token) throws IOException {
+ // 创建HttpClient对象
+ CloseableHttpClient httpClient = HttpClientBuilder.create().build();
+ // 创建HttpPost对象
+ HttpPost httpPost = new HttpPost(url);
+ // 设置Content-Type为application/json
+ httpPost.setHeader("Content-Type", "application/json");
+ httpPost.setHeader("Authorization", "Bearer "+token);
+ // 设置请求体参数
+ String requestBody = params;
+ // 设置请求体
+ StringEntity entity = new StringEntity(requestBody, ContentType.APPLICATION_JSON);
+ httpPost.setEntity(entity);
+ // 发送请求并获取响应
+ CloseableHttpResponse response = httpClient.execute(httpPost);
+ // 解析响应
+ HttpEntity responseEntity = response.getEntity();
+ String responseBody = EntityUtils.toString(responseEntity);
+ // 关闭响应和HttpClient
+ response.close();
+ httpClient.close();
+ // 输出响应结果
+ log.info(responseBody);
+ }
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/HeatingSimulateJob.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/HeatingSimulateJob.java
new file mode 100644
index 0000000..b04e678
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/HeatingSimulateJob.java
@@ -0,0 +1,36 @@
+package org.jeecg.modules.heating.job;
+
+import lombok.extern.slf4j.Slf4j;
+import org.jeecg.common.util.DateUtils;
+import org.jeecg.modules.heating.entity.Heatanalysis;
+import org.jeecg.modules.heating.service.HeatanalysisService;
+import org.quartz.Job;
+import org.quartz.JobExecutionContext;
+import org.quartz.JobExecutionException;
+import org.springframework.beans.factory.annotation.Autowired;
+
+import java.util.List;
+
+/**
+ * 模拟数据
+ * @author: jeecg-boot
+ */
+
+@Slf4j
+public class HeatingSimulateJob implements Job {
+
+ @Autowired
+ private HeatanalysisService heatanalysisService;
+
+ @Override
+ public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
+ log.info(String.format("模拟生成数据 HeatingSimulateJob ! 时间:" + DateUtils.getTimestamp()));
+ List list = heatanalysisService.findSimulateList(new Heatanalysis());
+ for (Heatanalysis heat : list)
+ {
+ log.info(String.format("code:"+heat.getCode()+" sim:" + heat.getSim()));
+ heatanalysisService.exeProc(heat);
+ }
+ }
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/PsdsjApiTask.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/PsdsjApiTask.java
new file mode 100644
index 0000000..a795449
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/job/PsdsjApiTask.java
@@ -0,0 +1,58 @@
+package org.jeecg.modules.heating.job;
+
+import java.io.IOException;
+import java.util.HashMap;
+import java.util.Map;
+import org.jeecg.modules.message.util.HttpPostTest;
+import org.apache.http.HttpEntity;
+import org.apache.http.client.methods.CloseableHttpResponse;
+import org.apache.http.client.methods.HttpPost;
+import org.apache.http.entity.ContentType;
+import org.apache.http.entity.StringEntity;
+import org.apache.http.impl.client.CloseableHttpClient;
+import org.apache.http.impl.client.HttpClientBuilder;
+import org.apache.http.util.EntityUtils;
+
+public class PsdsjApiTask {
+
+ //获取token
+ public static String getToken() {
+ String url = "http://36.135.12.74:11006/oauth/token";
+ Map params = new HashMap<>();
+ params.put("grant_type", "password");
+ params.put("client_id", "B81F19E0CE92A349");
+ params.put("client_secret", "76061F7F697F1DBFCB3E7C3EA641985C");
+ params.put("username", "postUsers");
+ params.put("password", "jilinHeat@gg1.25");
+ params.put("redirect_uri", "https://36.135.12.177:12103");
+ String body = HttpPostTest.post(url, params);
+ System.out.println(body);
+ return body;
+ }
+
+ public static void uploadData5(String url,String params,String token) throws IOException {
+ // 创建HttpClient对象
+ CloseableHttpClient httpClient = HttpClientBuilder.create().build();
+ // 创建HttpPost对象
+ HttpPost httpPost = new HttpPost(url);
+ // 设置Content-Type为application/json
+ httpPost.setHeader("Content-Type", "application/json");
+ httpPost.setHeader("Authorization", "Bearer "+token);
+ // 设置请求体参数
+ String requestBody = params;
+ // 设置请求体
+ StringEntity entity = new StringEntity(requestBody, ContentType.APPLICATION_JSON);
+ httpPost.setEntity(entity);
+ // 发送请求并获取响应
+ CloseableHttpResponse response = httpClient.execute(httpPost);
+ // 解析响应
+ HttpEntity responseEntity = response.getEntity();
+ String responseBody = EntityUtils.toString(responseEntity);
+ // 关闭响应和HttpClient
+ response.close();
+ httpClient.close();
+ // 输出响应结果
+ System.out.println(responseBody);
+ }
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/DataExtractConfigMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/DataExtractConfigMapper.java
new file mode 100644
index 0000000..f23725d
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/DataExtractConfigMapper.java
@@ -0,0 +1,17 @@
+package org.jeecg.modules.heating.mapper;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import org.apache.ibatis.annotations.Param;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.heating.entity.DataExtractConfig;
+
+/**
+ * @Description: 数据抽取配置
+ * @Author: jeecg-boot
+ * @Date: 2024-12-06
+ * @Version: V1.0
+ */
+public interface DataExtractConfigMapper extends BaseMapper {
+ Page findPage(Page page, @Param("params") DataExtractConfig dataExtractConfig);
+
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatanalysisHistoryMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatanalysisHistoryMapper.java
new file mode 100644
index 0000000..00cd908
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatanalysisHistoryMapper.java
@@ -0,0 +1,14 @@
+package org.jeecg.modules.heating.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import org.apache.ibatis.annotations.Param;
+import org.jeecg.modules.heating.entity.HeatanalysisHistory;
+
+import java.util.List;
+
+public interface HeatanalysisHistoryMapper extends BaseMapper {
+ Page findPage(Page page, @Param("params") HeatanalysisHistory heatanalysisHistory);
+ Page findJxPage(Page page, @Param("params") HeatanalysisHistory heatanalysisHistory);
+ List findHistoryList(HeatanalysisHistory heatanalysisHistory);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatanalysisMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatanalysisMapper.java
new file mode 100644
index 0000000..4395524
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatanalysisMapper.java
@@ -0,0 +1,26 @@
+package org.jeecg.modules.heating.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import org.apache.ibatis.annotations.Param;
+import org.jeecg.modules.heating.entity.Heatanalysis;
+
+import java.util.List;
+
+public interface HeatanalysisMapper extends BaseMapper {
+ Heatanalysis getHeatOne(Heatanalysis heatanalysis);
+ Page findPage(Page page, @Param("params") Heatanalysis heatanalysis);
+ void updateType(Heatanalysis heatanalysis);
+ List findSourceList(Heatanalysis heatanalysis);
+ List findList(Heatanalysis heatanalysis);
+ List findStaticList(Heatanalysis heatanalysis);
+ List findSimulateList(Heatanalysis heatanalysis);
+ void exeProc(Heatanalysis heatanalysis);
+ List lowest(Heatanalysis heatanalysis);
+ Page findOnePage(Page page, @Param("params") Heatanalysis heatanalysis);
+ Page findTwoPage(Page page, @Param("params") Heatanalysis heatanalysis);
+ Page findExtractedOnePage(Page page, @Param("params") Heatanalysis heatanalysis);
+ Page findExtractedTwoPage(Page page, @Param("params") Heatanalysis heatanalysis);
+
+ void exeWater(Heatanalysis heatanalysis);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatsourceMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatsourceMapper.java
new file mode 100644
index 0000000..d6a0689
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatsourceMapper.java
@@ -0,0 +1,9 @@
+package org.jeecg.modules.heating.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.heating.entity.Heatsource;
+import java.util.List;
+
+public interface HeatsourceMapper extends BaseMapper {
+ List findList(Heatsource heatsource);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatsourcestationMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatsourcestationMapper.java
new file mode 100644
index 0000000..8c5a221
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/HeatsourcestationMapper.java
@@ -0,0 +1,11 @@
+package org.jeecg.modules.heating.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.heating.entity.Heatsourcestation;
+import java.util.List;
+
+public interface HeatsourcestationMapper extends BaseMapper {
+ List findList(Heatsourcestation heatsourcestation);
+ List findCompanyList(Heatsourcestation heatsourcestation);
+ List findSourceList(Heatsourcestation heatsourcestation);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/MarkinfoMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/MarkinfoMapper.java
new file mode 100644
index 0000000..bb98d2a
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/MarkinfoMapper.java
@@ -0,0 +1,13 @@
+package org.jeecg.modules.heating.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.heating.entity.Markinfo;
+import java.util.List;
+
+public interface MarkinfoMapper extends BaseMapper {
+ List findList(Markinfo markinfo);
+ Markinfo getMarkinfo(Markinfo markinfo);
+ void deleteAll();
+ List sourceList(Markinfo markinfo);
+ List stationList(Markinfo markinfo);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/SimconfigMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/SimconfigMapper.java
new file mode 100644
index 0000000..0451433
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/SimconfigMapper.java
@@ -0,0 +1,18 @@
+package org.jeecg.modules.heating.mapper;
+
+import java.util.List;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.heating.entity.Simconfig;
+
+/**
+ * @Description: 设备信息管理
+ * @Author: jeecg-boot
+ * @Date: 2025-04-09
+ * @Version: V1.0
+ */
+public interface SimconfigMapper extends BaseMapper {
+ List findCompanyList(Simconfig simconfig);
+ List findSourceList(Simconfig simconfig);
+ List findStationList(Simconfig simconfig);
+ List findSimconfig(Simconfig simconfig);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/SubstationMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/SubstationMapper.java
new file mode 100644
index 0000000..e42ee2b
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/SubstationMapper.java
@@ -0,0 +1,9 @@
+package org.jeecg.modules.heating.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.heating.entity.Substation;
+import java.util.List;
+
+public interface SubstationMapper extends BaseMapper {
+ List findList(Substation substation);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/ThermalcompanyMapper.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/ThermalcompanyMapper.java
new file mode 100644
index 0000000..6bc833f
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/ThermalcompanyMapper.java
@@ -0,0 +1,9 @@
+package org.jeecg.modules.heating.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.heating.entity.Thermalcompany;
+import java.util.List;
+
+public interface ThermalcompanyMapper extends BaseMapper {
+ List findList(Thermalcompany thermalcompany);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/DataExtractConfigMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/DataExtractConfigMapper.xml
new file mode 100644
index 0000000..a088898
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/DataExtractConfigMapper.xml
@@ -0,0 +1,97 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatanalysisHistoryMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatanalysisHistoryMapper.xml
new file mode 100644
index 0000000..ab0e98a
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatanalysisHistoryMapper.xml
@@ -0,0 +1,256 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatanalysisMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatanalysisMapper.xml
new file mode 100644
index 0000000..ff119d1
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatanalysisMapper.xml
@@ -0,0 +1,507 @@
+
+
+
+
+
+
+
+
+
+ UPDATE BL_HEATANALYSIS
+ SET report_type = #{reportType}
+ where id = #{id}
+
+
+
+
+
+
+
+
+
+
+
+ CALL P_Q_D_HEATANALYSIS_SIMULATE_NEW(#{code}, #{sim}, #{datatime}, #{view005}, #{view006}, #{view007}, #{view008}, #{view009}, #{view010}, #{view011}, #{view012})
+
+
+
+ CALL P_Q_D_HEATFLOWANALYSIS(#{view031}, #{view032}, #{view033}, #{view034}, #{view035}, #{view036}, #{view037}, #{view038}, #{view039}, #{view040}, #{view041}, #{view042}, #{view043}, #{view044}, #{view045}, #{view046}, #{view047})
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatsourceMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatsourceMapper.xml
new file mode 100644
index 0000000..b683aa1
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatsourceMapper.xml
@@ -0,0 +1,80 @@
+
+
+
+
+
+ a.id AS "id",
+ a.boiler_capacity AS "boilerCapacity",
+ a.boiler_type AS "boilerType",
+ a.duty_people AS "dutyPeople",
+ a.llcome_down AS "llcomeDown",
+ a.llcome_up AS "llcomeUp",
+ a.llgo_down AS "llgoDown",
+ a.llgo_up AS "llgoUp",
+ a.setup_time AS "setupTime",
+ a.source_name AS "sourceName",
+ a.source_phone AS "sourcePhone",
+ a.source_type AS "sourceType",
+ a.wdcome_down AS "wdcomeDown",
+ a.wdcome_up AS "wdcomeUp",
+ a.wdgo_down AS "wdgoDown",
+ a.wdgo_up AS "wdgoUp",
+ a.ylcome_down AS "ylcomeDown",
+ a.ylcome_up AS "ylcomeUp",
+ a.ylgo_down AS "ylgoDown",
+ a.ylgo_up AS "ylgoUp",
+ a.company AS "company",
+ a.company_name AS "companyName",
+ a.company_id AS "companyId",
+ a.create_by AS "createBy.id",
+ a.create_date AS "createDate",
+ a.update_by AS "updateBy.id",
+ a.update_date AS "updateDate",
+ a.del_flag AS "delFlag",
+ a.source_image AS "sourceImage",
+ b.company_name AS "companyNameView",
+ a.tree_id AS "treeID",
+
+ a.heating_area AS "heatingArea",
+ a.residential_area AS "residentialArea",
+ a.noresidential_area AS "noresidentialArea",
+ a.yearcoal AS "yearcoal",
+ a.nowcoal AS "nowcoal",
+ a.yearwater AS "yearwater",
+ a.yearelectricity AS "yearelectricity",
+ a.onenet AS "onenet",
+ a.secondarynet AS "secondarynet",
+ a.boilernum AS "boilernum",
+ a.tonnage AS "tonnage",
+ a.tonnage_two AS "tonnageTwo"
+
+
+
+
+ LEFT JOIN BL_thermalcompany b ON b.id=a.company_id
+
+
+
+
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatsourcestationMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatsourcestationMapper.xml
new file mode 100644
index 0000000..80781b7
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/HeatsourcestationMapper.xml
@@ -0,0 +1,120 @@
+
+
+
+
+
+ a.id AS "id",
+ a.llcome_down AS "llcomeDown",
+ a.llcome_up AS "llcomeUp",
+ a.llgo_down AS "llgoDown",
+ a.llgo_up AS "llgoUp",
+ a.wdcome_down AS "wdcomeDown",
+ a.wdcome_up AS "wdcomeUp",
+ a.wdgo_down AS "wdgoDown",
+ a.wdgo_up AS "wdgoUp",
+ a.ylcome_down AS "ylcomeDown",
+ a.ylcome_up AS "ylcomeUp",
+ a.ylgo_down AS "ylgoDown",
+ a.ylgo_up AS "ylgoUp",
+ a.duty_people AS "dutyPeople",
+ a.setup_time AS "setupTime",
+ a.station_address AS "stationAddress",
+ a.station_name AS "stationName",
+ a.station_phone AS "stationPhone",
+ a.company AS "company",
+ a.source AS "source",
+ a.substation AS "substation",
+ a.company_id AS "companyId",
+ a.company_name AS "companyName",
+ a.source_id AS "sourceId",
+ a.source_name AS "sourceName",
+ a.substation_id AS "substationId",
+ a.substation_name AS "substationName",
+ a.create_by AS "createBy.id",
+ a.create_date AS "createDate",
+ a.update_by AS "updateBy.id",
+ a.update_date AS "updateDate",
+ a.del_flag AS "delFlag",
+ b.source_name AS "sourceNameView",
+ c.company_name AS "companyNameView",
+ d.name AS "substationNameView",
+ a.sourcestation_image AS "sourcestationImage",
+ a.tree_id AS "treeID",
+ a.supply_build AS "supplybuild"
+
+
+
+ LEFT JOIN BL_substation d ON d.id=a.substation_id
+ LEFT JOIN BL_heatsource b ON b.id=a.source_id
+ LEFT JOIN BL_thermalcompany c ON c.id=a.company_id
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/MarkinfoMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/MarkinfoMapper.xml
new file mode 100644
index 0000000..31f7aac
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/MarkinfoMapper.xml
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+ DELETE FROM bl_markinfo
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/SimconfigMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/SimconfigMapper.xml
new file mode 100644
index 0000000..b8628c4
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/SimconfigMapper.xml
@@ -0,0 +1,64 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/SubstationMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/SubstationMapper.xml
new file mode 100644
index 0000000..56c0644
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/SubstationMapper.xml
@@ -0,0 +1,60 @@
+
+
+
+
+
+ a.id AS "id",
+ a.addres AS "addres",
+ a.area AS "area",
+ a.conduits AS "conduits",
+ a.doorsum AS "doorsum",
+ a.establishedtime AS "establishedtime",
+ a.heatarea AS "heatarea",
+ a.inperson AS "inperson",
+ a.name AS "name",
+ a.old15conduits AS "old15conduits",
+ a.stacount AS "stacount",
+ a.tel AS "tel",
+ a.company AS "company",
+ a.source AS "source",
+ a.company_id AS "companyId",
+ a.company_name AS "companyName",
+ a.source_id AS "sourceId",
+ a.source_name AS "sourceName",
+ a.create_by AS "createBy.id",
+ a.create_date AS "createDate",
+ a.update_by AS "updateBy.id",
+ a.update_date AS "updateDate",
+ a.del_flag AS "delFlag",
+ b.source_name AS "sourceNameView",
+ c.company_name AS "companyNameView"
+
+
+
+ LEFT JOIN BL_heatsource b ON b.id=a.source_id
+ LEFT JOIN BL_thermalcompany c ON c.id=b.company_id
+
+
+
+
\ No newline at end of file
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/ThermalcompanyMapper.xml b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/ThermalcompanyMapper.xml
new file mode 100644
index 0000000..71c11a6
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/mapper/xml/ThermalcompanyMapper.xml
@@ -0,0 +1,57 @@
+
+
+
+
+
+ a.id AS "id",
+ a.barter_heat AS "barterHeat",
+ a.boiler_house AS "boilerHouse",
+ a.company_address AS "companyAddress",
+ a.company_name AS "companyName",
+ a.company_phone AS "companyPhone",
+ a.company_type AS "companyType",
+ a.direct AS "direct",
+ a.doorsum AS "doorsum",
+ a.duct_length AS "ductLength",
+ a.duty_people AS "dutyPeople",
+ a.heat_area AS "heatArea",
+ a.heat_source AS "heatSource",
+ a.heating_area AS "heatingArea",
+ a.indirect AS "indirect",
+ a.nonresident_price AS "nonresidentPrice",
+ a.old15_length AS "old15Length",
+ a.resident_price AS "residentPrice",
+ a.setup_time AS "setupTime",
+ a.create_by AS "createBy.id",
+ a.create_date AS "createDate",
+ a.update_by AS "updateBy.id",
+ a.update_date AS "updateDate",
+ a.del_flag AS "delFlag",
+ a.tree_id AS "treeId",
+ a.order_id AS "orderId"
+
+
+
+
+
+
+
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/DataExtractConfigService.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/DataExtractConfigService.java
new file mode 100644
index 0000000..bf332f3
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/DataExtractConfigService.java
@@ -0,0 +1,16 @@
+package org.jeecg.modules.heating.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.heating.entity.DataExtractConfig;
+
+/**
+ * @Description: 数据抽取配置
+ * @Author: jeecg-boot
+ * @Date: 2024-12-06
+ * @Version: V1.0
+ */
+public interface DataExtractConfigService extends IService {
+ IPage findPage(Page page, DataExtractConfig dataExtractConfig);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatanalysisHistoryService.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatanalysisHistoryService.java
new file mode 100644
index 0000000..550d8bf
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatanalysisHistoryService.java
@@ -0,0 +1,14 @@
+package org.jeecg.modules.heating.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.base.service.JeecgService;
+import org.jeecg.modules.heating.entity.HeatanalysisHistory;
+import java.util.List;
+
+public interface HeatanalysisHistoryService extends JeecgService {
+ IPage findPage(Page page,HeatanalysisHistory heatanalysisHistory);
+ IPage findJxPage(Page page,HeatanalysisHistory heatanalysisHistory);
+ Result> findHistoryList(HeatanalysisHistory heatanalysisHistory);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatanalysisService.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatanalysisService.java
new file mode 100644
index 0000000..62a2445
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatanalysisService.java
@@ -0,0 +1,27 @@
+package org.jeecg.modules.heating.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import org.jeecg.common.system.base.service.JeecgService;
+import org.jeecg.modules.heating.entity.Heatanalysis;
+
+import java.util.List;
+
+public interface HeatanalysisService extends JeecgService {
+ Heatanalysis getHeatOne(Heatanalysis heatanalysis);
+ IPage findPage(Page page,Heatanalysis heatanalysis);
+ void updateType(Heatanalysis heatanalysis);
+ List findSourceList(Heatanalysis heatanalysis);
+ List findList(Heatanalysis heatanalysis);
+ List findStaticList(Heatanalysis heatanalysis);
+ List findSimulateList(Heatanalysis heatanalysis);
+ void exeProc(Heatanalysis heatanalysis);
+ List lowest(Heatanalysis heatanalysis);
+
+ IPage findOnePage(Page page, Heatanalysis heatanalysis);
+ IPage findTwoPage(Page page, Heatanalysis heatanalysis);
+ IPage findExtractedOnePage(Page page, Heatanalysis heatanalysis);
+ IPage findExtractedTwoPage(Page page, Heatanalysis heatanalysis);
+
+ void exeWater(Heatanalysis heatanalysis);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatsourceService.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatsourceService.java
new file mode 100644
index 0000000..005408a
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatsourceService.java
@@ -0,0 +1,9 @@
+package org.jeecg.modules.heating.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.heating.entity.Heatsource;
+import java.util.List;
+
+public interface HeatsourceService extends IService {
+ List findList(Heatsource heatsource);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatsourcestationService.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatsourcestationService.java
new file mode 100644
index 0000000..b0a8168
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/HeatsourcestationService.java
@@ -0,0 +1,11 @@
+package org.jeecg.modules.heating.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.heating.entity.Heatsourcestation;
+import java.util.List;
+
+public interface HeatsourcestationService extends IService {
+ List findList(Heatsourcestation heatsourcestation);
+ List findCompanyList(Heatsourcestation heatsourcestation);
+ List findSourceList(Heatsourcestation heatsourcestation);
+}
diff --git a/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/MarkinfoService.java b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/MarkinfoService.java
new file mode 100644
index 0000000..fb94f1d
--- /dev/null
+++ b/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/heating/service/MarkinfoService.java
@@ -0,0 +1,18 @@
+package org.jeecg.modules.heating.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.modules.heating.entity.Markinfo;
+import java.util.List;
+import java.util.Map;
+
+public interface MarkinfoService extends IService {
+ List