liu85600613 3 роки тому
батько
коміт
c88ce0dbda

+ 116 - 0
master/src/main/java/com/ruoyi/project/aspen/controller/TDashboardelecdataController.java

@@ -0,0 +1,116 @@
+package com.ruoyi.project.aspen.controller;
+
+import java.util.List;
+
+import com.ruoyi.project.aspen.domain.TDashboarddata;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
+import com.ruoyi.project.aspen.domain.TDashboardelecdata;
+import com.ruoyi.project.aspen.service.ITDashboardelecdataService;
+import com.ruoyi.framework.web.controller.BaseController;
+import com.ruoyi.framework.web.domain.AjaxResult;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.framework.web.page.TableDataInfo;
+
+/**
+ * 电厂大屏DASHBOARDELEC抓取数据Controller
+ *
+ * @author ruoyi
+ * @date 2022-03-09
+ */
+@RestController
+@RequestMapping("/aspen/dashboardelecdata")
+public class TDashboardelecdataController extends BaseController
+{
+    @Autowired
+    private ITDashboardelecdataService tDashboardelecdataService;
+
+    /**
+     * 查询电厂大屏DASHBOARDELEC抓取数据列表
+     */
+    @PreAuthorize("@ss.hasPermi('aspen:dashboardelecdata:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(TDashboardelecdata tDashboardelecdata)
+    {
+        startPage();
+        List<TDashboardelecdata> list = tDashboardelecdataService.selectTDashboardelecdataList(tDashboardelecdata);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出电厂大屏DASHBOARDELEC抓取数据列表
+     */
+    @PreAuthorize("@ss.hasPermi('aspen:dashboardelecdata:export')")
+    @Log(title = "电厂大屏DASHBOARDELEC抓取数据", businessType = BusinessType.EXPORT)
+    @GetMapping("/export")
+    public AjaxResult export(TDashboardelecdata tDashboardelecdata)
+    {
+        List<TDashboardelecdata> list = tDashboardelecdataService.selectTDashboardelecdataList(tDashboardelecdata);
+        ExcelUtil<TDashboardelecdata> util = new ExcelUtil<TDashboardelecdata>(TDashboardelecdata.class);
+        return util.exportExcel(list, "dashboardelecdata");
+    }
+
+    /**
+     * 获取电厂大屏DASHBOARDELEC抓取数据详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('aspen:dashboardelecdata:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(tDashboardelecdataService.selectTDashboardelecdataById(id));
+    }
+
+    /**
+     * 新增电厂大屏DASHBOARDELEC抓取数据
+     */
+    @PreAuthorize("@ss.hasPermi('aspen:dashboardelecdata:add')")
+    @Log(title = "电厂大屏DASHBOARDELEC抓取数据", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody TDashboardelecdata tDashboardelecdata)
+    {
+        return toAjax(tDashboardelecdataService.insertTDashboardelecdata(tDashboardelecdata));
+    }
+
+    /**
+     * 修改电厂大屏DASHBOARDELEC抓取数据
+     */
+    @PreAuthorize("@ss.hasPermi('aspen:dashboardelecdata:edit')")
+    @Log(title = "电厂大屏DASHBOARDELEC抓取数据", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody TDashboardelecdata tDashboardelecdata)
+    {
+        return toAjax(tDashboardelecdataService.updateTDashboardelecdata(tDashboardelecdata));
+    }
+
+    /**
+     * 删除电厂大屏DASHBOARDELEC抓取数据
+     */
+    @PreAuthorize("@ss.hasPermi('aspen:dashboardelecdata:remove')")
+    @Log(title = "电厂大屏DASHBOARDELEC抓取数据", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(tDashboardelecdataService.deleteTDashboardelecdataByIds(ids));
+    }
+
+    /**
+     * 查询最后一条dashboard抓取数据
+     */
+    @PreAuthorize("@ss.hasPermi('aspen:dashboardelecdata:query')")
+    @GetMapping("/selectLast")
+    public AjaxResult selectLast(TDashboardelecdata tDashboardelecdata)
+    {
+        TDashboardelecdata tDashboardelecdata1 = tDashboardelecdataService.selectLast(tDashboardelecdata);
+        return AjaxResult.success(tDashboardelecdata1);
+    }
+}

+ 614 - 0
master/src/main/java/com/ruoyi/project/aspen/domain/TDashboardelecdata.java

@@ -0,0 +1,614 @@
+package com.ruoyi.project.aspen.domain;
+
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import com.ruoyi.framework.aspectj.lang.annotation.Excel;
+import com.ruoyi.framework.web.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+
+/**
+ * 电厂大屏DASHBOARDELEC抓取数据对象 t_dashboardelecdata
+ *
+ * @author ruoyi
+ * @date 2022-03-09
+ */
+public class TDashboardelecdata extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 唯一标识ID */
+    private Long id;
+
+    /** 删除状态 */
+    private Long delFlag;
+
+    /** 创建人 */
+    @Excel(name = "创建人")
+    private String createrCode;
+
+    /** 抓取时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "抓取时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date createdate;
+
+    /** 修改人 */
+    @Excel(name = "修改人")
+    private String updaterCode;
+
+    /** 修改时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd" , timezone = "GMT+8")
+    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date updatedate;
+
+    /** 发电机表GTG1一号电机 发电水平 level */
+    @Excel(name = "发电机表GTG1一号电机 发电水平 level")
+    private String gtg1Lv;
+
+    /** 发电机表GTG1一号电机 发电效率 workpiece ratio */
+    @Excel(name = "发电机表GTG1一号电机 发电效率 workpiece ratio")
+    private String gtg1Wr;
+
+    /** 发电机表GTG2二号电机 发电水平 level */
+    @Excel(name = "发电机表GTG2二号电机 发电水平 level")
+    private String gtg2Lv;
+
+    /** 发电机表GTG2二号电机 发电效率 workpiece ratio */
+    @Excel(name = "发电机表GTG2二号电机 发电效率 workpiece ratio")
+    private String gtg2Wr;
+
+    /** 发电机表GTG3三号电机 发电水平 level */
+    @Excel(name = "发电机表GTG3三号电机 发电水平 level")
+    private String gtg3Lv;
+
+    /** 发电机表GTG3三号电机 发电效率 workpiece ratio */
+    @Excel(name = "发电机表GTG3三号电机 发电效率 workpiece ratio")
+    private String gtg3Wr;
+
+    /** 发电机表STG发电水平 level */
+    @Excel(name = "发电机表STG发电水平 level")
+    private String stg1Lv;
+
+    /** 发电机表STG发电效率 workpiece ratio */
+    @Excel(name = "发电机表STG发电效率 workpiece ratio")
+    private String stg1Wr;
+
+    /** 发电机表总发电量 */
+    @Excel(name = "发电机表总发电量")
+    private String mwhLv;
+
+    /** 发电机表全厂效率 */
+    @Excel(name = "发电机表全厂效率")
+    private String mwhWr;
+
+    /** 蒸汽表HHP */
+    @Excel(name = "蒸汽表HHP")
+    private String hhp;
+
+    /** 蒸汽表HP */
+    @Excel(name = "蒸汽表HP")
+    private String hp;
+
+    /** 蒸汽表LP */
+    @Excel(name = "蒸汽表LP")
+    private String lp;
+
+    /** 蒸汽表MP */
+    @Excel(name = "蒸汽表MP")
+    private String mp;
+
+    /** 蒸汽表累计总消耗量(吨) */
+    @Excel(name = "蒸汽表累计总消耗量", readConverterExp = "吨=")
+    private String totalConsumption;
+
+    /** 蒸汽表HHP数值 */
+    @Excel(name = "蒸汽表HHP数值")
+    private Long hhpNum;
+
+    /** 蒸汽表HHP温度 */
+    @Excel(name = "蒸汽表HHP温度")
+    private String hhpTemp;
+
+    /** 蒸汽表HP数值 */
+    @Excel(name = "蒸汽表HP数值")
+    private String hpNum;
+
+    /** 蒸汽表HP温度 */
+    @Excel(name = "蒸汽表HP温度")
+    private String hpTemp;
+
+    /** 蒸汽表LP数值 */
+    @Excel(name = "蒸汽表LP数值")
+    private Long lpNum;
+
+    /** 蒸汽表LP温度 */
+    @Excel(name = "蒸汽表LP温度")
+    private String lpTemp;
+
+    /** 蒸汽表MP数值 */
+    @Excel(name = "蒸汽表MP数值")
+    private Long mpNum;
+
+    /** 蒸汽表MP温度 */
+    @Excel(name = "蒸汽表MP温度")
+    private String mpTemp;
+
+    /** 天然气表中石化 */
+    @Excel(name = "天然气表中石化")
+    private String shihua;
+
+    /** 天然气表中石油 */
+    @Excel(name = "天然气表中石油")
+    private String shiyou;
+
+    /** 天然气表瞬时量 */
+    @Excel(name = "天然气表瞬时量")
+    private String shunshiliang;
+
+    /** 天然气表每日消耗量 every day consume */
+    @Excel(name = "天然气表每日消耗量 every day consume")
+    private String evconsume;
+
+    /** 天然气表电厂 */
+    @Excel(name = "天然气表电厂")
+    private String elecp;
+
+    /** 天然气表合成器 */
+    @Excel(name = "天然气表合成器")
+    private String hechengqi;
+
+    /** 天然气表U2 */
+    @Excel(name = "天然气表U2")
+    private String u2;
+
+    /** 电量表昨日发电量Yesterday's power generation */
+    @Excel(name = "电量表昨日发电量Yesterday's power generation")
+    private String ypg;
+
+    /** 电量表倒电量 */
+    @Excel(name = "电量表倒电量")
+    private String daodianliang;
+
+    /** 电量表每日用电量 */
+    @Excel(name = "电量表每日用电量")
+    private String eveLec;
+
+    /** 电量表每日峰谷差 */
+    @Excel(name = "电量表每日峰谷差")
+    private String fenggucha;
+
+    /** 电量表BYC用电量 */
+    @Excel(name = "电量表BYC用电量")
+    private String bycElec;
+
+    /** 电量表BOC用电量 */
+    @Excel(name = "电量表BOC用电量")
+    private String bocElec;
+
+    public void setId(Long id)
+    {
+        this.id = id;
+    }
+
+    public Long getId()
+    {
+        return id;
+    }
+    public void setDelFlag(Long delFlag)
+    {
+        this.delFlag = delFlag;
+    }
+
+    public Long getDelFlag()
+    {
+        return delFlag;
+    }
+    public void setCreaterCode(String createrCode)
+    {
+        this.createrCode = createrCode;
+    }
+
+    public String getCreaterCode()
+    {
+        return createrCode;
+    }
+    public void setCreatedate(Date createdate)
+    {
+        this.createdate = createdate;
+    }
+
+    public Date getCreatedate()
+    {
+        return createdate;
+    }
+    public void setUpdaterCode(String updaterCode)
+    {
+        this.updaterCode = updaterCode;
+    }
+
+    public String getUpdaterCode()
+    {
+        return updaterCode;
+    }
+    public void setUpdatedate(Date updatedate)
+    {
+        this.updatedate = updatedate;
+    }
+
+    public Date getUpdatedate()
+    {
+        return updatedate;
+    }
+    public void setGtg1Lv(String gtg1Lv)
+    {
+        this.gtg1Lv = gtg1Lv;
+    }
+
+    public String getGtg1Lv()
+    {
+        return gtg1Lv;
+    }
+    public void setGtg1Wr(String gtg1Wr)
+    {
+        this.gtg1Wr = gtg1Wr;
+    }
+
+    public String getGtg1Wr()
+    {
+        return gtg1Wr;
+    }
+    public void setGtg2Lv(String gtg2Lv)
+    {
+        this.gtg2Lv = gtg2Lv;
+    }
+
+    public String getGtg2Lv()
+    {
+        return gtg2Lv;
+    }
+    public void setGtg2Wr(String gtg2Wr)
+    {
+        this.gtg2Wr = gtg2Wr;
+    }
+
+    public String getGtg2Wr()
+    {
+        return gtg2Wr;
+    }
+    public void setGtg3Lv(String gtg3Lv)
+    {
+        this.gtg3Lv = gtg3Lv;
+    }
+
+    public String getGtg3Lv()
+    {
+        return gtg3Lv;
+    }
+    public void setGtg3Wr(String gtg3Wr)
+    {
+        this.gtg3Wr = gtg3Wr;
+    }
+
+    public String getGtg3Wr()
+    {
+        return gtg3Wr;
+    }
+    public void setStg1Lv(String stg1Lv)
+    {
+        this.stg1Lv = stg1Lv;
+    }
+
+    public String getStg1Lv()
+    {
+        return stg1Lv;
+    }
+    public void setStg1Wr(String stg1Wr)
+    {
+        this.stg1Wr = stg1Wr;
+    }
+
+    public String getStg1Wr()
+    {
+        return stg1Wr;
+    }
+    public void setMwhLv(String mwhLv)
+    {
+        this.mwhLv = mwhLv;
+    }
+
+    public String getMwhLv()
+    {
+        return mwhLv;
+    }
+    public void setMwhWr(String mwhWr)
+    {
+        this.mwhWr = mwhWr;
+    }
+
+    public String getMwhWr()
+    {
+        return mwhWr;
+    }
+    public void setHhp(String hhp)
+    {
+        this.hhp = hhp;
+    }
+
+    public String getHhp()
+    {
+        return hhp;
+    }
+    public void setHp(String hp)
+    {
+        this.hp = hp;
+    }
+
+    public String getHp()
+    {
+        return hp;
+    }
+    public void setLp(String lp)
+    {
+        this.lp = lp;
+    }
+
+    public String getLp()
+    {
+        return lp;
+    }
+    public void setMp(String mp)
+    {
+        this.mp = mp;
+    }
+
+    public String getMp()
+    {
+        return mp;
+    }
+    public void setTotalConsumption(String totalConsumption)
+    {
+        this.totalConsumption = totalConsumption;
+    }
+
+    public String getTotalConsumption()
+    {
+        return totalConsumption;
+    }
+    public void setHhpNum(Long hhpNum)
+    {
+        this.hhpNum = hhpNum;
+    }
+
+    public Long getHhpNum()
+    {
+        return hhpNum;
+    }
+    public void setHhpTemp(String hhpTemp)
+    {
+        this.hhpTemp = hhpTemp;
+    }
+
+    public String getHhpTemp()
+    {
+        return hhpTemp;
+    }
+    public void setHpNum(String hpNum)
+    {
+        this.hpNum = hpNum;
+    }
+
+    public String getHpNum()
+    {
+        return hpNum;
+    }
+    public void setHpTemp(String hpTemp)
+    {
+        this.hpTemp = hpTemp;
+    }
+
+    public String getHpTemp()
+    {
+        return hpTemp;
+    }
+    public void setLpNum(Long lpNum)
+    {
+        this.lpNum = lpNum;
+    }
+
+    public Long getLpNum()
+    {
+        return lpNum;
+    }
+    public void setLpTemp(String lpTemp)
+    {
+        this.lpTemp = lpTemp;
+    }
+
+    public String getLpTemp()
+    {
+        return lpTemp;
+    }
+    public void setMpNum(Long mpNum)
+    {
+        this.mpNum = mpNum;
+    }
+
+    public Long getMpNum()
+    {
+        return mpNum;
+    }
+    public void setMpTemp(String mpTemp)
+    {
+        this.mpTemp = mpTemp;
+    }
+
+    public String getMpTemp()
+    {
+        return mpTemp;
+    }
+    public void setShihua(String shihua)
+    {
+        this.shihua = shihua;
+    }
+
+    public String getShihua()
+    {
+        return shihua;
+    }
+    public void setShiyou(String shiyou)
+    {
+        this.shiyou = shiyou;
+    }
+
+    public String getShiyou()
+    {
+        return shiyou;
+    }
+    public void setShunshiliang(String shunshiliang)
+    {
+        this.shunshiliang = shunshiliang;
+    }
+
+    public String getShunshiliang()
+    {
+        return shunshiliang;
+    }
+    public void setEvconsume(String evconsume)
+    {
+        this.evconsume = evconsume;
+    }
+
+    public String getEvconsume()
+    {
+        return evconsume;
+    }
+    public void setElecp(String elecp)
+    {
+        this.elecp = elecp;
+    }
+
+    public String getElecp()
+    {
+        return elecp;
+    }
+    public void setHechengqi(String hechengqi)
+    {
+        this.hechengqi = hechengqi;
+    }
+
+    public String getHechengqi()
+    {
+        return hechengqi;
+    }
+    public void setU2(String u2)
+    {
+        this.u2 = u2;
+    }
+
+    public String getU2()
+    {
+        return u2;
+    }
+    public void setYpg(String ypg)
+    {
+        this.ypg = ypg;
+    }
+
+    public String getYpg()
+    {
+        return ypg;
+    }
+    public void setDaodianliang(String daodianliang)
+    {
+        this.daodianliang = daodianliang;
+    }
+
+    public String getDaodianliang()
+    {
+        return daodianliang;
+    }
+    public void setEveLec(String eveLec)
+    {
+        this.eveLec = eveLec;
+    }
+
+    public String getEveLec()
+    {
+        return eveLec;
+    }
+    public void setFenggucha(String fenggucha)
+    {
+        this.fenggucha = fenggucha;
+    }
+
+    public String getFenggucha()
+    {
+        return fenggucha;
+    }
+    public void setBycElec(String bycElec)
+    {
+        this.bycElec = bycElec;
+    }
+
+    public String getBycElec()
+    {
+        return bycElec;
+    }
+    public void setBocElec(String bocElec)
+    {
+        this.bocElec = bocElec;
+    }
+
+    public String getBocElec()
+    {
+        return bocElec;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("delFlag", getDelFlag())
+            .append("createrCode", getCreaterCode())
+            .append("createdate", getCreatedate())
+            .append("updaterCode", getUpdaterCode())
+            .append("updatedate", getUpdatedate())
+            .append("gtg1Lv", getGtg1Lv())
+            .append("gtg1Wr", getGtg1Wr())
+            .append("gtg2Lv", getGtg2Lv())
+            .append("gtg2Wr", getGtg2Wr())
+            .append("gtg3Lv", getGtg3Lv())
+            .append("gtg3Wr", getGtg3Wr())
+            .append("stg1Lv", getStg1Lv())
+            .append("stg1Wr", getStg1Wr())
+            .append("mwhLv", getMwhLv())
+            .append("mwhWr", getMwhWr())
+            .append("hhp", getHhp())
+            .append("hp", getHp())
+            .append("lp", getLp())
+            .append("mp", getMp())
+            .append("totalConsumption", getTotalConsumption())
+            .append("hhpNum", getHhpNum())
+            .append("hhpTemp", getHhpTemp())
+            .append("hpNum", getHpNum())
+            .append("hpTemp", getHpTemp())
+            .append("lpNum", getLpNum())
+            .append("lpTemp", getLpTemp())
+            .append("mpNum", getMpNum())
+            .append("mpTemp", getMpTemp())
+            .append("shihua", getShihua())
+            .append("shiyou", getShiyou())
+            .append("shunshiliang", getShunshiliang())
+            .append("evconsume", getEvconsume())
+            .append("elecp", getElecp())
+            .append("hechengqi", getHechengqi())
+            .append("u2", getU2())
+            .append("ypg", getYpg())
+            .append("daodianliang", getDaodianliang())
+            .append("eveLec", getEveLec())
+            .append("fenggucha", getFenggucha())
+            .append("bycElec", getBycElec())
+            .append("bocElec", getBocElec())
+            .toString();
+    }
+}

+ 71 - 0
master/src/main/java/com/ruoyi/project/aspen/mapper/TDashboardelecdataMapper.java

@@ -0,0 +1,71 @@
+package com.ruoyi.project.aspen.mapper;
+
+import java.util.List;
+import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
+import com.ruoyi.project.aspen.domain.TDashboarddata;
+import com.ruoyi.project.aspen.domain.TDashboardelecdata;
+
+/**
+ * 电厂大屏DASHBOARDELEC抓取数据Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2022-03-09
+ */
+public interface TDashboardelecdataMapper 
+{
+    /**
+     * 查询电厂大屏DASHBOARDELEC抓取数据
+     * 
+     * @param id 电厂大屏DASHBOARDELEC抓取数据ID
+     * @return 电厂大屏DASHBOARDELEC抓取数据
+     */
+    public TDashboardelecdata selectTDashboardelecdataById(Long id);
+
+    /**
+     * 查询电厂大屏DASHBOARDELEC抓取数据列表
+     * 
+     * @param tDashboardelecdata 电厂大屏DASHBOARDELEC抓取数据
+     * @return 电厂大屏DASHBOARDELEC抓取数据集合
+     */
+    @DataScope(deptAlias = "d")
+    public List<TDashboardelecdata> selectTDashboardelecdataList(TDashboardelecdata tDashboardelecdata);
+
+    /**
+     * 新增电厂大屏DASHBOARDELEC抓取数据
+     * 
+     * @param tDashboardelecdata 电厂大屏DASHBOARDELEC抓取数据
+     * @return 结果
+     */
+    public int insertTDashboardelecdata(TDashboardelecdata tDashboardelecdata);
+
+    /**
+     * 修改电厂大屏DASHBOARDELEC抓取数据
+     * 
+     * @param tDashboardelecdata 电厂大屏DASHBOARDELEC抓取数据
+     * @return 结果
+     */
+    public int updateTDashboardelecdata(TDashboardelecdata tDashboardelecdata);
+
+    /**
+     * 删除电厂大屏DASHBOARDELEC抓取数据
+     * 
+     * @param id 电厂大屏DASHBOARDELEC抓取数据ID
+     * @return 结果
+     */
+    public int deleteTDashboardelecdataById(Long id);
+
+    /**
+     * 批量删除电厂大屏DASHBOARDELEC抓取数据
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteTDashboardelecdataByIds(Long[] ids);
+
+    /**
+     * 查询最后一条dashboardelec抓取数据
+     *
+     * @return dashboardelec抓取数据
+     */
+    public TDashboardelecdata selectLast(TDashboardelecdata tDashboardelecdata);
+}

+ 68 - 0
master/src/main/java/com/ruoyi/project/aspen/service/ITDashboardelecdataService.java

@@ -0,0 +1,68 @@
+package com.ruoyi.project.aspen.service;
+
+import java.util.List;
+import com.ruoyi.project.aspen.domain.TDashboardelecdata;
+
+/**
+ * 电厂大屏DASHBOARDELEC抓取数据Service接口
+ * 
+ * @author ruoyi
+ * @date 2022-03-09
+ */
+public interface ITDashboardelecdataService 
+{
+    /**
+     * 查询电厂大屏DASHBOARDELEC抓取数据
+     * 
+     * @param id 电厂大屏DASHBOARDELEC抓取数据ID
+     * @return 电厂大屏DASHBOARDELEC抓取数据
+     */
+    public TDashboardelecdata selectTDashboardelecdataById(Long id);
+
+    /**
+     * 查询电厂大屏DASHBOARDELEC抓取数据列表
+     * 
+     * @param tDashboardelecdata 电厂大屏DASHBOARDELEC抓取数据
+     * @return 电厂大屏DASHBOARDELEC抓取数据集合
+     */
+    public List<TDashboardelecdata> selectTDashboardelecdataList(TDashboardelecdata tDashboardelecdata);
+
+    /**
+     * 新增电厂大屏DASHBOARDELEC抓取数据
+     * 
+     * @param tDashboardelecdata 电厂大屏DASHBOARDELEC抓取数据
+     * @return 结果
+     */
+    public int insertTDashboardelecdata(TDashboardelecdata tDashboardelecdata);
+
+    /**
+     * 修改电厂大屏DASHBOARDELEC抓取数据
+     * 
+     * @param tDashboardelecdata 电厂大屏DASHBOARDELEC抓取数据
+     * @return 结果
+     */
+    public int updateTDashboardelecdata(TDashboardelecdata tDashboardelecdata);
+
+    /**
+     * 批量删除电厂大屏DASHBOARDELEC抓取数据
+     * 
+     * @param ids 需要删除的电厂大屏DASHBOARDELEC抓取数据ID
+     * @return 结果
+     */
+    public int deleteTDashboardelecdataByIds(Long[] ids);
+
+    /**
+     * 删除电厂大屏DASHBOARDELEC抓取数据信息
+     * 
+     * @param id 电厂大屏DASHBOARDELEC抓取数据ID
+     * @return 结果
+     */
+    public int deleteTDashboardelecdataById(Long id);
+
+    /**
+     * 查询最后一条dashboardelec抓取数据
+     * @param tDashboardelecdata 电厂大屏DASHBOARDELEC抓取数据ID
+     * @return dashboardelec抓取数据
+     */
+    public TDashboardelecdata selectLast(TDashboardelecdata tDashboardelecdata);
+}

+ 100 - 0
master/src/main/java/com/ruoyi/project/aspen/service/impl/TDashboardelecdataServiceImpl.java

@@ -0,0 +1,100 @@
+package com.ruoyi.project.aspen.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.project.aspen.mapper.TDashboardelecdataMapper;
+import com.ruoyi.project.aspen.domain.TDashboardelecdata;
+import com.ruoyi.project.aspen.service.ITDashboardelecdataService;
+
+import javax.annotation.Resource;
+
+/**
+ * 电厂大屏DASHBOARDELEC抓取数据Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2022-03-09
+ */
+@Service
+public class TDashboardelecdataServiceImpl implements ITDashboardelecdataService
+{
+    @Resource
+    private TDashboardelecdataMapper tDashboardelecdataMapper;
+
+    /**
+     * 查询电厂大屏DASHBOARDELEC抓取数据
+     *
+     * @param id 电厂大屏DASHBOARDELEC抓取数据ID
+     * @return 电厂大屏DASHBOARDELEC抓取数据
+     */
+    @Override
+    public TDashboardelecdata selectTDashboardelecdataById(Long id)
+    {
+        return tDashboardelecdataMapper.selectTDashboardelecdataById(id);
+    }
+
+    /**
+     * 查询电厂大屏DASHBOARDELEC抓取数据列表
+     *
+     * @param tDashboardelecdata 电厂大屏DASHBOARDELEC抓取数据
+     * @return 电厂大屏DASHBOARDELEC抓取数据
+     */
+    @Override
+    public List<TDashboardelecdata> selectTDashboardelecdataList(TDashboardelecdata tDashboardelecdata)
+    {
+        return tDashboardelecdataMapper.selectTDashboardelecdataList(tDashboardelecdata);
+    }
+
+    /**
+     * 新增电厂大屏DASHBOARDELEC抓取数据
+     *
+     * @param tDashboardelecdata 电厂大屏DASHBOARDELEC抓取数据
+     * @return 结果
+     */
+    @Override
+    public int insertTDashboardelecdata(TDashboardelecdata tDashboardelecdata)
+    {
+        return tDashboardelecdataMapper.insertTDashboardelecdata(tDashboardelecdata);
+    }
+
+    /**
+     * 修改电厂大屏DASHBOARDELEC抓取数据
+     *
+     * @param tDashboardelecdata 电厂大屏DASHBOARDELEC抓取数据
+     * @return 结果
+     */
+    @Override
+    public int updateTDashboardelecdata(TDashboardelecdata tDashboardelecdata)
+    {
+        return tDashboardelecdataMapper.updateTDashboardelecdata(tDashboardelecdata);
+    }
+
+    /**
+     * 批量删除电厂大屏DASHBOARDELEC抓取数据
+     *
+     * @param ids 需要删除的电厂大屏DASHBOARDELEC抓取数据ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTDashboardelecdataByIds(Long[] ids)
+    {
+        return tDashboardelecdataMapper.deleteTDashboardelecdataByIds(ids);
+    }
+
+    /**
+     * 删除电厂大屏DASHBOARDELEC抓取数据信息
+     *
+     * @param id 电厂大屏DASHBOARDELEC抓取数据ID
+     * @return 结果
+     */
+    @Override
+    public int deleteTDashboardelecdataById(Long id)
+    {
+        return tDashboardelecdataMapper.deleteTDashboardelecdataById(id);
+    }
+
+    @Override
+    public TDashboardelecdata selectLast(TDashboardelecdata tDashboardelecdata) {
+        return tDashboardelecdataMapper.selectLast(tDashboardelecdata);
+    }
+}

+ 270 - 0
master/src/main/resources/mybatis/aspen/TDashboardelecdataMapper.xml

@@ -0,0 +1,270 @@
+<?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.ruoyi.project.aspen.mapper.TDashboardelecdataMapper">
+    
+    <resultMap type="TDashboardelecdata" id="TDashboardelecdataResult">
+        <result property="id"    column="id"    />
+        <result property="delFlag"    column="del_flag"    />
+        <result property="createrCode"    column="creater_code"    />
+        <result property="createdate"    column="createdate"    />
+        <result property="updaterCode"    column="updater_code"    />
+        <result property="updatedate"    column="updatedate"    />
+        <result property="gtg1Lv"    column="gtg1_lv"    />
+        <result property="gtg1Wr"    column="gtg1_wr"    />
+        <result property="gtg2Lv"    column="gtg2_lv"    />
+        <result property="gtg2Wr"    column="gtg2_wr"    />
+        <result property="gtg3Lv"    column="gtg3_lv"    />
+        <result property="gtg3Wr"    column="gtg3_wr"    />
+        <result property="stg1Lv"    column="stg1_lv"    />
+        <result property="stg1Wr"    column="stg1_wr"    />
+        <result property="mwhLv"    column="mwh_lv"    />
+        <result property="mwhWr"    column="mwh_wr"    />
+        <result property="hhp"    column="hhp"    />
+        <result property="hp"    column="hp"    />
+        <result property="lp"    column="lp"    />
+        <result property="mp"    column="mp"    />
+        <result property="totalConsumption"    column="total_consumption"    />
+        <result property="hhpNum"    column="hhp_num"    />
+        <result property="hhpTemp"    column="hhp_temp"    />
+        <result property="hpNum"    column="hp_num"    />
+        <result property="hpTemp"    column="hp_temp"    />
+        <result property="lpNum"    column="lp_num"    />
+        <result property="lpTemp"    column="lp_temp"    />
+        <result property="mpNum"    column="mp_num"    />
+        <result property="mpTemp"    column="mp_temp"    />
+        <result property="shihua"    column="shihua"    />
+        <result property="shiyou"    column="shiyou"    />
+        <result property="shunshiliang"    column="shunshiliang"    />
+        <result property="evconsume"    column="evconsume"    />
+        <result property="elecp"    column="elecp"    />
+        <result property="hechengqi"    column="hechengqi"    />
+        <result property="u2"    column="u2"    />
+        <result property="ypg"    column="ypg"    />
+        <result property="daodianliang"    column="daodianliang"    />
+        <result property="eveLec"    column="eve_lec"    />
+        <result property="fenggucha"    column="fenggucha"    />
+        <result property="bycElec"    column="byc_elec"    />
+        <result property="bocElec"    column="boc_elec"    />
+        <result property="deptName" column="dept_name" />
+    </resultMap>
+
+    <sql id="selectTDashboardelecdataVo">
+        select d.id, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.gtg1_lv, d.gtg1_wr, d.gtg2_lv, d.gtg2_wr, d.gtg3_lv, d.gtg3_wr, d.stg1_lv, d.stg1_wr, d.mwh_lv, d.mwh_wr, d.hhp, d.hp, d.lp, d.mp, d.total_consumption, d.hhp_num, d.hhp_temp, d.hp_num, d.hp_temp, d.lp_num, d.lp_temp, d.mp_num, d.mp_temp, d.shihua, d.shiyou, d.shunshiliang, d.evconsume, d.elecp, d.hechengqi, d.u2, d.ypg, d.daodianliang, d.eve_lec, d.fenggucha, d.byc_elec, d.boc_elec ,s.dept_name from t_dashboardelecdata d
+      left join sys_dept s on s.dept_id = d.dept_id
+    </sql>
+
+    <select id="selectTDashboardelecdataList" parameterType="TDashboardelecdata" resultMap="TDashboardelecdataResult">
+        <include refid="selectTDashboardelecdataVo"/>
+        <where>  
+            <if test="createrCode != null  and createrCode != ''"> and creater_code = #{createrCode}</if>
+            <if test="createdate != null "> and createdate = #{createdate}</if>
+            <if test="updaterCode != null  and updaterCode != ''"> and updater_code = #{updaterCode}</if>
+            <if test="updatedate != null "> and updatedate = #{updatedate}</if>
+            <if test="gtg1Lv != null  and gtg1Lv != ''"> and gtg1_lv = #{gtg1Lv}</if>
+            <if test="gtg1Wr != null  and gtg1Wr != ''"> and gtg1_wr = #{gtg1Wr}</if>
+            <if test="gtg2Lv != null  and gtg2Lv != ''"> and gtg2_lv = #{gtg2Lv}</if>
+            <if test="gtg2Wr != null  and gtg2Wr != ''"> and gtg2_wr = #{gtg2Wr}</if>
+            <if test="gtg3Lv != null  and gtg3Lv != ''"> and gtg3_lv = #{gtg3Lv}</if>
+            <if test="gtg3Wr != null  and gtg3Wr != ''"> and gtg3_wr = #{gtg3Wr}</if>
+            <if test="stg1Lv != null  and stg1Lv != ''"> and stg1_lv = #{stg1Lv}</if>
+            <if test="stg1Wr != null  and stg1Wr != ''"> and stg1_wr = #{stg1Wr}</if>
+            <if test="mwhLv != null  and mwhLv != ''"> and mwh_lv = #{mwhLv}</if>
+            <if test="mwhWr != null  and mwhWr != ''"> and mwh_wr = #{mwhWr}</if>
+            <if test="hhp != null  and hhp != ''"> and hhp = #{hhp}</if>
+            <if test="hp != null  and hp != ''"> and hp = #{hp}</if>
+            <if test="lp != null  and lp != ''"> and lp = #{lp}</if>
+            <if test="mp != null  and mp != ''"> and mp = #{mp}</if>
+            <if test="totalConsumption != null  and totalConsumption != ''"> and total_consumption = #{totalConsumption}</if>
+            <if test="hhpNum != null "> and hhp_num = #{hhpNum}</if>
+            <if test="hhpTemp != null  and hhpTemp != ''"> and hhp_temp = #{hhpTemp}</if>
+            <if test="hpNum != null  and hpNum != ''"> and hp_num = #{hpNum}</if>
+            <if test="hpTemp != null  and hpTemp != ''"> and hp_temp = #{hpTemp}</if>
+            <if test="lpNum != null "> and lp_num = #{lpNum}</if>
+            <if test="lpTemp != null  and lpTemp != ''"> and lp_temp = #{lpTemp}</if>
+            <if test="mpNum != null "> and mp_num = #{mpNum}</if>
+            <if test="mpTemp != null  and mpTemp != ''"> and mp_temp = #{mpTemp}</if>
+            <if test="shihua != null  and shihua != ''"> and shihua = #{shihua}</if>
+            <if test="shiyou != null  and shiyou != ''"> and shiyou = #{shiyou}</if>
+            <if test="shunshiliang != null  and shunshiliang != ''"> and shunshiliang = #{shunshiliang}</if>
+            <if test="evconsume != null  and evconsume != ''"> and evconsume = #{evconsume}</if>
+            <if test="elecp != null  and elecp != ''"> and elecp = #{elecp}</if>
+            <if test="hechengqi != null  and hechengqi != ''"> and hechengqi = #{hechengqi}</if>
+            <if test="u2 != null  and u2 != ''"> and u2 = #{u2}</if>
+            <if test="ypg != null  and ypg != ''"> and ypg = #{ypg}</if>
+            <if test="daodianliang != null  and daodianliang != ''"> and daodianliang = #{daodianliang}</if>
+            <if test="eveLec != null  and eveLec != ''"> and eve_lec = #{eveLec}</if>
+            <if test="fenggucha != null  and fenggucha != ''"> and fenggucha = #{fenggucha}</if>
+            <if test="bycElec != null  and bycElec != ''"> and byc_elec = #{bycElec}</if>
+            <if test="bocElec != null  and bocElec != ''"> and boc_elec = #{bocElec}</if>
+            and d.del_flag = 0
+        </where>
+        <!-- 数据范围过滤 -->
+        ${params.dataScope}
+    </select>
+
+    <select id="selectLast" parameterType="TDashboardelecdata" resultMap="TDashboardelecdataResult">
+        select * from ( select * from t_dashboardelecdata where del_flag = 0 order by id desc ) WHERE ROWNUM = 1
+    </select>
+    
+    <select id="selectTDashboardelecdataById" parameterType="Long" resultMap="TDashboardelecdataResult">
+        <include refid="selectTDashboardelecdataVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertTDashboardelecdata" parameterType="TDashboardelecdata">
+        <selectKey keyProperty="id" resultType="long" order="BEFORE">
+            SELECT seq_t_dashboardelecdata.NEXTVAL as id FROM DUAL
+        </selectKey>
+        insert into t_dashboardelecdata
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="id != null">id,</if>
+            <if test="delFlag != null">del_flag,</if>
+            <if test="createrCode != null">creater_code,</if>
+            <if test="createdate != null">createdate,</if>
+            <if test="updaterCode != null">updater_code,</if>
+            <if test="updatedate != null">updatedate,</if>
+            <if test="gtg1Lv != null">gtg1_lv,</if>
+            <if test="gtg1Wr != null">gtg1_wr,</if>
+            <if test="gtg2Lv != null">gtg2_lv,</if>
+            <if test="gtg2Wr != null">gtg2_wr,</if>
+            <if test="gtg3Lv != null">gtg3_lv,</if>
+            <if test="gtg3Wr != null">gtg3_wr,</if>
+            <if test="stg1Lv != null">stg1_lv,</if>
+            <if test="stg1Wr != null">stg1_wr,</if>
+            <if test="mwhLv != null">mwh_lv,</if>
+            <if test="mwhWr != null">mwh_wr,</if>
+            <if test="hhp != null">hhp,</if>
+            <if test="hp != null">hp,</if>
+            <if test="lp != null">lp,</if>
+            <if test="mp != null">mp,</if>
+            <if test="totalConsumption != null">total_consumption,</if>
+            <if test="hhpNum != null">hhp_num,</if>
+            <if test="hhpTemp != null">hhp_temp,</if>
+            <if test="hpNum != null">hp_num,</if>
+            <if test="hpTemp != null">hp_temp,</if>
+            <if test="lpNum != null">lp_num,</if>
+            <if test="lpTemp != null">lp_temp,</if>
+            <if test="mpNum != null">mp_num,</if>
+            <if test="mpTemp != null">mp_temp,</if>
+            <if test="shihua != null">shihua,</if>
+            <if test="shiyou != null">shiyou,</if>
+            <if test="shunshiliang != null">shunshiliang,</if>
+            <if test="evconsume != null">evconsume,</if>
+            <if test="elecp != null">elecp,</if>
+            <if test="hechengqi != null">hechengqi,</if>
+            <if test="u2 != null">u2,</if>
+            <if test="ypg != null">ypg,</if>
+            <if test="daodianliang != null">daodianliang,</if>
+            <if test="eveLec != null">eve_lec,</if>
+            <if test="fenggucha != null">fenggucha,</if>
+            <if test="bycElec != null">byc_elec,</if>
+            <if test="bocElec != null">boc_elec,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="id != null">#{id},</if>
+            <if test="delFlag != null">#{delFlag},</if>
+            <if test="createrCode != null">#{createrCode},</if>
+            <if test="createdate != null">#{createdate},</if>
+            <if test="updaterCode != null">#{updaterCode},</if>
+            <if test="updatedate != null">#{updatedate},</if>
+            <if test="gtg1Lv != null">#{gtg1Lv},</if>
+            <if test="gtg1Wr != null">#{gtg1Wr},</if>
+            <if test="gtg2Lv != null">#{gtg2Lv},</if>
+            <if test="gtg2Wr != null">#{gtg2Wr},</if>
+            <if test="gtg3Lv != null">#{gtg3Lv},</if>
+            <if test="gtg3Wr != null">#{gtg3Wr},</if>
+            <if test="stg1Lv != null">#{stg1Lv},</if>
+            <if test="stg1Wr != null">#{stg1Wr},</if>
+            <if test="mwhLv != null">#{mwhLv},</if>
+            <if test="mwhWr != null">#{mwhWr},</if>
+            <if test="hhp != null">#{hhp},</if>
+            <if test="hp != null">#{hp},</if>
+            <if test="lp != null">#{lp},</if>
+            <if test="mp != null">#{mp},</if>
+            <if test="totalConsumption != null">#{totalConsumption},</if>
+            <if test="hhpNum != null">#{hhpNum},</if>
+            <if test="hhpTemp != null">#{hhpTemp},</if>
+            <if test="hpNum != null">#{hpNum},</if>
+            <if test="hpTemp != null">#{hpTemp},</if>
+            <if test="lpNum != null">#{lpNum},</if>
+            <if test="lpTemp != null">#{lpTemp},</if>
+            <if test="mpNum != null">#{mpNum},</if>
+            <if test="mpTemp != null">#{mpTemp},</if>
+            <if test="shihua != null">#{shihua},</if>
+            <if test="shiyou != null">#{shiyou},</if>
+            <if test="shunshiliang != null">#{shunshiliang},</if>
+            <if test="evconsume != null">#{evconsume},</if>
+            <if test="elecp != null">#{elecp},</if>
+            <if test="hechengqi != null">#{hechengqi},</if>
+            <if test="u2 != null">#{u2},</if>
+            <if test="ypg != null">#{ypg},</if>
+            <if test="daodianliang != null">#{daodianliang},</if>
+            <if test="eveLec != null">#{eveLec},</if>
+            <if test="fenggucha != null">#{fenggucha},</if>
+            <if test="bycElec != null">#{bycElec},</if>
+            <if test="bocElec != null">#{bocElec},</if>
+         </trim>
+    </insert>
+
+    <update id="updateTDashboardelecdata" parameterType="TDashboardelecdata">
+        update t_dashboardelecdata
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="delFlag != null">del_flag = #{delFlag},</if>
+            <if test="createrCode != null">creater_code = #{createrCode},</if>
+            <if test="createdate != null">createdate = #{createdate},</if>
+            <if test="updaterCode != null">updater_code = #{updaterCode},</if>
+            <if test="updatedate != null">updatedate = #{updatedate},</if>
+            <if test="gtg1Lv != null">gtg1_lv = #{gtg1Lv},</if>
+            <if test="gtg1Wr != null">gtg1_wr = #{gtg1Wr},</if>
+            <if test="gtg2Lv != null">gtg2_lv = #{gtg2Lv},</if>
+            <if test="gtg2Wr != null">gtg2_wr = #{gtg2Wr},</if>
+            <if test="gtg3Lv != null">gtg3_lv = #{gtg3Lv},</if>
+            <if test="gtg3Wr != null">gtg3_wr = #{gtg3Wr},</if>
+            <if test="stg1Lv != null">stg1_lv = #{stg1Lv},</if>
+            <if test="stg1Wr != null">stg1_wr = #{stg1Wr},</if>
+            <if test="mwhLv != null">mwh_lv = #{mwhLv},</if>
+            <if test="mwhWr != null">mwh_wr = #{mwhWr},</if>
+            <if test="hhp != null">hhp = #{hhp},</if>
+            <if test="hp != null">hp = #{hp},</if>
+            <if test="lp != null">lp = #{lp},</if>
+            <if test="mp != null">mp = #{mp},</if>
+            <if test="totalConsumption != null">total_consumption = #{totalConsumption},</if>
+            <if test="hhpNum != null">hhp_num = #{hhpNum},</if>
+            <if test="hhpTemp != null">hhp_temp = #{hhpTemp},</if>
+            <if test="hpNum != null">hp_num = #{hpNum},</if>
+            <if test="hpTemp != null">hp_temp = #{hpTemp},</if>
+            <if test="lpNum != null">lp_num = #{lpNum},</if>
+            <if test="lpTemp != null">lp_temp = #{lpTemp},</if>
+            <if test="mpNum != null">mp_num = #{mpNum},</if>
+            <if test="mpTemp != null">mp_temp = #{mpTemp},</if>
+            <if test="shihua != null">shihua = #{shihua},</if>
+            <if test="shiyou != null">shiyou = #{shiyou},</if>
+            <if test="shunshiliang != null">shunshiliang = #{shunshiliang},</if>
+            <if test="evconsume != null">evconsume = #{evconsume},</if>
+            <if test="elecp != null">elecp = #{elecp},</if>
+            <if test="hechengqi != null">hechengqi = #{hechengqi},</if>
+            <if test="u2 != null">u2 = #{u2},</if>
+            <if test="ypg != null">ypg = #{ypg},</if>
+            <if test="daodianliang != null">daodianliang = #{daodianliang},</if>
+            <if test="eveLec != null">eve_lec = #{eveLec},</if>
+            <if test="fenggucha != null">fenggucha = #{fenggucha},</if>
+            <if test="bycElec != null">byc_elec = #{bycElec},</if>
+            <if test="bocElec != null">boc_elec = #{bocElec},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <update id="deleteTDashboardelecdataById" parameterType="Long">
+        update t_dashboardelecdata set del_flag = 2 where id = #{id}
+    </update>
+
+    <update id="deleteTDashboardelecdataByIds" parameterType="String">
+        update t_dashboardelecdata set del_flag = 2 where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </update>
+    
+</mapper>

+ 61 - 0
ui/src/api/aspen/dashboardelecdata.js

@@ -0,0 +1,61 @@
+import request from '@/utils/request'
+
+// 查询电厂大屏DASHBOARDELEC抓取数据列表
+export function listDashboardelecdata(query) {
+  return request({
+    url: '/his/dashboardelecdata/list',
+    method: 'get',
+    params: query
+  })
+}
+
+// 查询电厂大屏DASHBOARDELEC抓取数据详细
+export function getDashboardelecdata(id) {
+  return request({
+    url: '/his/dashboardelecdata/' + id,
+    method: 'get'
+  })
+}
+
+// 新增电厂大屏DASHBOARDELEC抓取数据
+export function addDashboardelecdata(data) {
+  return request({
+    url: '/his/dashboardelecdata',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改电厂大屏DASHBOARDELEC抓取数据
+export function updateDashboardelecdata(data) {
+  return request({
+    url: '/his/dashboardelecdata',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除电厂大屏DASHBOARDELEC抓取数据
+export function delDashboardelecdata(id) {
+  return request({
+    url: '/his/dashboardelecdata/' + id,
+    method: 'delete'
+  })
+}
+
+// 导出电厂大屏DASHBOARDELEC抓取数据
+export function exportDashboardelecdata(query) {
+  return request({
+    url: '/his/dashboardelecdata/export',
+    method: 'get',
+    params: query
+  })
+}
+// 查询最后一条dashboard抓取数据
+export function selectLast(query) {
+  return request({
+    url: '/aspen/dashboardelecdata/selectLast',
+    method: 'get',
+    params: query
+  })
+}

+ 5 - 4
ui/src/views/monitor/elec/bottomRight.vue

@@ -21,25 +21,25 @@
         <div style="">
           <div style="display:flex;flex-direction:row; margin-bottom: 30px">
             <p class="ml-3 colorBlue fw-b">电厂</p>
-            <div class="fontElec1">853.0</div>
+            <div class="fontElec1">{{dashboardelecdata.elecp}}</div>
           </div>
         </div>
         <div style="display:flex;flex-direction:row; margin-bottom: 30px">
           <p class="ml-3 colorBlue fw-b">合成器</p>
           <div>
-            <div class="fontElec1">53.0</div>
+            <div class="fontElec1">{{ dashboardelecdata.hechengqi }}</div>
           </div>
         </div>
         <div style="display:flex;flex-direction:row; margin-bottom: 30px">
           <p class="ml-3 colorBlue fw-b">剩余U2</p>
           <div>
-            <div class="fontElec1">145.0</div>
+            <div class="fontElec1">{{dashboardelecdata.u2}}</div>
           </div>
         </div>
         <div style="display:flex;flex-direction:row; margin-bottom: 30px">
           <p class="ml-3 colorBlue fw-b">剩余量</p>
           <div style="float: top">
-            <div class="fontElec1">15.0</div>
+            <div class="fontElec1">{{ dashboardelecdata.evconsume }}</div>
           </div>
         </div>
       </div>
@@ -52,6 +52,7 @@
 <script>
 import bottomRightChart from "./echart/bottom/bottomRightChart";
 export default {
+  props: ['dashboardelecdata'],
   data() {
     return {};
   },

+ 14 - 10
ui/src/views/monitor/elec/center.vue

@@ -65,15 +65,18 @@
 
 <script>
 import centerChart from "./echart/center/centerChartRate";
+import {addDashboardelecdata} from "@/api/aspen/dashboardelecdata";
 
 export default {
+  props: ['dashboardelecdata'],
   data() {
     return {
+      queryParams:{},
       numberData: [
 
         {
           number: {
-            number: [15],
+            number: [parseInt(this.dashboardelecdata.gtg1Lv)],
             toFixed: 1,
             content: "{nt}"
           },
@@ -81,7 +84,7 @@ export default {
         },
         {
           number: {
-            number: [1144],
+            number: [parseInt(this.dashboardelecdata.gtg2Lv)],
             toFixed: 1,
             content: "{nt}"
           },
@@ -89,7 +92,7 @@ export default {
         },
         {
           number: {
-            number: [361],
+            number: [parseInt(this.dashboardelecdata.gtg3Lv)],
             toFixed: 1,
             content: "{nt}"
           },
@@ -97,7 +100,7 @@ export default {
         },
         {
           number: {
-            number: [157],
+            number: [parseInt(this.dashboardelecdata.stg1Lv)],
             toFixed: 1,
             content: "{nt}"
           },
@@ -105,7 +108,7 @@ export default {
         },
         {
           number: {
-            number: [2000],
+            number: [parseInt(this.dashboardelecdata.mwhLv)],
             toFixed: 1,
             content: "{nt}"
           },
@@ -161,7 +164,7 @@ export default {
       rate: [
         {
           id: "centerRate0",
-          tips: 66,
+          tips: this.dashboardelecdata.mwhWr,
           colorData: {
             textStyle: "#3fc0fb",
             series: {
@@ -175,7 +178,7 @@ export default {
         },
         {
           id: "centerRate1",
-          tips: 60,
+          tips: this.dashboardelecdata.stg1Wr,
           colorData: {
             textStyle: "#3fc0fb",
             series: {
@@ -189,7 +192,7 @@ export default {
         },
         {
           id: "centerRate2",
-          tips: 40,
+          tips: this.dashboardelecdata.gtg3Wr,
           colorData: {
             textStyle: "#67e0e3",
             series: {
@@ -203,7 +206,7 @@ export default {
         },
         {
           id: "centerRate3",
-          tips: 40,
+          tips: this.dashboardelecdata.gtg2Wr,
           colorData: {
             textStyle: "#67e0e3",
             series: {
@@ -217,7 +220,7 @@ export default {
         },
         {
           id: "centerRate4",
-          tips: 40,
+          tips: this.dashboardelecdata.gtg1Wr,
           colorData: {
             textStyle: "#67e0e3",
             series: {
@@ -239,6 +242,7 @@ export default {
   },
   mounted() {
     this.initChart();
+    console.log(150,this.dashboardelecdata.gtg1Lv)
   },
   methods: {
     initChart() {

+ 4 - 3
ui/src/views/monitor/elec/centerRight2.vue

@@ -11,15 +11,15 @@
         <div id="peakToValley" style="width:100%;height:2.5rem;"></div>
       </div>
       <div class="d-flex jc-center body-box" style=" margin-top: 0;">
-        <div class="fontElec">2264.0</div>
+        <div class="fontElec">{{dashboardelecdata.ypg}}</div>
         <p>发电量</p>
       </div>
       <div class="d-flex jc-center body-box" style=" margin-top: 0;">
-        <div class="fontElec">853.0</div>
+        <div class="fontElec">{{dashboardelecdata.daodianliang}}</div>
         <p>倒电量</p>
       </div>
       <div class="d-flex jc-center body-box" style=" margin-top: 0;">
-        <div class="fontElec">1872.0</div>
+        <div class="fontElec">{{dashboardelecdata.eveLec}}</div>
         <p>用电量</p>
       </div>
     </div>
@@ -30,6 +30,7 @@
   import centreRight2Chart1 from "@/components/echart/centreRight2/centreRight2Chart1";
 
   export default {
+    props: ['dashboardelecdata'],
     data() {
       return {
         config: {

+ 61 - 7
ui/src/views/monitor/elec/elecindex.vue

@@ -65,16 +65,16 @@
         <div class="content-box">
           <div>
             <dv-border-box-12>
-              <centerLeft1 />
+              <centerLeft1 :dashboardelecdata="dashboardelecdata"/>
             </dv-border-box-12>
           </div>
           <!-- 中间 -->
           <div>
-            <center />
+            <center :dashboardelecdata="dashboardelecdata"/>
           </div>
           <!-- 中间 -->
           <div>
-            <centerRight2 />
+            <centerRight2 :dashboardelecdata="dashboardelecdata"/>
           </div>
           <div>
             <dv-border-box-13>
@@ -90,7 +90,7 @@
           </dv-border-box-13>
           <div class="bototm-box1">
             <dv-border-box-12>
-              <bottom-right />
+              <bottom-right :dashboardelecdata="dashboardelecdata"/>
             </dv-border-box-12>
             <div class="bototm-box2">
               <dv-border-box-12>
@@ -157,6 +157,7 @@ import frontElecThree from "@/views/monitor/elec/frontElecThree";
 import '@/assets/styles/index.scss' // global css
 import '@/common/flexible.js';
 import dayjs from "dayjs";
+import {selectLast} from "@/api/aspen/dashboardelecdata";
 
 export default {
   data() {
@@ -173,7 +174,45 @@ export default {
       bgCol3:"#0f1325",
       bgCol0:"#0a84ff",
       wh:"3.25rem",
-      tAlign:"left"
+      tAlign:"left",
+      dashboardelecdata: {
+        gtg1Lv: null,
+        gtg1Wr: null,
+        gtg2Lv: null,
+        gtg2Wr: null,
+        gtg3Lv: null,
+        gtg3Wr: null,
+        stg1Lv: null,
+        stg1Wr: null,
+        mwhLv: null,
+        mwhWr: null,
+        hhp: null,
+        hp: null,
+        lp: null,
+        mp: null,
+        totalConsumption: null,
+        hhpNum: null,
+        hhpTemp: null,
+        hpNum: null,
+        hpTemp: null,
+        lpNum: null,
+        lpTemp: null,
+        mpNum: null,
+        mpTemp: null,
+        shihua: null,
+        shiyou: null,
+        shunshiliang: null,
+        evconsume: null,
+        elecp: null,
+        hechengqi: null,
+        u2: null,
+        ypg: null,
+        daodianliang: null,
+        eveLec: null,
+        fenggucha: null,
+        bycElec: null,
+        bocElec: null
+      }
     };
   },
   components: {
@@ -204,7 +243,23 @@ export default {
     // * 适配处理
     this.cancelLoading();
   },
+  created() {
+    this.getList1();
+    window.setInterval(() => {
+      setTimeout(() => {
+        ///调取接口获取数据
+        this.getList1();
+      }, 0)
+    }, 20000)
+  },
   methods: {
+    /** 查询dashboardelec抓取数据列表 */
+    getList1()
+    {
+      selectLast(this.queryParams).then(response => {
+        this.dashboardelecdata = response.data;
+      });
+    },
     cancelLoading() {
       setTimeout(() => {
         this.loading = false;
@@ -269,10 +324,9 @@ export default {
       });
       window.open('/cpms/index.html#/elecDashboard', '_blank');
     },
-
-
   }
 };
+
 </script>
 
 <style lang="scss">