Showing
3 changed files
with
117 additions
and
0 deletions
1 | +package com.yoho.datasync.core.base.model.yh_grass; | ||
2 | + | ||
3 | +import com.yoho.datasync.core.base.annotation.ClassTransfer; | ||
4 | +import com.yoho.datasync.core.base.annotation.FieldTransfer; | ||
5 | +import com.yoho.datasync.core.base.model.yh_pcms.PublicArticleBlock; | ||
6 | +import lombok.Data; | ||
7 | + | ||
8 | +/*** | ||
9 | + * 种草社区表 <--> 公共库表 | ||
10 | + * @author peuei | ||
11 | + * @date 2019/3/19 15:13 | ||
12 | + * @description 对应表 yh_grass.grass_article_block | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@ClassTransfer(targetClass = PublicArticleBlock.class) | ||
16 | +public class GrassArticleBlock { | ||
17 | + | ||
18 | + private Integer id; | ||
19 | + | ||
20 | + @FieldTransfer | ||
21 | + private String contentData; | ||
22 | + | ||
23 | + @FieldTransfer(targetFieldName = "contentType") | ||
24 | + private String templateKey; | ||
25 | + | ||
26 | + @FieldTransfer | ||
27 | + private Integer orderBy; | ||
28 | + | ||
29 | + @FieldTransfer | ||
30 | + private Integer createTime; | ||
31 | + | ||
32 | + @FieldTransfer | ||
33 | + private Integer updateTime; | ||
34 | + | ||
35 | + private Integer articleId; | ||
36 | + private Integer status; | ||
37 | + | ||
38 | + | ||
39 | +} |
1 | +package com.yoho.datasync.core.base.model.yh_pcms; | ||
2 | + | ||
3 | +import com.yoho.datasync.core.base.model.yh_pcms.base.BaseEntity; | ||
4 | +import lombok.Data; | ||
5 | + | ||
6 | +import lombok.EqualsAndHashCode; | ||
7 | + | ||
8 | +import java.io.Serializable; | ||
9 | + | ||
10 | +import javax.persistence.*; | ||
11 | + | ||
12 | +/*** | ||
13 | + * 种草社区表 <--> 公共库表 | ||
14 | + * @author peuei | ||
15 | + * @date 2019/3/19 14:46 | ||
16 | + * @description 对应表 yh_pcms.public_article_audit | ||
17 | + */ | ||
18 | +@Data | ||
19 | +@Entity | ||
20 | +@Table(name = "public_article_audit") | ||
21 | +@EqualsAndHashCode(callSuper = true) | ||
22 | +public class PublicArticleAudit extends BaseEntity implements Serializable { | ||
23 | + | ||
24 | + @Column(name = "article_id") | ||
25 | + private Integer articleId; | ||
26 | + | ||
27 | + @Column(name = "audit_status") | ||
28 | + private Integer auditStatus; | ||
29 | + | ||
30 | + @Column(name = "audit_account") | ||
31 | + private String auditAccount; | ||
32 | + | ||
33 | + @Column(name = "audit_time") | ||
34 | + private Long auditTime; | ||
35 | + | ||
36 | +} |
1 | +package com.yoho.datasync.core.base.model.yh_pcms; | ||
2 | + | ||
3 | +import com.yoho.datasync.core.base.model.yh_pcms.base.BaseEntity; | ||
4 | +import lombok.Data; | ||
5 | + | ||
6 | +import lombok.EqualsAndHashCode; | ||
7 | + | ||
8 | +import java.io.Serializable; | ||
9 | + | ||
10 | +import javax.persistence.*; | ||
11 | + | ||
12 | +/*** | ||
13 | + * 种草社区表 <--> 公共库表 | ||
14 | + * @author peuei | ||
15 | + * @date 2019/3/19 15:13 | ||
16 | + * @description 对应表 yh_pcms.public_article_block | ||
17 | + */ | ||
18 | +@Data | ||
19 | +@Entity | ||
20 | +@Table(name = "public_article_block") | ||
21 | +@EqualsAndHashCode(callSuper = true) | ||
22 | +public class PublicArticleBlock extends BaseEntity implements Serializable { | ||
23 | + | ||
24 | + @Column(name = "content_data") | ||
25 | + private String contentData; | ||
26 | + | ||
27 | + @Column(name = "content_type") | ||
28 | + private String contentType; | ||
29 | + | ||
30 | + @Column(name = "order_by") | ||
31 | + private Integer orderBy; | ||
32 | + | ||
33 | + @Column(name = "create_time") | ||
34 | + private Long createTime; | ||
35 | + | ||
36 | + @Column(name = "update_time") | ||
37 | + private Long updateTime; | ||
38 | + | ||
39 | + @Column(name = "article_id") | ||
40 | + private Integer articleId; | ||
41 | + | ||
42 | +} |
-
Please register or login to post a comment