Search in sources :

Example 1 with PreparationQuizMapper

use of com.cas.sim.tis.mapper.PreparationQuizMapper in project TeachingInSimulation by ScOrPiOzzy.

the class PreparationQuizServiceImpl method findQuizsByPreparationId.

@Override
public List<PreparationInfo> findQuizsByPreparationId(Integer pid) {
    PreparationQuizMapper mapper = (PreparationQuizMapper) this.mapper;
    List<PreparationInfo> tests = mapper.findQuizsByPreparationId(pid);
    if (tests == null) {
        return new ArrayList<>();
    } else {
        return tests;
    }
}
Also used : PreparationQuizMapper(com.cas.sim.tis.mapper.PreparationQuizMapper) ArrayList(java.util.ArrayList) PreparationInfo(com.cas.sim.tis.vo.PreparationInfo)

Aggregations

PreparationQuizMapper (com.cas.sim.tis.mapper.PreparationQuizMapper)1 PreparationInfo (com.cas.sim.tis.vo.PreparationInfo)1 ArrayList (java.util.ArrayList)1