init
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package cn.datax.service.data.standard.api.dto;
|
||||
|
||||
import cn.datax.common.validate.ValidationGroups;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 字典对照信息表 实体DTO
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-27
|
||||
*/
|
||||
@ApiModel(value = "字典对照信息表Model")
|
||||
@Data
|
||||
public class ContrastDictDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
@NotBlank(message = "主键ID不能为空", groups = {ValidationGroups.Update.class})
|
||||
private String id;
|
||||
@ApiModelProperty(value = "字典对照主键")
|
||||
private String contrastId;
|
||||
@ApiModelProperty(value = "字典编码")
|
||||
private String colCode;
|
||||
@ApiModelProperty(value = "字典名称")
|
||||
private String colName;
|
||||
@ApiModelProperty(value = "状态")
|
||||
@NotNull(message = "状态不能为空", groups = {ValidationGroups.Insert.class, ValidationGroups.Update.class})
|
||||
private String status;
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package cn.datax.service.data.standard.api.dto;
|
||||
|
||||
import cn.datax.common.validate.ValidationGroups;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 对照表信息表 实体DTO
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-27
|
||||
*/
|
||||
@ApiModel(value = "对照表信息表Model")
|
||||
@Data
|
||||
public class ContrastDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
@NotBlank(message = "主键ID不能为空", groups = {ValidationGroups.Update.class})
|
||||
private String id;
|
||||
@ApiModelProperty(value = "数据源主键")
|
||||
private String sourceId;
|
||||
@ApiModelProperty(value = "数据源")
|
||||
private String sourceName;
|
||||
@ApiModelProperty(value = "数据表主键")
|
||||
private String tableId;
|
||||
@ApiModelProperty(value = "数据表")
|
||||
private String tableName;
|
||||
@ApiModelProperty(value = "数据表名称")
|
||||
private String tableComment;
|
||||
@ApiModelProperty(value = "对照字段主键")
|
||||
private String columnId;
|
||||
@ApiModelProperty(value = "对照字段")
|
||||
private String columnName;
|
||||
@ApiModelProperty(value = "对照字段名称")
|
||||
private String columnComment;
|
||||
@ApiModelProperty(value = "标准类别主键")
|
||||
private String gbTypeId;
|
||||
@ApiModelProperty(value = "绑定标准字段")
|
||||
private String bindGbColumn;
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package cn.datax.service.data.standard.api.dto;
|
||||
|
||||
import cn.datax.common.validate.ValidationGroups;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* <p>
|
||||
* 数据标准字典表 实体DTO
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-26
|
||||
*/
|
||||
@ApiModel(value = "数据标准字典表Model")
|
||||
@Data
|
||||
public class DictDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
@NotBlank(message = "主键ID不能为空", groups = {ValidationGroups.Update.class})
|
||||
private String id;
|
||||
@ApiModelProperty(value = "所属类别")
|
||||
@NotBlank(message = "所属类别不能为空", groups = {ValidationGroups.Insert.class, ValidationGroups.Update.class})
|
||||
private String typeId;
|
||||
@ApiModelProperty(value = "标准编码")
|
||||
@NotBlank(message = "标准编码不能为空", groups = {ValidationGroups.Insert.class, ValidationGroups.Update.class})
|
||||
private String gbCode;
|
||||
@ApiModelProperty(value = "标准名称")
|
||||
@NotBlank(message = "标准名称不能为空", groups = {ValidationGroups.Insert.class, ValidationGroups.Update.class})
|
||||
private String gbName;
|
||||
@ApiModelProperty(value = "状态")
|
||||
@NotNull(message = "状态不能为空", groups = {ValidationGroups.Insert.class, ValidationGroups.Update.class})
|
||||
private String status;
|
||||
@ApiModelProperty(value = "备注")
|
||||
private String remark;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package cn.datax.service.data.standard.api.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class Endpoint implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@NotBlank(message = "源端点不能为空")
|
||||
private String sourceId;
|
||||
|
||||
@NotBlank(message = "目标端点不能为空")
|
||||
private String targetId;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package cn.datax.service.data.standard.api.dto;
|
||||
|
||||
import cn.datax.common.validate.ValidationGroups;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.Valid;
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ManualMappingDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@Valid
|
||||
@NotEmpty(message = "对照关系不能为空")
|
||||
@Size(min = 1, message="对照关系长度不能少于{min}位")
|
||||
private List<Endpoint> endpoints;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package cn.datax.service.data.standard.api.dto;
|
||||
|
||||
import cn.datax.common.validate.ValidationGroups;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.io.Serializable;
|
||||
/**
|
||||
* <p>
|
||||
* 数据标准类别表 实体DTO
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-26
|
||||
*/
|
||||
@ApiModel(value = "数据标准类别表Model")
|
||||
@Data
|
||||
public class TypeDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
@ApiModelProperty(value = "主键ID")
|
||||
@NotBlank(message = "主键ID不能为空", groups = {ValidationGroups.Update.class})
|
||||
private String id;
|
||||
@ApiModelProperty(value = "标准类别编码")
|
||||
@NotBlank(message = "标准类别编码不能为空", groups = {ValidationGroups.Insert.class, ValidationGroups.Update.class})
|
||||
private String gbTypeCode;
|
||||
@ApiModelProperty(value = "标准类别名称")
|
||||
@NotBlank(message = "标准类别名称不能为空", groups = {ValidationGroups.Insert.class, ValidationGroups.Update.class})
|
||||
private String gbTypeName;
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
package cn.datax.service.data.standard.api.entity;
|
||||
|
||||
import cn.datax.common.base.DataScopeBaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 字典对照信息表
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-27
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@TableName(value = "standard_contrast_dict", autoResultMap = true)
|
||||
public class ContrastDictEntity extends DataScopeBaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 字典对照主键
|
||||
*/
|
||||
private String contrastId;
|
||||
|
||||
/**
|
||||
* 数据源
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String sourceName;
|
||||
|
||||
/**
|
||||
* 数据表
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 对照字段
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String columnName;
|
||||
|
||||
/**
|
||||
* 标准类别编码
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String gbTypeCode;
|
||||
|
||||
/**
|
||||
* 标准类别名称
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String gbTypeName;
|
||||
|
||||
/**
|
||||
* 字典编码
|
||||
*/
|
||||
private String colCode;
|
||||
|
||||
/**
|
||||
* 字典名称
|
||||
*/
|
||||
private String colName;
|
||||
|
||||
/**
|
||||
* 对照的标准字典
|
||||
*/
|
||||
private String contrastGbId;
|
||||
|
||||
/**
|
||||
* 对照的标准编码
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String contrastGbCode;
|
||||
|
||||
/**
|
||||
* 对照的标准名称
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String contrastGbName;
|
||||
}
|
||||
@@ -0,0 +1,99 @@
|
||||
package cn.datax.service.data.standard.api.entity;
|
||||
|
||||
import cn.datax.common.base.DataScopeBaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 对照表信息表
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-27
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@TableName(value = "standard_contrast", autoResultMap = true)
|
||||
public class ContrastEntity extends DataScopeBaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 数据源主键
|
||||
*/
|
||||
private String sourceId;
|
||||
|
||||
/**
|
||||
* 数据源
|
||||
*/
|
||||
private String sourceName;
|
||||
|
||||
/**
|
||||
* 数据表主键
|
||||
*/
|
||||
private String tableId;
|
||||
|
||||
/**
|
||||
* 数据表
|
||||
*/
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 数据表名称
|
||||
*/
|
||||
private String tableComment;
|
||||
|
||||
/**
|
||||
* 对照字段主键
|
||||
*/
|
||||
private String columnId;
|
||||
|
||||
/**
|
||||
* 对照字段
|
||||
*/
|
||||
private String columnName;
|
||||
|
||||
/**
|
||||
* 对照字段名称
|
||||
*/
|
||||
private String columnComment;
|
||||
|
||||
/**
|
||||
* 标准类别主键
|
||||
*/
|
||||
private String gbTypeId;
|
||||
|
||||
/**
|
||||
* 标准类别编码
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String gbTypeCode;
|
||||
|
||||
/**
|
||||
* 标准类别名称
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String gbTypeName;
|
||||
|
||||
/**
|
||||
* 绑定标准字段
|
||||
*/
|
||||
private String bindGbColumn;
|
||||
|
||||
/**
|
||||
* 对照数量
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private Integer mappingCount;
|
||||
|
||||
/**
|
||||
* 未对照数量
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private Integer unMappingCount;
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package cn.datax.service.data.standard.api.entity;
|
||||
|
||||
import cn.datax.common.base.DataScopeBaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据标准字典表
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-26
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@TableName("standard_dict")
|
||||
public class DictEntity extends DataScopeBaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 所属类别
|
||||
*/
|
||||
private String typeId;
|
||||
|
||||
/**
|
||||
* 标准类别编码
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String gbTypeCode;
|
||||
|
||||
/**
|
||||
* 标准类别名称
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String gbTypeName;
|
||||
|
||||
/**
|
||||
* 标准编码
|
||||
*/
|
||||
private String gbCode;
|
||||
|
||||
/**
|
||||
* 标准名称
|
||||
*/
|
||||
private String gbName;
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package cn.datax.service.data.standard.api.entity;
|
||||
|
||||
import cn.datax.common.base.DataScopeBaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import cn.datax.common.base.BaseEntity;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据标准类别表
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-26
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Accessors(chain = true)
|
||||
@TableName("standard_type")
|
||||
public class TypeEntity extends DataScopeBaseEntity {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
/**
|
||||
* 标准类别编码
|
||||
*/
|
||||
private String gbTypeCode;
|
||||
|
||||
/**
|
||||
* 标准类别名称
|
||||
*/
|
||||
private String gbTypeName;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package cn.datax.service.data.standard.api.feign;
|
||||
|
||||
import cn.datax.service.data.standard.api.entity.ContrastEntity;
|
||||
import cn.datax.service.data.standard.api.feign.factory.StandardServiceFeignFallbackFactory;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
|
||||
@FeignClient(contextId = "standardServiceFeign", value = "service-data-standard", fallbackFactory = StandardServiceFeignFallbackFactory.class)
|
||||
public interface StandardServiceFeign {
|
||||
|
||||
@GetMapping("/contrasts/source/{sourceId}")
|
||||
ContrastEntity getBySourceId(@PathVariable String sourceId);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package cn.datax.service.data.standard.api.feign.factory;
|
||||
|
||||
import cn.datax.service.data.standard.api.feign.StandardServiceFeign;
|
||||
import cn.datax.service.data.standard.api.feign.fallback.StandardServiceFeignFallbackImpl;
|
||||
import feign.hystrix.FallbackFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class StandardServiceFeignFallbackFactory implements FallbackFactory<StandardServiceFeign> {
|
||||
|
||||
@Override
|
||||
public StandardServiceFeign create(Throwable throwable) {
|
||||
StandardServiceFeignFallbackImpl feignFallback = new StandardServiceFeignFallbackImpl();
|
||||
feignFallback.setCause(throwable);
|
||||
return feignFallback;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package cn.datax.service.data.standard.api.feign.fallback;
|
||||
|
||||
|
||||
import cn.datax.common.core.R;
|
||||
import cn.datax.service.data.standard.api.entity.ContrastEntity;
|
||||
import cn.datax.service.data.standard.api.feign.StandardServiceFeign;
|
||||
import lombok.Setter;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Slf4j
|
||||
@Component
|
||||
public class StandardServiceFeignFallbackImpl implements StandardServiceFeign {
|
||||
|
||||
@Setter
|
||||
private Throwable cause;
|
||||
|
||||
@Override
|
||||
public ContrastEntity getBySourceId(String sourceId) {
|
||||
log.error("feign 调用对照表查询出错", cause);
|
||||
throw new RuntimeException("feign 调用对照表查询出错", cause);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package cn.datax.service.data.standard.api.query;
|
||||
|
||||
import cn.datax.common.base.BaseQueryParams;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 字典对照信息表 查询实体
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-27
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class ContrastDictQuery extends BaseQueryParams {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String contrastId;
|
||||
private String colCode;
|
||||
private String colName;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package cn.datax.service.data.standard.api.query;
|
||||
|
||||
import cn.datax.common.base.BaseQueryParams;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 对照表信息表 查询实体
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-27
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class ContrastQuery extends BaseQueryParams {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String sourceName;
|
||||
private String tableName;
|
||||
private String columnName;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package cn.datax.service.data.standard.api.query;
|
||||
|
||||
import cn.datax.common.base.BaseQueryParams;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据标准字典表 查询实体
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-26
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class DictQuery extends BaseQueryParams {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String typeId;
|
||||
private String gbCode;
|
||||
private String gbName;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package cn.datax.service.data.standard.api.query;
|
||||
|
||||
import cn.datax.common.base.BaseQueryParams;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据标准类别表 查询实体
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-26
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class TypeQuery extends BaseQueryParams {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String gbTypeCode;
|
||||
private String gbTypeName;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package cn.datax.service.data.standard.api.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 字典对照信息表 实体VO
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-27
|
||||
*/
|
||||
@Data
|
||||
public class ContrastDictVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String id;
|
||||
private String status;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime createTime;
|
||||
private String remark;
|
||||
private String contrastId;
|
||||
private String colCode;
|
||||
private String colName;
|
||||
private String contrastGbId;
|
||||
private String contrastGbCode;
|
||||
private String contrastGbName;
|
||||
private String sourceName;
|
||||
private String tableName;
|
||||
private String columnName;
|
||||
private String gbTypeCode;
|
||||
private String gbTypeName;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package cn.datax.service.data.standard.api.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 对照表信息表 实体VO
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-27
|
||||
*/
|
||||
@Data
|
||||
public class ContrastStatisticVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String id;
|
||||
private String status;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime createTime;
|
||||
private String remark;
|
||||
private String sourceId;
|
||||
private String sourceName;
|
||||
private String tableId;
|
||||
private String tableName;
|
||||
private String tableComment;
|
||||
private String columnId;
|
||||
private String columnName;
|
||||
private String columnComment;
|
||||
private String gbTypeId;
|
||||
private String gbTypeCode;
|
||||
private String gbTypeName;
|
||||
private String bindGbColumn;
|
||||
|
||||
private Integer mappingCount;
|
||||
private Integer unMappingCount;
|
||||
/**
|
||||
* 对照比例 20%
|
||||
*/
|
||||
private String mappingPercent;
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package cn.datax.service.data.standard.api.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class ContrastTreeVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String id;
|
||||
private String label;
|
||||
private String name;
|
||||
/**
|
||||
* 数据
|
||||
*/
|
||||
private Object data;
|
||||
private List<ContrastTreeVo> children;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package cn.datax.service.data.standard.api.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 对照表信息表 实体VO
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-27
|
||||
*/
|
||||
@Data
|
||||
public class ContrastVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String id;
|
||||
private String status;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime createTime;
|
||||
private String remark;
|
||||
private String sourceId;
|
||||
private String sourceName;
|
||||
private String tableId;
|
||||
private String tableName;
|
||||
private String tableComment;
|
||||
private String columnId;
|
||||
private String columnName;
|
||||
private String columnComment;
|
||||
private String gbTypeId;
|
||||
private String gbTypeCode;
|
||||
private String gbTypeName;
|
||||
private String bindGbColumn;
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package cn.datax.service.data.standard.api.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据标准字典表 实体VO
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-26
|
||||
*/
|
||||
@Data
|
||||
public class DictVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String id;
|
||||
private String status;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime createTime;
|
||||
private String remark;
|
||||
private String typeId;
|
||||
private String gbTypeCode;
|
||||
private String gbTypeName;
|
||||
private String gbCode;
|
||||
private String gbName;
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package cn.datax.service.data.standard.api.vo;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 数据标准类别表 实体VO
|
||||
* </p>
|
||||
*
|
||||
* @author AllDataDC
|
||||
* @date 2022-11-26
|
||||
*/
|
||||
@Data
|
||||
public class TypeVo implements Serializable {
|
||||
|
||||
private static final long serialVersionUID=1L;
|
||||
|
||||
private String id;
|
||||
private String status;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||
private LocalDateTime createTime;
|
||||
private String remark;
|
||||
private String gbTypeCode;
|
||||
private String gbTypeName;
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
cn.datax.service.data.standard.api.feign.factory.StandardServiceFeignFallbackFactory,\
|
||||
cn.datax.service.data.standard.api.feign.fallback.StandardServiceFeignFallbackImpl
|
||||
Reference in New Issue
Block a user