PatientArchive.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. package thyyxxk.webserver.entity.archive;
  2. import java.io.Serializable;
  3. import java.util.List;
  4. import com.baomidou.mybatisplus.annotation.TableId;
  5. import lombok.*;
  6. import com.baomidou.mybatisplus.annotation.TableField;
  7. import com.baomidou.mybatisplus.annotation.TableName;
  8. import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  9. import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
  10. @Data
  11. @Builder
  12. @AllArgsConstructor
  13. @NoArgsConstructor
  14. @TableName(value = "patient_archive")
  15. public class PatientArchive implements Serializable {
  16. public static enum Type {
  17. EMR(1);
  18. @Getter
  19. final Integer value;
  20. Type(int value) {
  21. this.value = value;
  22. }
  23. }
  24. private static final long serialVersionUID = 5110111070376944721L;
  25. /**
  26. * id
  27. */
  28. @TableId
  29. private String id;
  30. /**
  31. * patNo
  32. */
  33. @TableField(value = "pat_no")
  34. private String patNo;
  35. /**
  36. * times
  37. */
  38. @TableField(value = "times")
  39. private Integer times;
  40. /**
  41. * 第三方的唯一id,如果出错了,还能重新生成
  42. */
  43. @TableField(value = "document_id")
  44. private String documentId;
  45. @TableField(value = "create_id")
  46. private String createId;
  47. /**
  48. * 文件名字
  49. */
  50. @TableField(value = "name")
  51. private String name;
  52. /**
  53. * 是否文件夹
  54. */
  55. @TableField(value = "is_dir")
  56. private Boolean isDir;
  57. /**
  58. * parentId
  59. */
  60. @TableField(value = "parent_id")
  61. private String parentId;
  62. /**
  63. * 文件夹路径,如果是空的就说明生成错误
  64. */
  65. @TableField(value = "path")
  66. private String path;
  67. /**
  68. * 1-电子病历 2-病案首页 3-检验
  69. */
  70. @TableField(value = "type")
  71. private Integer type;
  72. /**
  73. * sort
  74. */
  75. @TableField(value = "sort")
  76. private Integer sort;
  77. /**
  78. * 一些其他信息
  79. */
  80. @TableField(value = "info")
  81. private String info;
  82. @TableField(exist = false)
  83. private List<PatientArchive> children;
  84. public static LambdaQueryWrapper<PatientArchive> lambdaQueryWrapper() {
  85. return new LambdaQueryWrapper<>();
  86. }
  87. public static QueryWrapper<PatientArchive> queryWrapper() {
  88. return new QueryWrapper<>();
  89. }
  90. }