Files
klp-oa/klp-ems/src/main/java/com/klp/ems/domain/EmsMeter.java
Joshi 0c3382d6db feat(ems): 能源设备添加电表产线和总表标识字段
- 在 EmsMeter 实体类中新增 productionLine 和 isTotalMeter 字段
- 在 EmsMeterBo 业务对象中添加对应的产线和总表标识属性
- 更新 EmsMeterMapper.xml 映射文件以支持新字段的数据库映射
- 在查询条件中增加产线模糊匹配和总表标识精确匹配功能
- 在 EmsMeterVo 视图对象中添加 Excel 导出支持的新字段
2026-04-27 15:28:05 +08:00

85 lines
1.6 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.klp.ems.domain;
import com.baomidou.mybatisplus.annotation.*;
import com.klp.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* 计量设备(阈值移至此处)对象 ems_meter
*
* @author Joshi
* @date 2025-09-28
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("ems_meter")
public class EmsMeter extends BaseEntity {
private static final long serialVersionUID=1L;
/**
*
*/
@TableId(value = "meter_id")
private Long meterId;
/**
* 设备编号
*/
private String meterCode;
/**
* 关联能源类型
*/
private Long energyTypeId;
/**
* 安装位置
*/
private Long locationId;
/**
* 设备型号
*/
private String model;
/**
* 制造商
*/
private String manufacturer;
/**
* 安装日期
*/
private Date installDate;
/**
* 设备状态0=在用,1=停用,2=维护
*/
private Long status;
/**
* 上次校准日期
*/
private Date lastCalibrationDate;
/**
* 阈值(按设备设置)
*/
private BigDecimal thresholdValue;
/**
* 删除标志0=存在 2=删除)
*/
@TableLogic
private String delFlag;
/**
* 备注
*/
private String remark;
/**
* 产线S1、S2、组装线、包装线等
*/
private String productionLine;
/**
* 是否总表0=否1=是
*/
private Integer isTotalMeter;
}