| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- package com.aijiuyi.admin.entity;
- import com.baomidou.mybatisplus.annotation.*;
- import lombok.Data;
- import java.math.BigDecimal;
- import java.time.LocalDateTime;
- /**
- * 方案实体
- * 对应数据库 plan 表
- */
- @Data
- @TableName("plan")
- public class Plan {
- /** 主键ID */
- @TableId(type = IdType.AUTO)
- private Long id;
- /** 方案编码(唯一标识,如 S001) */
- private String planCode;
- /** 方案名称(最长100字符) */
- private String name;
- /**
- * 模式类型:1=一键艾灸,2=专业模式,3=自定义模式,4=延年圣手
- */
- private Integer modeType;
- /**
- * 功效类型:驱寒/祛湿/祛风/化瘀/活血/化痰/养颜/扶阳
- */
- private String effectType;
- /** 适用症状(逗号分隔:怕冷,感冒,咳嗽,...) */
- private String symptoms;
- /**
- * 适用人群:0=不限,1=仅男,2=仅女
- */
- private Integer applicableGender;
- /** 适用年龄最小值(岁) */
- private Integer ageMin;
- /** 适用年龄最大值(岁) */
- private Integer ageMax;
- /** 方案描述(最长200字符) */
- private String description;
- /**
- * 创作人类型:1=管理员,2=普通用户,3=专家
- */
- private Integer authorType;
- /** 创作人ID(对应 app_user.id) */
- private Long authorId;
- /** 创作人名称(冗余存储,加速查询) */
- private String authorName;
- /**
- * 状态:0=草稿,1=已发布,2=已下架
- */
- private Integer status;
- /** 使用人数 */
- private Integer useCount;
- /** 平均评分 */
- private BigDecimal avgRating;
- /** 最后使用时间 */
- private LocalDateTime lastUseTime;
- /** 逻辑删除:0=未删除,1=已删除 */
- @TableLogic
- private Integer deleted;
- /** 创建时间(自动填充) */
- @TableField(fill = FieldFill.INSERT)
- private LocalDateTime createTime;
- /** 更新时间(自动填充) */
- @TableField(fill = FieldFill.INSERT_UPDATE)
- private LocalDateTime updateTime;
- }
|