package com.ruoyi.web.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 活动信息对象 hd_info
 * 
 * @author ruoyi
 * @date 2025-08-25
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value ="hd_info")
@Data
public class HdInfo extends BaseEntity implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 活动日期 */
    @Excel(name = "活动日期")
    @ApiModelProperty("活动日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date hdrq;

    /** 球耗数量 */
    @Excel(name = "球耗数量")
    @ApiModelProperty("球耗数量")
    private Integer qhsl;

    /** 总费用 */
    @Excel(name = "总费用")
    @ApiModelProperty("总费用")
    private BigDecimal totalCost;

    @ApiModelProperty("cg_info表主键")
    private BigDecimal cgId;



    @TableField(exist = false)
    private List<HdQh> hdQhList = new ArrayList<>();

    @TableField(exist = false)
    @ApiModelProperty("结算状态")
    private boolean jszt;

}
