public List<Playorder> findPlayorders(Date month, int subject) throws Exception { Calendar calendar = new GregorianCalendar(); calendar.setTime(month); Date startDate = new Date(month.getYear(), month.getMonth(), 1); Date endDate = new Date( month.getYear(), month.getMonth(), calendar.getActualMaximum(Calendar.DAY_OF_MONTH)); List<Playorder> orders = playorderDAO.findMonthPlayOrder(startDate, endDate, subject, -1, -1, true); return orders; }
public Playchangelog getDelInfoFormArrangeLog(String videoID) throws Exception { List<Playchangelog> list = playorderDAO.findObjectByField( Playchangelog.class, Playchangelog.PROP_VEDIO_I_D, new Vediotape(videoID), -1, -1, Playchangelog.PROP_DATE, false); if (null == list || 0 == list.size()) return null; if (list.get(0).getOperation().equals("移除")) return list.get(0); return null; }
public void savePlayorder(List<Playorder> pos, int userID) throws Exception { playorderDAO.savePlayorder(pos, userID); }
public void deletePlayOrder(List<Playorder> pos, int userID) throws Exception { playorderDAO.deletePlayorder(pos, userID); }
public Date getFirstArrangedDate() throws Exception { return playorderDAO.getFirstArrangedDate(); }