package com.zsElectric.boot.charging.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 第三方设备价格策略实体类
 *
 * @author system
 * @since 2025-12-12
 */
@Data
@Accessors(chain = true)
@TableName("third_party_equipment_price_policy")
@Schema(description = "第三方设备价格策略")
public class ThirdPartyEquipmentPricePolicy {

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "设备业务序列号")
    @TableField("equip_biz_seq")
    private String equipBizSeq;

    @Schema(description = "充电桩ID")
    @TableField("connector_id")
    private String connectorId;

    @Schema(description = "成功状态(0-成功,1-失败)")
    @TableField("succ_stat")
    private Integer succStat;

    @Schema(description = "失败原因(0-无错误)")
    @TableField("fail_reason")
    private Integer failReason;

    @Schema(description = "总时段数")
    @TableField("sum_period")
    private Integer sumPeriod;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "创建人ID")
    @TableField("create_by")
    private Long createBy;

    @Schema(description = "逻辑删除(0-未删除 1-已删除)")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;
}
