package thyyxxk.webserver.entity.mangedoctorinfo;

import lombok.Data;
import thyyxxk.webserver.utils.StringUtil;

@Data
public class QueryParam {
    private String deptCode;
    private String doctorName;
    private Integer currentPage;
    private Integer pageSize;

    public String getDeptCode() {
        return StringUtil.isBlank(deptCode) ? "%%" : (deptCode).trim() + "%";
    }

    public String getDoctorName() {
        return StringUtil.isBlank(doctorName) ? "%%" : (doctorName).trim() + "%";
    }
}
