package thyyxxk.webserver.entity.dictionary;

import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class SearchDataParam {
    private String patNo;
    private Integer times;
    @NotBlank(message = "查询方式不能为空")
    private String method;
    @NotBlank(message = "查询目标不能为空")
    private String target;
    @NotBlank(message = "查询内容不能为空")
    private String content;
    // 中医诊断 B=病 Z=证
    private String zyType;
    private String medType;
    // 人员类别：1-职工，2-居民
    private Integer perstype;
    private Integer page;
    private boolean accurateSearch = false;

    public String getMedType() {
        return null == medType ? "" : medType;
    }
}
