Linjiajia
2023-10-07 31b7700b976a46901f67c5d7a00281ca4745fc9f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.application.zhangshi_app_android.bean;
 
import android.text.TextUtils;
 
import java.util.HashMap;
import java.util.Map;
 
/**
 * @author Ljj
 * @date 2023.04.15. 21:30
 * @desc
 */
public class LittleDoctorRequestBean extends PageRequestBean{
    private String type;//类型
    private String symptom;//症状
    private String prescription;//处方
    private String suitable;//适用人群
 
    public LittleDoctorRequestBean() {
    }
 
    @Override
    public Map<String, Object> toMap() {
        Map<String, Object> map = super.toMap();
        map.put("type",type==null?"":type);
        map.put("symptom",symptom==null?"":symptom);
        if (!TextUtils.isEmpty(prescription)){
            map.put("prescription",prescription==null?"":prescription);
        }
        map.put("suitable",suitable==null?"":suitable);
        return map;
    }
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public String getSymptom() {
        return symptom;
    }
 
    public void setSymptom(String symptom) {
        this.symptom = symptom;
    }
 
    public String getPrescription() {
        return prescription;
    }
 
    public void setPrescription(String prescription) {
        this.prescription = prescription;
    }
 
    public String getSuitable() {
        return suitable;
    }
 
    public void setSuitable(String suitable) {
        this.suitable = suitable;
    }
}