package cn.shlanbao.qms.domain.vo;
|
|
import cn.shlanbao.qms.domain.LbSensor;
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
import com.alibaba.excel.annotation.ExcelProperty;
|
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
import org.dromara.common.excel.convert.ExcelDictConvert;
|
import io.github.linpeilie.annotations.AutoMapper;
|
import lombok.Data;
|
|
import java.io.Serial;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
|
|
/**
|
* 传感器视图对象 lb_sensor
|
*
|
* @author bsw
|
* @date 2024-12-11
|
*/
|
@Data
|
@ExcelIgnoreUnannotated
|
@AutoMapper(target = LbSensor.class)
|
public class LbSensorVo implements Serializable {
|
|
@Serial
|
private static final long serialVersionUID = 1L;
|
|
/**
|
*
|
*/
|
@ExcelProperty(value = "")
|
private Long prodId;
|
|
/**
|
* 产品型号
|
*/
|
@ExcelProperty(value = "产品型号")
|
private String prodModel;
|
|
/**
|
* 产品条码
|
*/
|
@ExcelProperty(value = "产品条码")
|
private String prodBarcode;
|
|
/**
|
* 产品大类
|
*/
|
@ExcelProperty(value = "产品大类")
|
private String prodClass;
|
|
/**
|
* 产品小类
|
*/
|
@ExcelProperty(value = "产品小类")
|
private String prodSubclass;
|
|
/**
|
* 供电电源(DC-直流;AC-交流)
|
*/
|
@ExcelProperty(value = "供电电源", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(readConverterExp = "D=C-直流;AC-交流")
|
private String supply;
|
|
/**
|
* 供电电压高值
|
*/
|
@ExcelProperty(value = "供电电压高值")
|
private Long supplyHigh;
|
|
/**
|
* 供电电压中值
|
*/
|
@ExcelProperty(value = "供电电压中值")
|
private Long supplyMiddle;
|
|
/**
|
* 供电电压低值
|
*/
|
@ExcelProperty(value = "供电电压低值")
|
private Long supplyLow;
|
|
/**
|
* 负载电流
|
*/
|
@ExcelProperty(value = "负载电流")
|
private Long loadCurrent;
|
|
/**
|
* 引线数量
|
*/
|
@ExcelProperty(value = "引线数量")
|
private Long wire;
|
|
/**
|
* 输出信号(开关量;模拟量)
|
*/
|
@ExcelProperty(value = "输出信号", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(readConverterExp = "开=关量;模拟量")
|
private String outputSignal;
|
|
/**
|
* 输出类型(NO; NC; NO+NC)
|
*/
|
@ExcelProperty(value = "输出类型", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(readConverterExp = "N=O;,N=C;,N=O+NC")
|
private String outputType;
|
|
/**
|
* 输出极性(NPN; PNP)
|
*/
|
@ExcelProperty(value = "输出极性", converter = ExcelDictConvert.class)
|
@ExcelDictFormat(readConverterExp = "N=PN;,P=NP")
|
private String outputPolarity;
|
|
/**
|
* 感应距离
|
*/
|
@ExcelProperty(value = "感应距离")
|
private Long distance;
|
|
/**
|
* 备注
|
*/
|
@ExcelProperty(value = "备注")
|
private String remark;
|
|
/**
|
* 创建时间
|
*/
|
private Date createTime;
|
|
|
}
|