/*批量添加院校专业 * (non-Javadoc) * @see net.cedu.biz.enrollment.AcademyMajorBiz#addSeveralAcademyMajor(net.cedu.entity.enrollment.AcademyMajor, int[]) */ public void addSeveralAcademyMajor(AcademyMajor academyMajor, int[] allmajorids) throws Exception { if (academyMajor != null && allmajorids != null && allmajorids.length > 0) { for (int i = 0, len = allmajorids.length; i < len; i++) { AcademyMajor schmajor = new AcademyMajor(); schmajor.setAcademyLevelId(academyMajor.getAcademyLevelId()); schmajor.setDeleteFlag(Constants.DELETE_FALSE); schmajor.setMajorId(allmajorids[i]); schmajor.setCreatedTime(new Date()); schmajor.setUpdatedTime(new Date()); schmajor.setCreatorId(academyMajor.getCreatorId()); schmajor.setUpdaterId(academyMajor.getUpdaterId()); this.addAcademyMajor(schmajor); } } }