hejianhao
2026-08-20 2f5f94f57693c8e056ee89c505bb5d784ecddc1d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
package com.tcm.training.admin.live.entity;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;
 
@TableName(value = "tcm_health_course", autoResultMap = true)
@Getter
@Setter
@NoArgsConstructor
public class HealthCourse {
 
    @TableId(type = IdType.AUTO)
    private Long id;
 
    private String title;
 
    @TableField("level_category_id")
    private Long levelCategoryId;
 
    @TableField("difficulty_category_id")
    private Long difficultyCategoryId;
 
    @TableField("expert_id")
    private Long expertId;
 
    @TableField("sale_price")
    private BigDecimal salePrice;
 
    private String summary;
 
    @TableField("target_users")
    private String targetUsers;
 
    @TableField("cover_img")
    private String coverImg;
 
    @TableField(value = "banner_imgs", typeHandler = JacksonTypeHandler.class)
    private List<String> bannerImgs;
 
    private String content;
 
    @TableField("base_sales_count")
    private Integer baseSalesCount;
 
    @TableField("real_sales_count")
    private Integer realSalesCount;
 
    @TableField("learn_user_count")
    private Integer learnUserCount;
 
    @TableField("favorite_count")
    private Integer favoriteCount;
 
    @TableField("total_duration_seconds")
    private Integer totalDurationSeconds;
 
    @TableField("video_count")
    private Integer videoCount;
 
    private Integer status;
 
    @TableField("is_home_recommend")
    private Integer isHomeRecommend;
 
    private Integer sort;
 
    @TableLogic
    private Integer deleted;
 
    @TableField(value = "created_by", fill = FieldFill.INSERT)
    private String createdBy;
 
    @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;
 
    @TableField("created_at")
    private LocalDateTime createdAt;
 
    @TableField("updated_at")
    private LocalDateTime updatedAt;
}