123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- package thyyxxk.webserver.entity.archive;
- import java.io.Serializable;
- import java.util.List;
- import com.baomidou.mybatisplus.annotation.TableId;
- import lombok.*;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.baomidou.mybatisplus.annotation.TableName;
- import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
- import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
- @Data
- @Builder
- @AllArgsConstructor
- @NoArgsConstructor
- @TableName(value = "patient_archive")
- public class PatientArchive implements Serializable {
- public static enum Type {
- EMR(1);
- @Getter
- final Integer value;
- Type(int value) {
- this.value = value;
- }
- }
- private static final long serialVersionUID = 5110111070376944721L;
- /**
- * id
- */
- @TableId
- private String id;
- /**
- * patNo
- */
- @TableField(value = "pat_no")
- private String patNo;
- /**
- * times
- */
- @TableField(value = "times")
- private Integer times;
- /**
- * 第三方的唯一id,如果出错了,还能重新生成
- */
- @TableField(value = "document_id")
- private String documentId;
- @TableField(value = "create_id")
- private String createId;
- /**
- * 文件名字
- */
- @TableField(value = "name")
- private String name;
- /**
- * 是否文件夹
- */
- @TableField(value = "is_dir")
- private Boolean isDir;
- /**
- * parentId
- */
- @TableField(value = "parent_id")
- private String parentId;
- /**
- * 文件夹路径,如果是空的就说明生成错误
- */
- @TableField(value = "path")
- private String path;
- /**
- * 1-电子病历 2-病案首页 3-检验
- */
- @TableField(value = "type")
- private Integer type;
- /**
- * sort
- */
- @TableField(value = "sort")
- private Integer sort;
- /**
- * 一些其他信息
- */
- @TableField(value = "info")
- private String info;
- @TableField(exist = false)
- private List<PatientArchive> children;
- public static LambdaQueryWrapper<PatientArchive> lambdaQueryWrapper() {
- return new LambdaQueryWrapper<>();
- }
- public static QueryWrapper<PatientArchive> queryWrapper() {
- return new QueryWrapper<>();
- }
- }
|