package com.centreproject.system.domain.kpi.park;

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 lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户情感分析结果实体类
 * @author zhonglei.xu
 */
@Data
@TableName("sentiment_analysis")
public class SentimentAnalysis {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("park_code")
    private String parkCode;

    @TableField("positive_count")
    private Integer positiveCount;

    @TableField("negative_count")
    private Integer negativeCount;

    @TableField("neutral_count")
    private Integer neutralCount;

    @TableField("positive_rate")
    private BigDecimal positiveRate;

    @TableField("negative_rate")
    private BigDecimal negativeRate;

    @TableField("neutral_rate")
    private BigDecimal neutralRate;

    @TableField("positive_trend")
    private BigDecimal positiveTrend;

    @TableField("negative_trend")
    private BigDecimal negativeTrend;

    @TableField("neutral_trend")
    private BigDecimal neutralTrend;

    @TableField("tags")
    private String tags;

    @TableField("analysis_date")
    private Date analysisDate;

    @TableField("synch_time")
    private Date synchTime;

    @TableField("sync_trace_id")
    private String syncTraceId;

    // 计算总数量（非数据库字段）
    @TableField(exist = false)
    private Integer totalCount;

}