UserProfile.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. package com.aijiuyi.admin.entity;
  2. import com.baomidou.mybatisplus.annotation.*;
  3. import lombok.Data;
  4. import java.math.BigDecimal;
  5. import java.time.LocalDateTime;
  6. /**
  7. * 用户档案实体
  8. * 对应数据库 user_profile 表
  9. * 作为后台用户列表的数据源,存储用户体型数据和基本信息
  10. */
  11. @Data
  12. @TableName("user_profile")
  13. public class UserProfile {
  14. /** 主键ID */
  15. @TableId(type = IdType.ASSIGN_ID)
  16. private Long id;
  17. /** 关联APP登录账号ID(app_user.id),NULL表示该用户不可登录APP */
  18. private Long appUserId;
  19. /** 姓名 */
  20. private String name;
  21. /** 性别:1=男,2=女 */
  22. private Integer gender;
  23. /** 年龄 */
  24. private Integer age;
  25. /** 手机号(11位,唯一) */
  26. private String phone;
  27. /** 用户分类ID(关联 app_user_category.id) */
  28. private Long userCategoryId;
  29. /** 用户分类名称(非数据库字段,查询时从 app_user_category 关联填充) */
  30. @TableField(exist = false)
  31. private String userCategoryName;
  32. /** 省级行政区划编码(GB/T 2260) */
  33. private String provinceCode;
  34. /** 市级行政区划编码 */
  35. private String cityCode;
  36. /** 区/县级行政区划编码 */
  37. private String districtCode;
  38. /** 详细地址 */
  39. private String address;
  40. /** 肩宽(cm) */
  41. private BigDecimal shoulderWidth;
  42. /** 身长(cm)(坐高) */
  43. private BigDecimal bodyHeight;
  44. /** 脊柱长度C7-S4(cm,30-60) */
  45. private BigDecimal spineLength;
  46. /** 身高(cm) */
  47. private BigDecimal height;
  48. /** 体重(kg) */
  49. private BigDecimal weight;
  50. /** 1寸指宽(cm,选填,提高穴位精度) */
  51. @TableField("finger_width_1")
  52. private BigDecimal fingerWidth1;
  53. /** 1.5寸指宽(cm,选填) */
  54. @TableField("finger_width_15")
  55. private BigDecimal fingerWidth15;
  56. /** 3寸指宽(cm,选填) */
  57. @TableField("finger_width_3")
  58. private BigDecimal fingerWidth3;
  59. /** 用户穴位表ID */
  60. private Long acupointTableId;
  61. /** 逻辑删除:0=未删除,1=已删除 */
  62. @TableLogic
  63. private Integer deleted;
  64. /** 创建时间(自动填充) */
  65. @TableField(fill = FieldFill.INSERT)
  66. private LocalDateTime createTime;
  67. /** 更新时间(自动填充) */
  68. @TableField(fill = FieldFill.INSERT_UPDATE)
  69. private LocalDateTime updateTime;
  70. /** 绑定设备编号(逗号分隔,非数据库字段,查询时JOIN填充) */
  71. @TableField(exist = false)
  72. private String deviceCodes;
  73. }