BizRequest.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. package com.hmsoft.model.request;
  2. import java.io.Serializable;
  3. import java.util.List;
  4. import org.apache.commons.lang.builder.EqualsBuilder;
  5. import org.apache.commons.lang.builder.HashCodeBuilder;
  6. import com.hmsoft.model.CoursePlan;
  7. /**
  8. * 请求业务类.
  9. * @author zq
  10. *
  11. */
  12. public class BizRequest implements Serializable {
  13. private static final long serialVersionUID = -8814212998506317013L;
  14. protected Integer reqType; //1-学校选择课程,2-命题办通知其他学校课程被选择了,3-命题办指定该课程征集学校,4-学校取消选择的课程,5-命题办刷新课程列表数据到各个学校客户端
  15. protected String batchNo;//批次编号
  16. protected Long schoolId;
  17. protected String schoolName;
  18. protected String selectIds;//选择的课程代码,可以选多个
  19. protected String selectRowIndx;//选择的行标
  20. protected List<CoursePlan> sourceList;//服务端发送过来的列表
  21. public String getBatchNo() {
  22. return batchNo;
  23. }
  24. public void setBatchNo(String batchNo) {
  25. this.batchNo = batchNo;
  26. }
  27. public Integer getReqType() {
  28. return reqType;
  29. }
  30. public List<CoursePlan> getSourceList() {
  31. return sourceList;
  32. }
  33. public void setSourceList(List<CoursePlan> sourceList) {
  34. this.sourceList = sourceList;
  35. }
  36. public void setReqType(Integer reqType) {
  37. this.reqType = reqType;
  38. }
  39. public Long getSchoolId() {
  40. return schoolId;
  41. }
  42. public void setSchoolId(Long schoolId) {
  43. this.schoolId = schoolId;
  44. }
  45. public String getSchoolName() {
  46. return schoolName;
  47. }
  48. public void setSchoolName(String schoolName) {
  49. this.schoolName = schoolName;
  50. }
  51. public String getSelectIds() {
  52. return selectIds;
  53. }
  54. public void setSelectIds(String selectIds) {
  55. this.selectIds = selectIds;
  56. }
  57. public String getSelectRowIndx() {
  58. return selectRowIndx;
  59. }
  60. public void setSelectRowIndx(String selectRowIndx) {
  61. this.selectRowIndx = selectRowIndx;
  62. }
  63. public int hashCode() {
  64. return new HashCodeBuilder(17, 37).
  65. append(this.reqType).
  66. append(this.schoolId).
  67. append(this.schoolName).
  68. append(this.selectIds).
  69. toHashCode();
  70. }
  71. public boolean equals(Object obj) {
  72. if (obj == null) { return false; }
  73. if (obj == this) { return true; }
  74. if (obj.getClass() != getClass()) {
  75. return false;
  76. }
  77. BizRequest oth = (BizRequest) obj;
  78. return new EqualsBuilder()
  79. .append(this.reqType, oth.reqType)
  80. .append(this.schoolId, oth.schoolId)
  81. .append(this.schoolName, oth.schoolName)
  82. .append(this.selectIds, oth.selectIds)
  83. .isEquals();
  84. }
  85. }