尚硅谷大数据技术之电信客服
2) 新建类: Contact
package com.atguigu.bean;
public class Contact { private Integer id; private String telephone; private String name;
public Contact() { super(); }
public Contact(int id, String telephone, String name) { super(); this.id = id; this.telephone = telephone; this.name = name; }
public Integer getId() { return id; }
public void setId(Integer id) { this.id = id; }
public String getTelephone() { return telephone; }
public void setTelephone(String telephone) { this.telephone = telephone; }
public String getName() { return name; }
public void setName(String name) { this.name = name; }
@Override public String toString() { return "Contact{" + "id=" + id + ", telephone='" + telephone + '\'' + ", name='" + name + '\'' + '}'; } } |
3) 新建类:QueryInfo
package com.atguigu.entries;
public class QueryInfo { private String telephone; private String year; private String month; private String day;
public QueryInfo() { super(); }
public QueryInfo(String telephone, String year, String month, String day) { super(); this.telephone = telephone; this.year = year; this.month = month; this.day = day; }
public String getTelephone() { return telephone; }
public void setTelephone(String telephone) { this.telephone = telephone; }
public String getYear() { return year; }
public void setYear(String year) { this.year = year; }
public String getMonth() { return month; }
public void setMonth(String month) { this.month = month; }
public String getDay() { return day; }
public void setDay(String day) { this.day = day; } } |