package com.hmsoft.model.request; import java.io.Serializable; import java.util.List; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import com.hmsoft.model.CoursePlan; /** * 请求业务类. * @author zq * */ public class BizRequest implements Serializable { private static final long serialVersionUID = -8814212998506317013L; protected Integer reqType; //1-学校选择课程,2-命题办通知其他学校课程被选择了,3-命题办指定该课程征集学校,4-学校取消选择的课程,5-命题办刷新课程列表数据到各个学校客户端 protected String batchNo;//批次编号 protected Long schoolId; protected String schoolName; protected String selectIds;//选择的课程代码,可以选多个 protected String selectRowIndx;//选择的行标 protected List sourceList;//服务端发送过来的列表 public String getBatchNo() { return batchNo; } public void setBatchNo(String batchNo) { this.batchNo = batchNo; } public Integer getReqType() { return reqType; } public List getSourceList() { return sourceList; } public void setSourceList(List sourceList) { this.sourceList = sourceList; } public void setReqType(Integer reqType) { this.reqType = reqType; } public Long getSchoolId() { return schoolId; } public void setSchoolId(Long schoolId) { this.schoolId = schoolId; } public String getSchoolName() { return schoolName; } public void setSchoolName(String schoolName) { this.schoolName = schoolName; } public String getSelectIds() { return selectIds; } public void setSelectIds(String selectIds) { this.selectIds = selectIds; } public String getSelectRowIndx() { return selectRowIndx; } public void setSelectRowIndx(String selectRowIndx) { this.selectRowIndx = selectRowIndx; } public int hashCode() { return new HashCodeBuilder(17, 37). append(this.reqType). append(this.schoolId). append(this.schoolName). append(this.selectIds). toHashCode(); } public boolean equals(Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (obj.getClass() != getClass()) { return false; } BizRequest oth = (BizRequest) obj; return new EqualsBuilder() .append(this.reqType, oth.reqType) .append(this.schoolId, oth.schoolId) .append(this.schoolName, oth.schoolName) .append(this.selectIds, oth.selectIds) .isEquals(); } }