fxkh-txl-service/src/main/java/com/whdc/model/autocall/AutoCallPerson.java

97 lines
3.9 KiB
Java
Raw Normal View History

2025-08-08 14:02:39 +08:00
package com.whdc.model.autocall;
2025-07-14 11:23:11 +08:00
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
2025-08-06 17:21:07 +08:00
import com.baomidou.mybatisplus.annotation.TableName;
2025-07-14 11:23:11 +08:00
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
/**
* @author lyf
* @since 2025-07-08
*/
@Data
2025-08-06 17:21:07 +08:00
@TableName("FXKH_TXL.AUTO_CALL_PERSON")
2025-07-14 11:23:11 +08:00
public class AutoCallPerson {
public static final int STATUS_DEFAULT = 0;
public static final int STATUS_UPLOADED = 1;
public static final int STATUS_CALLED = 2;
public static final int STATUS_PUT = 3;
public static final int STATUS_CANCELLED = 4;
2025-08-06 17:21:07 +08:00
public static final int STATUS_MANUAL_CLOSE = 6;
2025-07-14 11:23:11 +08:00
public static final int ERRCODE_ENCODE = 1;
public static final int ERRCODE_UPLOAD_FAIL = 2;
2025-08-08 13:51:52 +08:00
public static final String TAG_DONE = "已知晓";
2025-07-14 11:23:11 +08:00
@TableId(value = "ID", type = IdType.AUTO)
private Integer id;
@TableField(value = "task_id")
private Integer taskId;
@TableField(value = "status")
private Integer status; //0:未上传 default 0
@TableField(value = "level")
private Integer level;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField(value = "_create_tm")
private Date createTm;
@TableField(value = "error_code")
private Integer errorCode; //default 0
2025-08-06 17:21:07 +08:00
@TableField(value = "uploaded_times")
private Integer uploadedTimes; //default 0
@TableField(value = "sms_content")
private String smsContent; //短信内容
@TableField(value = "manual_close")
private Integer manualClose; //default 0
@TableField(value = "position")
private String position;
2025-08-07 21:29:50 +08:00
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField(value = "manual_close_tm")
private Date manualCloseTm;
2025-07-14 11:23:11 +08:00
@TableField(value = "__request_id")
private String uploadRequestId; //任务名同时作为参数的taskName用custId
@TableField(value = "__cust_id")
private String uploadCustId; //联系人id用warningResponderId加时间戳毫秒
@TableField(value = "__cust_name")
private String uploadCustName; //联系人
@TableField(value = "__content")
2025-08-06 17:21:07 +08:00
private String uploadContent; //外呼内容
2025-07-14 11:23:11 +08:00
@TableField(value = "__number")
private String uploadNumber;
@TableField(value = "__upload_resp_msg")
private String uploadRespMsg; //上传结果
@TableField(value = "__remark")
private String detailRemark;//接通,空号,停机,关机,未接,拒接,占线,呼叫失败,null(空代表未呼叫)
@TableField(value = "__talk_times")
private Integer detailTalkTimes;//通话时长,单位秒
@TableField(value = "__sip_term_cause")
private String detailSipTermCause; //例如”对方挂机“
2025-08-06 17:21:07 +08:00
@TableField(value = "__tag")
private String tag; //话术识别:未识别,已知晓
2025-07-14 11:23:11 +08:00
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField(value = "__startring_at")
private Date detailStartringAt; //-3
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField(value = "__connected_at")
private Date detailConnectedAt; //-3
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField(value = "__started_at")
private Date detailStartedAt;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField(value = "__endring_at")
private Date detailEndringAt; //-3
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField(value = "__disconnected_at")
private Date detailDisconnectedAt; //-3
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField(value = "__stopped_at")
private Date detailStopedAt;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@TableField(value = "__last_modify")
private Date detailLastModify;
}