package com.admin.areaBase; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.pub.jdbc.BaseDAO; import com.pub.page.Page; import com.pub.page.PageRecord; import org.springframework.util.StringUtils; public class Base { private int x_cm_start; private int x_cm_stop; private int y_cm_start; private int y_cm_stop; private int track_presence; private int exclude_falling; // 默认构造函数 public Base() {} // 带参数的构造函数 public Base(int x_cm_start, int x_cm_stop, int y_cm_start, int y_cm_stop, int track_presence, int exclude_falling) { this.x_cm_start = x_cm_start; this.x_cm_stop = x_cm_stop; this.y_cm_start = y_cm_start; this.y_cm_stop = y_cm_stop; this.track_presence = track_presence; this.exclude_falling = exclude_falling; } // Getter 和 Setter 方法 public double getX_cm_start() { return x_cm_start; } public void setX_cm_start(int x_cm_start) { this.x_cm_start = x_cm_start; } public double getX_cm_stop() { return x_cm_stop; } public void setX_cm_stop(int x_cm_stop) { this.x_cm_stop = x_cm_stop; } public double getY_cm_start() { return y_cm_start; } public void setY_cm_start(int y_cm_start) { this.y_cm_start = y_cm_start; } public double getY_cm_stop() { return y_cm_stop; } public void setY_cm_stop(int y_cm_stop) { this.y_cm_stop = y_cm_stop; } public double getTrack_presence() { return track_presence; } public void setTrack_presence(int track_presence) { this.track_presence = track_presence; } public int getExclude_falling() { return exclude_falling; } public void setExclude_falling(int exclude_falling) { this.exclude_falling = exclude_falling; } // toString 方法,方便打印对象 @Override public String toString() { return "Base{" + "x_cm_start='" + x_cm_start + '\'' + ", x_cm_stop='" + x_cm_stop + '\'' + ", y_cm_start='" + y_cm_start + '\'' + ", y_cm_stop='" + y_cm_stop + '\'' + ", track_presence=" + track_presence + ", exclude_falling=" + exclude_falling + '}'; } }