Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 @Override
 public void addTrainingSection(TrainingSection section) {
   // TODO Auto-generated method stub
   trainingMapper.addTrainingSection(section);
 }
Ejemplo n.º 4
0
 @Override
 public void deleteTrainingSection(int sectionId, int userId) {
   // TODO Auto-generated method stub
   trainingMapper.deleteTrainingSection(sectionId, userId);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 6
0
 @Override
 public void addTraining(Training training) {
   // TODO Auto-generated method stub
   trainingMapper.addTraining(training);
 }
Ejemplo n.º 7
0
 @Override
 public List<Training> getTrainingList(int userId, Page<Training> page) {
   // TODO Auto-generated method stub
   return trainingMapper.getTrainingList(userId, page);
 }