/** anping TODO 下午3:25:22 */ public boolean checkScholarTermIsNull(List<ScholarShip> ships) { for (ScholarShip ship : ships) { if (ship.getTerm() == null || ship.getStudent().getStudentNo() == null) { return false; } } return true; }
@Test public void selectSchloarShip() { Map<String, Object> params = new HashMap<String, Object>(); params.put("college", "软件学院"); params.put("major", "软件工程"); List<ScholarShip> ships = dao.select(namespace + "selectScholarShipByCondition", params); for (ScholarShip ship : ships) { System.out.println(ship.getTerm()); System.out.println(ship.getAwardScore()); System.out.println(ship.getPunishScore()); System.out.println(ship.getStudent().getStudentNo()); System.out.println(ship.getStudent().getStudentName()); } }