UserAcupoint.java 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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_acupoint 表
  9. * 根据用户体型数据(指宽/肩宽/身长)与穴位定位参数计算生成
  10. */
  11. @Data
  12. @TableName("user_acupoint")
  13. public class UserAcupoint {
  14. /** 主键ID */
  15. @TableId(type = IdType.AUTO)
  16. private Long id;
  17. /** 子用户ID(关联 user_profile.id) */
  18. private Long userId;
  19. /** 穴位ID(关联 acupoint.id) */
  20. private Long acupointId;
  21. /** 穴位名称(冗余存储,加速查询) */
  22. private String acupointName;
  23. /**
  24. * 侧别:center=中心,left=左侧,right=右侧
  25. * 双侧穴位(acupoint.side=4)会生成两条记录(left+right)
  26. */
  27. private String acupointSide;
  28. /** 相对大椎穴纵向偏移(寸) */
  29. private BigDecimal cunValue;
  30. /** 指寸类型:1寸/1.5寸/3寸 */
  31. private String cunType;
  32. /** 计算后的X坐标(mm,相对大椎穴中心,向右为正) */
  33. private BigDecimal coordinateX;
  34. /** 计算后的Y坐标(mm,相对大椎穴中心,向下为正) */
  35. private BigDecimal coordinateY;
  36. /** 计算后的Z坐标(mm,体表=0) */
  37. private BigDecimal coordinateZ;
  38. /** 置信度:high=高/medium=中/low=低 */
  39. private String confidence;
  40. /** 首次生成时间(自动填充) */
  41. @TableField(fill = FieldFill.INSERT)
  42. private LocalDateTime createTime;
  43. /** 最后更新时间(自动填充) */
  44. @TableField(fill = FieldFill.INSERT_UPDATE)
  45. private LocalDateTime updateTime;
  46. }