package com.ylcm.sys.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.time.LocalDate;

@ApiModel("收视趋势")
@Data
public class AdTvRatioTrendVO {

    @JSONField(format = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate showDate;

    private float ratio;

    public void init() {
        ratio = (float)(Math.round(ratio*1000)/1000.0);
    }
}
