예제 #1
0
 @Override
 public Map<Integer, List<TrainingSectionProcess>> getTrainingSectionProcessMapByTrainingId(
     int trainingId, List<Integer> idList, String searchStr) {
   // TODO Auto-generated method stub
   if (idList.size() == 0) idList = null;
   List<TrainingSectionProcess> processList =
       trainingMapper.getTrainingSectionProcessListByTrainingId(
           trainingId, idList, searchStr, null);
   HashMap<Integer, List<TrainingSectionProcess>> map =
       new HashMap<Integer, List<TrainingSectionProcess>>();
   for (TrainingSectionProcess process : processList) {
     List<TrainingSectionProcess> tmpList = new ArrayList<TrainingSectionProcess>();
     if (map.containsKey(process.getUserId())) tmpList = map.get(process.getUserId());
     tmpList.add(process);
     map.put(process.getUserId(), tmpList);
   }
   return map;
 }
예제 #2
0
 @Override
 public List<UserTraining> getUserTrainingList(
     int trainingId, int userId, String searchStr, Page<UserTraining> page) {
   // TODO Auto-generated method stub
   return trainingMapper.getUserTrainingList(trainingId, userId, searchStr, page);
 }
예제 #3
0
 @Override
 public void addTrainingSection(TrainingSection section) {
   // TODO Auto-generated method stub
   trainingMapper.addTrainingSection(section);
 }
예제 #4
0
 @Override
 public void deleteTrainingSection(int sectionId, int userId) {
   // TODO Auto-generated method stub
   trainingMapper.deleteTrainingSection(sectionId, userId);
 }
예제 #5
0
 @Override
 public List<TrainingSection> getTrainingSectionById(
     int sectionId, int userId, Page<TrainingSection> page) {
   // TODO Auto-generated method stub
   return trainingMapper.getTrainingSectionById(sectionId, userId, page);
 }
예제 #6
0
 @Override
 public void addTraining(Training training) {
   // TODO Auto-generated method stub
   trainingMapper.addTraining(training);
 }
예제 #7
0
 @Override
 public List<Training> getTrainingList(int userId, Page<Training> page) {
   // TODO Auto-generated method stub
   return trainingMapper.getTrainingList(userId, page);
 }