Linjiajia
2023-10-07 31b7700b976a46901f67c5d7a00281ca4745fc9f
app/src/main/java/com/application/zhangshi_app_android/bean/TourismExperienceRequestBean.java
@@ -1,25 +1,26 @@
package com.application.zhangshi_app_android.bean;
import java.util.HashMap;
import java.util.Map;
/**
 * @author Ljj
 * @date 2023.06.11. 16:50
 * @desc
 * @desc 旅游经历请求参数
 */
public class TourismExperienceRequestBean extends PageRequestBean{
public class TourismExperienceRequestBean{
    //费用id
    private String fid;
    private String cid;
    //开始时间
    private String happenStartTime;
    //结束时间
    private String happenEndTime;
    //标题
    private String title;
    //地点
    //行程地点
    private String address;
    //人物
    private String people;
    //景点
    private String scenic;
    //酒店
    private String hotel;
    public String getHappenStartTime() {
        return happenStartTime;
@@ -37,14 +38,6 @@
        this.happenEndTime = happenEndTime;
    }
    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getAddress() {
        return address;
    }
@@ -53,31 +46,49 @@
        this.address = address;
    }
    public String getPeople() {
        return people;
    public String getScenic() {
        return scenic;
    }
    public void setPeople(String people) {
        this.people = people;
    public void setScenic(String scenic) {
        this.scenic = scenic;
    }
    public String getFid() {
        return fid;
    public String getHotel() {
        return hotel;
    }
    public void setFid(String fid) {
        this.fid = fid;
    public void setHotel(String hotel) {
        this.hotel = hotel;
    }
    @Override
    public String getCid() {
        return cid;
    }
    public void setCid(String cid) {
        this.cid = cid;
    }
    public Map<String, Object> toMap() {
        Map<String, Object> map = super.toMap();
        map.put("fid",fid == null ? "" : fid);
        map.put("happenStartTime",happenStartTime == null ? "" : happenStartTime);
        map.put("happenEndTime",happenEndTime == null ? "" : happenEndTime);
        map.put("title",title == null ? "" : title);
        map.put("address",address == null ? "" : address);
        map.put("people",people == null ? "" : people);
        Map<String, Object> map = new HashMap<>();
        map.put("cid", cid == null ? "" : cid);
        if (happenStartTime != null) {
            map.put("happenStartTime", happenStartTime);
        }
        if (happenEndTime != null) {
            map.put("happenEndTime", happenEndTime);
        }
        if (address != null) {
            map.put("address", address);
        }
        if (scenic != null) {
            map.put("scenic", scenic);
        }
        if (hotel != null) {
            map.put("hotel", hotel);
        }
        return map;
    }
}