Authored by peuei

文章内容表

package com.yoho.datasync.core.base.model.yh_grass;
import com.yoho.datasync.core.base.annotation.ClassTransfer;
import com.yoho.datasync.core.base.annotation.FieldTransfer;
import com.yoho.datasync.core.base.model.yh_pcms.PublicArticleBlock;
import lombok.Data;
/***
* 种草社区表 <--> 公共库表
* @author peuei
* @date 2019/3/19 15:13
* @description 对应表 yh_grass.grass_article_block
*/
@Data
@ClassTransfer(targetClass = PublicArticleBlock.class)
public class GrassArticleBlock {
private Integer id;
@FieldTransfer
private String contentData;
@FieldTransfer(targetFieldName = "contentType")
private String templateKey;
@FieldTransfer
private Integer orderBy;
@FieldTransfer
private Integer createTime;
@FieldTransfer
private Integer updateTime;
private Integer articleId;
private Integer status;
}
... ...
package com.yoho.datasync.core.base.model.yh_pcms;
import com.yoho.datasync.core.base.model.yh_pcms.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import javax.persistence.*;
/***
* 种草社区表 <--> 公共库表
* @author peuei
* @date 2019/3/19 14:46
* @description 对应表 yh_pcms.public_article_audit
*/
@Data
@Entity
@Table(name = "public_article_audit")
@EqualsAndHashCode(callSuper = true)
public class PublicArticleAudit extends BaseEntity implements Serializable {
@Column(name = "article_id")
private Integer articleId;
@Column(name = "audit_status")
private Integer auditStatus;
@Column(name = "audit_account")
private String auditAccount;
@Column(name = "audit_time")
private Long auditTime;
}
... ...
package com.yoho.datasync.core.base.model.yh_pcms;
import com.yoho.datasync.core.base.model.yh_pcms.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import javax.persistence.*;
/***
* 种草社区表 <--> 公共库表
* @author peuei
* @date 2019/3/19 15:13
* @description 对应表 yh_pcms.public_article_block
*/
@Data
@Entity
@Table(name = "public_article_block")
@EqualsAndHashCode(callSuper = true)
public class PublicArticleBlock extends BaseEntity implements Serializable {
@Column(name = "content_data")
private String contentData;
@Column(name = "content_type")
private String contentType;
@Column(name = "order_by")
private Integer orderBy;
@Column(name = "create_time")
private Long createTime;
@Column(name = "update_time")
private Long updateTime;
@Column(name = "article_id")
private Integer articleId;
}
... ...