package com.hdkj.lt.bf.entity;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.hdkj.lt.base.serializer.BigDecimalSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * @author luorui
 * @date 2025/5/21 12:15
 * 损失用户分页对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UsersPage<T> extends Page<T> {

    /**
     * 累计损失电量(kWh)
     */
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal totalLossPowers;
    /**
     * 累计损失时户(时·户)
     */
    @JsonSerialize(using = BigDecimalSerializer.Keep2DecimalSerializer.class)
    private BigDecimal totalLossCustHours;
}
