SyncResult.java 955 字节
package org.yrhl.syncdata.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/***
 * 同步结果表
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("sync_result")
public class SyncResult {

	@JsonSerialize(using = ToStringSerializer.class)
	@TableId(value = "id", type = IdType.ID_WORKER)
	private Long id;

	// 同步表名
	private String TableName;

	//业务id
	private Long InfoId;

	//数据源表创建时间
	private Date DateCreateTime;

	//同步状态 0:待同步 1:同步成功 -1:同步失败
	private Integer Status;

	//创建时间
	private Date CreateDateTime;

	//更新时间
	private Date UpdateTime;
}