修改数据同步,添加死信数据界面
parent
fa9c02705b
commit
d156ffb85a
@ -0,0 +1,15 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.ptl.annotation;
|
||||||
|
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: Wynne.Lu
|
||||||
|
* @CreateDate: 2019/12/25 1:45 下午
|
||||||
|
* @Description:
|
||||||
|
**/
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Target({ElementType.TYPE})
|
||||||
|
@Documented
|
||||||
|
public @interface ElasticSearch {
|
||||||
|
}
|
@ -0,0 +1,15 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.ptl.annotation;
|
||||||
|
|
||||||
|
|
||||||
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: Wynne.Lu
|
||||||
|
* @CreateDate: 2019/12/25 1:45 下午
|
||||||
|
* @Description:
|
||||||
|
**/
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Target({ElementType.FIELD})
|
||||||
|
@Documented
|
||||||
|
public @interface Json4Es {
|
||||||
|
}
|
@ -0,0 +1,56 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.ptl.bean;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.hibernate.annotations.DynamicInsert;
|
||||||
|
import org.hibernate.annotations.DynamicUpdate;
|
||||||
|
|
||||||
|
import javax.persistence.*;
|
||||||
|
import java.io.Serializable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: Wynne.Lu
|
||||||
|
* @CreateDate: 2020/02/15 1:45 PM
|
||||||
|
* @Description:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name = "PTL_SYNC_DEAD_LETTER", indexes = {
|
||||||
|
@Index(name = "idx_object_code_pcn", columnList = "OBJECT_CODE"),
|
||||||
|
@Index(name = "idx_object_code_pcn", columnList = "PCN_CODE")
|
||||||
|
})
|
||||||
|
@Api("数据同步死信")
|
||||||
|
public class PtlSyncDeadLetter extends BaseBean implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1151025992437433734L;
|
||||||
|
|
||||||
|
@Column(name = "OBJECT_CODE")
|
||||||
|
@ApiParam("对象代码")
|
||||||
|
private String objectCode;
|
||||||
|
|
||||||
|
@Column(name = "SYNC_TYPE")
|
||||||
|
@ApiParam("同步类型")
|
||||||
|
private Integer syncType;
|
||||||
|
|
||||||
|
@Column(name = "PCN_CODE")
|
||||||
|
@ApiParam("pcn代码")
|
||||||
|
private String pcnCode;
|
||||||
|
|
||||||
|
@Lob
|
||||||
|
@Column(name = "EX_MSG")
|
||||||
|
@ApiParam("同步数据")
|
||||||
|
private String exMsg;
|
||||||
|
|
||||||
|
@Lob
|
||||||
|
@Column(name = "DATA")
|
||||||
|
@ApiParam("同步数据")
|
||||||
|
private String data;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.ptl.model;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
@Api("产品包装model")
|
||||||
|
public class ProductDataModel {
|
||||||
|
|
||||||
|
@ApiParam("字段代码")
|
||||||
|
private String fieldCode;
|
||||||
|
|
||||||
|
@ApiParam("字段名称")
|
||||||
|
private String fieldName;
|
||||||
|
|
||||||
|
@ApiParam("字段值")
|
||||||
|
private String fieldValue;
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.ptl.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.ptl.bean.PtlSyncDeadLetter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Wynne.Lu
|
||||||
|
* @date 2020/2/18 09:19
|
||||||
|
* @desc
|
||||||
|
*/
|
||||||
|
public interface PtlSyncDeadLetterRepository extends BaseRepository<PtlSyncDeadLetter, Long> {
|
||||||
|
}
|
Loading…
Reference in New Issue