From 6648dba70552034ebe2c48f903ec2e00ed99988c Mon Sep 17 00:00:00 2001 From: wujingtao Date: Fri, 25 Mar 2022 14:18:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=AE=9A=E6=97=B6=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E5=AE=9E=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/report/entity/TaskReport.java | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 manage/ad-platform-management/src/main/java/com/baiye/modules/report/entity/TaskReport.java diff --git a/manage/ad-platform-management/src/main/java/com/baiye/modules/report/entity/TaskReport.java b/manage/ad-platform-management/src/main/java/com/baiye/modules/report/entity/TaskReport.java new file mode 100644 index 00000000..a5452727 --- /dev/null +++ b/manage/ad-platform-management/src/main/java/com/baiye/modules/report/entity/TaskReport.java @@ -0,0 +1,71 @@ +package com.baiye.modules.report.entity; + +import io.swagger.annotations.ApiModelProperty; +import lombok.AllArgsConstructor; +import lombok.Getter; +import lombok.Setter; +import org.springframework.data.annotation.LastModifiedDate; +import org.springframework.data.jpa.domain.support.AuditingEntityListener; + +import javax.persistence.*; +import java.io.Serializable; +import java.util.Date; + +/** + * @author wujingtao + * @date 2022/03/14 + */ +@Getter +@Setter +@Entity +@Table(name = "tb_report_task") +@EntityListeners(AuditingEntityListener.class) +@AllArgsConstructor +public class TaskReport implements Serializable { + private static final long serialVersionUID = -5264310721953955667L; + @Id + @ApiModelProperty(value = "主键id(自动递增)") + @Column(name = "id") + @GeneratedValue(strategy = GenerationType.IDENTITY) + private Long id; + @LastModifiedDate + @Column(name = "create_time") + @ApiModelProperty(value = "创建时间") + private Date createTime; + + @ApiModelProperty(value = "任务id") + @Column(name = "task_id") + private Long taskId; + + @ApiModelProperty(value = "任务名称") + @Column(name = "task_name") + private String taskName; + @ApiModelProperty(value = "总量") + @Column(name = "total_num") + private Integer totalNum; + @ApiModelProperty(value = "使用量") + @Column(name = "usr_num") + private Integer usrNum; + @ApiModelProperty(value = "接通量") + @Column(name = "turn_on_num") + private Integer turnOnNum; + @ApiModelProperty(value = "接通率") + @Column(name = "turn_on_rate") + private Double turnOnRate; + @ApiModelProperty(value = "外呼总时长") + @Column(name = "breathe_total_duration") + private Long breatheTotalDuration; + @ApiModelProperty(value = "外呼平均时长") + @Column(name = "breathe_average_duration") + private Double breatheAverageDuration; + @ApiModelProperty(value = "标签") + @Column(name = "label") + private String label; + @ApiModelProperty(value = "所属公司") + @Column(name = "company_id") + private Long companyId; + + public TaskReport() { + + } +}