package com.zksy.electricity.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@TableName("message_parse_result")
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "读取电表数据")
public class MessageParseResult {
    @ApiModelProperty(value = "主键 ID")
    private Long id;

    @ApiModelProperty(value = "前导")
    private String leadingString;

    @ApiModelProperty(value = "固定 1")
    private String fixed1;

    @ApiModelProperty(value = "表号")
    private String tableNumber;

    @ApiModelProperty(value = "固定 2")
    private String fixed2;

    @ApiModelProperty(value = "命令码")
    private String commandCode;

    @ApiModelProperty(value = "数据域长度")
    private Integer dataFieldLength;

    @ApiModelProperty(value = "数据标识")
    private String dataIdentification;

    @ApiModelProperty(value = "剩余金额")
    private String remainingAmount;

    @ApiModelProperty(value = "透支金额")
    private String overdraftAmount;

    @ApiModelProperty(value = "A 相电压")
    private String AVoltage;

    @ApiModelProperty(value = "B 相电压")
    private String BVoltage;

    @ApiModelProperty(value = "C 相电压")
    private String CVoltage;

    @ApiModelProperty(value = "A 相电流")
    private String ACurrent;

    @ApiModelProperty(value = "B 相电流")
    private String BCurrent;

    @ApiModelProperty(value = "C 相电流")
    private String CCurrent;

    @ApiModelProperty(value = "总有功功率")
    private String totalActivePower;

    @ApiModelProperty(value = "A 相有功功率")
    private String AActivePower;

    @ApiModelProperty(value = "B 相有功功率")
    private String BActivePower;

    @ApiModelProperty(value = "C 相有功功率")
    private String CActivePower;

    @ApiModelProperty(value = "总功率因素")
    private String totalPower;

    @ApiModelProperty(value = "A 相功率因素")
    private String APower;

    @ApiModelProperty(value = "B 相功率因素")
    private String BPower;

    @ApiModelProperty(value = "C 相功率因素")
    private String CPower;

    @ApiModelProperty(value = "总用电量")
    private String totalElectricity;

    @ApiModelProperty(value = "尖有功电量")
    private String sharpActivePowerConsumption;

    @ApiModelProperty(value = "峰有功电量")
    private String peakActivePowerConsumption;

    @ApiModelProperty(value = "平有功电量")
    private String averageActivePowerConsumption;

    @ApiModelProperty(value = "谷有功电")
    private String valleyActivePower;

    @ApiModelProperty(value = "状态")
    private String state;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;
}