WeeklyScheduleDayDto.java 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. /**
  2. *
  3. */
  4. package com.xcgl.weeklyschedule.entity;
  5. import java.util.Date;
  6. import org.jeecgframework.core.constant.Globals;
  7. /**
  8. * @author xzx
  9. *
  10. * 2019年1月5日
  11. *
  12. */
  13. public class WeeklyScheduleDayDto implements Comparable<WeeklyScheduleDayDto> {
  14. private String id;
  15. private Date date;
  16. private String weekDay;
  17. private String whatAmZjl;
  18. private String whatAm;
  19. private String whatPmZjl;
  20. private String whatPm;
  21. private String whoIdsAm;
  22. private String whoNamesAm;
  23. private String whereAm;
  24. private String remarkAm;
  25. private String whoIdsPm;
  26. private String whoNamesPm;
  27. private String wherePm;
  28. private String remarkPm;
  29. private String userid;
  30. private int showIndex;
  31. private String result;
  32. public static int INDEX_AM_ZJB = 0;
  33. public static int INDEX_AM_PERSON = 1;
  34. public static int INDEX_PM_ZJB = 2;
  35. public static int INDEX_PM_PERSON = 3;
  36. public String getId() {
  37. return id;
  38. }
  39. public void setId(String id) {
  40. this.id = id;
  41. }
  42. public String getResult() {
  43. return result;
  44. }
  45. public void setResult(String result) {
  46. this.result = result;
  47. }
  48. public String getUserid() {
  49. return userid;
  50. }
  51. public void setUserid(String userid) {
  52. this.userid = userid;
  53. }
  54. public String getWhoIdsAm() {
  55. return whoIdsAm;
  56. }
  57. public void setWhoIdsAm(String whoIdsAm) {
  58. this.whoIdsAm = whoIdsAm;
  59. }
  60. public String getWhoNamesAm() {
  61. return whoNamesAm;
  62. }
  63. public void setWhoNamesAm(String whoNamesAm) {
  64. this.whoNamesAm = whoNamesAm;
  65. }
  66. public String getWhereAm() {
  67. return whereAm;
  68. }
  69. public void setWhereAm(String whereAm) {
  70. this.whereAm = whereAm;
  71. }
  72. public String getRemarkAm() {
  73. return remarkAm;
  74. }
  75. public void setRemarkAm(String remarkAm) {
  76. this.remarkAm = remarkAm;
  77. }
  78. public String getWhoIdsPm() {
  79. return whoIdsPm;
  80. }
  81. public void setWhoIdsPm(String whoIdsPm) {
  82. this.whoIdsPm = whoIdsPm;
  83. }
  84. public String getWhoNamesPm() {
  85. return whoNamesPm;
  86. }
  87. public void setWhoNamesPm(String whoNamesPm) {
  88. this.whoNamesPm = whoNamesPm;
  89. }
  90. public String getWherePm() {
  91. return wherePm;
  92. }
  93. public void setWherePm(String wherePm) {
  94. this.wherePm = wherePm;
  95. }
  96. public String getRemarkPm() {
  97. return remarkPm;
  98. }
  99. public void setRemarkPm(String remarkPm) {
  100. this.remarkPm = remarkPm;
  101. }
  102. /**
  103. * 显示的顺序,越小越靠前显示
  104. * @return
  105. */
  106. public int getShowIndex() {
  107. return showIndex;
  108. }
  109. public void setShowIndex(int showIndex) {
  110. this.showIndex = showIndex;
  111. }
  112. public Date getDate() {
  113. return date;
  114. }
  115. public void setDate(Date date) {
  116. this.date = date;
  117. }
  118. public String getWeekDay() {
  119. return weekDay;
  120. }
  121. public void setWeekDay(String weekDay) {
  122. this.weekDay = weekDay;
  123. }
  124. public String getWhatAm() {
  125. return whatAm;
  126. }
  127. public void setWhatAm(String whatAm) {
  128. this.whatAm = whatAm;
  129. }
  130. public String getWhatPm() {
  131. return whatPm;
  132. }
  133. public String getWhatAmZjl() {
  134. return whatAmZjl;
  135. }
  136. public void setWhatAmZjl(String whatAmZjl) {
  137. this.whatAmZjl = whatAmZjl;
  138. }
  139. public String getWhatPmZjl() {
  140. return whatPmZjl;
  141. }
  142. public void setWhatPmZjl(String whatPmZjl) {
  143. this.whatPmZjl = whatPmZjl;
  144. }
  145. public void setWhatPm(String whatPm) {
  146. this.whatPm = whatPm;
  147. }
  148. /* (non-Javadoc)
  149. * @see java.lang.Comparable#compareTo(java.lang.Object)
  150. */
  151. @Override
  152. public int compareTo(WeeklyScheduleDayDto other) {
  153. if(Globals.BOSS_ID.equals(this.getUserid())){
  154. return -1;
  155. }
  156. if(Globals.BOSS_ID.equals(other.getUserid())){
  157. return 1;
  158. }
  159. return this.getShowIndex()-other.getShowIndex();
  160. }
  161. }