public void editSchedule(Schedule sc) { HashMap<String, Object> params = new HashMap<String, Object>(); params.put("title", sc.getTitle()); params.put("cont", sc.getCont()); params.put("stDate", sc.getEstDate()); params.put("edDate", sc.getEedDate()); params.put("classify", sc.getClassify()); params.put("priority", sc.getPriority()); params.put("category", sc.getCategory()); params.put("makepublic", sc.getMakepublic()); params.put("key", sc.getKey()); scheduleMapper.editSchedule(params); }
public int insertSchedule(Schedule sc) { HashMap<String, Object> params = new HashMap<String, Object>(); params.put("title", sc.getTitle()); params.put("cont", sc.getCont()); params.put("stDate", sc.getStDate()); params.put("edDate", sc.getEdDate()); params.put("classify", sc.getClassify()); params.put("priority", sc.getPriority()); params.put("category", sc.getCategory()); params.put("makepublic", sc.getMakepublic()); params.put("s_id", sc.getS_id()); params.put("repeat", sc.getRepeat()); params.put("key", ""); scheduleMapper.insertSchedule(params); int key = (int) params.get("key"); return key; }
@Override public List<ScRepeat> selectRepeat() { List<ScRepeat> sr = scheduleMapper.selectRepeat(); return sr; }
@Override public void insertRepeat(ScRepeat scRepeat) { scheduleMapper.insertRepeat(scRepeat); }
public void deleteSchedule(int key) { scheduleMapper.deleteSchedule(key); }
public Schedule editSelectSchedule(int key) { Schedule schedule = scheduleMapper.editSelectSchedule(key); return schedule; }
public List<Schedule> selectSchedule() { List<Schedule> schedule = scheduleMapper.selectSchedule(); return schedule; }