Base.java 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. package com.admin.areaBase;
  2. import org.springframework.beans.factory.annotation.Autowired;
  3. import org.springframework.stereotype.Service;
  4. import com.pub.jdbc.BaseDAO;
  5. import com.pub.page.Page;
  6. import com.pub.page.PageRecord;
  7. import org.springframework.util.StringUtils;
  8. public class Base {
  9. private int x_cm_start;
  10. private int x_cm_stop;
  11. private int y_cm_start;
  12. private int y_cm_stop;
  13. private int track_presence;
  14. private int exclude_falling;
  15. // 默认构造函数
  16. public Base() {}
  17. // 带参数的构造函数
  18. public Base(int x_cm_start, int x_cm_stop, int y_cm_start, int y_cm_stop,
  19. int track_presence, int exclude_falling) {
  20. this.x_cm_start = x_cm_start;
  21. this.x_cm_stop = x_cm_stop;
  22. this.y_cm_start = y_cm_start;
  23. this.y_cm_stop = y_cm_stop;
  24. this.track_presence = track_presence;
  25. this.exclude_falling = exclude_falling;
  26. }
  27. // Getter 和 Setter 方法
  28. public double getX_cm_start() {
  29. return x_cm_start;
  30. }
  31. public void setX_cm_start(int x_cm_start) {
  32. this.x_cm_start = x_cm_start;
  33. }
  34. public double getX_cm_stop() {
  35. return x_cm_stop;
  36. }
  37. public void setX_cm_stop(int x_cm_stop) {
  38. this.x_cm_stop = x_cm_stop;
  39. }
  40. public double getY_cm_start() {
  41. return y_cm_start;
  42. }
  43. public void setY_cm_start(int y_cm_start) {
  44. this.y_cm_start = y_cm_start;
  45. }
  46. public double getY_cm_stop() {
  47. return y_cm_stop;
  48. }
  49. public void setY_cm_stop(int y_cm_stop) {
  50. this.y_cm_stop = y_cm_stop;
  51. }
  52. public double getTrack_presence() {
  53. return track_presence;
  54. }
  55. public void setTrack_presence(int track_presence) {
  56. this.track_presence = track_presence;
  57. }
  58. public int getExclude_falling() {
  59. return exclude_falling;
  60. }
  61. public void setExclude_falling(int exclude_falling) {
  62. this.exclude_falling = exclude_falling;
  63. }
  64. // toString 方法,方便打印对象
  65. @Override
  66. public String toString() {
  67. return "Base{" +
  68. "x_cm_start='" + x_cm_start + '\'' +
  69. ", x_cm_stop='" + x_cm_stop + '\'' +
  70. ", y_cm_start='" + y_cm_start + '\'' +
  71. ", y_cm_stop='" + y_cm_stop + '\'' +
  72. ", track_presence=" + track_presence +
  73. ", exclude_falling=" + exclude_falling +
  74. '}';
  75. }
  76. }