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.math.BigDecimal;
import java.time.LocalDateTime;

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

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

    @Schema(description = "价格策略ID(关联third_party_equipment_price_policy表)")
    @TableField("price_policy_id")
    private Long pricePolicyId;

    @Schema(description = "时段开始时间(HHmmss格式)")
    @TableField("start_time")
    private String startTime;

    @Schema(description = "电价(元/度)")
    @TableField("elec_price")
    private BigDecimal elecPrice;

    @Schema(description = "服务费(元/度)")
    @TableField("service_price")
    private BigDecimal servicePrice;

    @Schema(description = "时段标志(1-尖,2-峰,3-平,4-谷)")
    @TableField("period_flag")
    private Integer periodFlag;

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

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

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

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