|
|
@@ -0,0 +1,258 @@
|
|
|
+package com.jeesite.modules.tianHong.entity;
|
|
|
+
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+import com.jeesite.common.entity.DataEntity;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 设备实时属性Entity
|
|
|
+ * 对应 bzh 库 machine_attr_state 表,关联 crutempstate、alutempstate、mouldtempstate、pressurestate、EleConsumeState
|
|
|
+ * @author ljr
|
|
|
+ * @version 2026-07-07
|
|
|
+ */
|
|
|
+public class MachineAttrState extends DataEntity<MachineAttrState> {
|
|
|
+
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+
|
|
|
+ // ===== machine_attr_state 主表字段(按 eqp_id 聚合,行转列取关键属性)=====
|
|
|
+ private String eqpId; // 设备号
|
|
|
+ private String aluVal; // 剩余模次(attr='alu_val')
|
|
|
+ private String pressurizeTime; // 保压时间(attr='pressurizeTime')
|
|
|
+ private String coolingTime; // 冷却时间(attr='coolingTime')
|
|
|
+ private String prePres; // 预压压力设定(attr='PrePres')
|
|
|
+ private String holdPressure; // 保压开始信号(attr='HoldPressure')
|
|
|
+ private String moldFillingPre; // 充型压力(attr='moldFillingPre')
|
|
|
+ private Date attrEventTime; // machine_attr_state 最后更新时间
|
|
|
+
|
|
|
+ // ===== 关联表:crutempstate 炉膛温度 =====
|
|
|
+ private String cruTemp; // 炉膛温度
|
|
|
+ private Date cruTempTime; // 炉膛温度时间
|
|
|
+
|
|
|
+ // ===== 关联表:alutempstate 铝水温度 =====
|
|
|
+ private String aluTemp; // 铝水温度
|
|
|
+ private Date aluTempTime; // 铝水温度时间
|
|
|
+
|
|
|
+ // ===== 关联表:mouldtempstate 模具温度(一个设备可能多个测温点,拼接展示)=====
|
|
|
+ private String mouldInfo; // 模具温度信息(如 "M1:725.5, M2:730.2")
|
|
|
+ private Date mouldTempTime; // 模具温度时间
|
|
|
+
|
|
|
+ // ===== 关联表:pressurestate 压力(理论压力与实际压力)=====
|
|
|
+ private String theoryPressure; // 理论压力
|
|
|
+ private String realPressure; // 实际压力
|
|
|
+ private String pressureLevel; // 压力段位
|
|
|
+ private Date pressureTime; // 压力时间
|
|
|
+
|
|
|
+ // ===== 关联表:EleConsumeState 电量(总计)=====
|
|
|
+ private String eleConsume; // 电量
|
|
|
+ private Date eleConsumeTime; // 电量时间
|
|
|
+
|
|
|
+ // ===== 详情:该设备的所有属性记录列表 =====
|
|
|
+ private List<MachineAttrState> attrList;
|
|
|
+
|
|
|
+ public MachineAttrState() {
|
|
|
+ this(null);
|
|
|
+ }
|
|
|
+
|
|
|
+ public MachineAttrState(String id) {
|
|
|
+ super(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getEqpId() {
|
|
|
+ return eqpId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEqpId(String eqpId) {
|
|
|
+ this.eqpId = eqpId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAluVal() {
|
|
|
+ return aluVal;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAluVal(String aluVal) {
|
|
|
+ this.aluVal = aluVal;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPressurizeTime() {
|
|
|
+ return pressurizeTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPressurizeTime(String pressurizeTime) {
|
|
|
+ this.pressurizeTime = pressurizeTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCoolingTime() {
|
|
|
+ return coolingTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCoolingTime(String coolingTime) {
|
|
|
+ this.coolingTime = coolingTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPrePres() {
|
|
|
+ return prePres;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPrePres(String prePres) {
|
|
|
+ this.prePres = prePres;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getHoldPressure() {
|
|
|
+ return holdPressure;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setHoldPressure(String holdPressure) {
|
|
|
+ this.holdPressure = holdPressure;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getMoldFillingPre() {
|
|
|
+ return moldFillingPre;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMoldFillingPre(String moldFillingPre) {
|
|
|
+ this.moldFillingPre = moldFillingPre;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getAttrEventTime() {
|
|
|
+ return attrEventTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAttrEventTime(Date attrEventTime) {
|
|
|
+ this.attrEventTime = attrEventTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getCruTemp() {
|
|
|
+ return cruTemp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCruTemp(String cruTemp) {
|
|
|
+ this.cruTemp = cruTemp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getCruTempTime() {
|
|
|
+ return cruTempTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCruTempTime(Date cruTempTime) {
|
|
|
+ this.cruTempTime = cruTempTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAluTemp() {
|
|
|
+ return aluTemp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAluTemp(String aluTemp) {
|
|
|
+ this.aluTemp = aluTemp;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getAluTempTime() {
|
|
|
+ return aluTempTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAluTempTime(Date aluTempTime) {
|
|
|
+ this.aluTempTime = aluTempTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getMouldInfo() {
|
|
|
+ return mouldInfo;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMouldInfo(String mouldInfo) {
|
|
|
+ this.mouldInfo = mouldInfo;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getMouldTempTime() {
|
|
|
+ return mouldTempTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMouldTempTime(Date mouldTempTime) {
|
|
|
+ this.mouldTempTime = mouldTempTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getTheoryPressure() {
|
|
|
+ return theoryPressure;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTheoryPressure(String theoryPressure) {
|
|
|
+ this.theoryPressure = theoryPressure;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getRealPressure() {
|
|
|
+ return realPressure;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRealPressure(String realPressure) {
|
|
|
+ this.realPressure = realPressure;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPressureLevel() {
|
|
|
+ return pressureLevel;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPressureLevel(String pressureLevel) {
|
|
|
+ this.pressureLevel = pressureLevel;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getPressureTime() {
|
|
|
+ return pressureTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPressureTime(Date pressureTime) {
|
|
|
+ this.pressureTime = pressureTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getEleConsume() {
|
|
|
+ return eleConsume;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEleConsume(String eleConsume) {
|
|
|
+ this.eleConsume = eleConsume;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getEleConsumeTime() {
|
|
|
+ return eleConsumeTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEleConsumeTime(Date eleConsumeTime) {
|
|
|
+ this.eleConsumeTime = eleConsumeTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<MachineAttrState> getAttrList() {
|
|
|
+ return attrList;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAttrList(List<MachineAttrState> attrList) {
|
|
|
+ this.attrList = attrList;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 用于行转列详情的 attr 字段(详情查询时使用)
|
|
|
+ private String attr;
|
|
|
+ private String val;
|
|
|
+ private Date eventTime;
|
|
|
+
|
|
|
+ public String getAttr() {
|
|
|
+ return attr;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAttr(String attr) {
|
|
|
+ this.attr = attr;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getVal() {
|
|
|
+ return val;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setVal(String val) {
|
|
|
+ this.val = val;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Date getEventTime() {
|
|
|
+ return eventTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setEventTime(Date eventTime) {
|
|
|
+ this.eventTime = eventTime;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|