package cn.iocoder.yudao.module.energy.dal.dataobject.bill;

import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 账单调整记录 DO
 */
@TableName("energy_bill_adjustment")
@KeySequence("energy_bill_adjustment_seq")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class EnergyBillAdjustmentDO extends BaseDO {

    /**
     * 主键
     */
    @TableId
    private Long id;

    /**
     * 账单ID
     */
    private Long billId;

    /**
     * 明细ID
     */
    private Long detailId;

    /**
     * 调整类型
     */
    private Integer adjustmentType;

    /**
     * 调整金额
     */
    private BigDecimal amount;

    /**
     * 调整原因
     */
    private String reason;

    /**
     * 附件URLs
     */
    private String attachmentUrls;

    /**
     * 操作人ID
     */
    private Long operatorId;

    /**
     * 操作时间
     */
    private LocalDateTime operateTime;

}
