package com.rongwei.trainingcommon.sys.service.impl;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rongwei.trainingcommon.sys.dao.SubjectOptionsDao;
import com.rongwei.training.domain.SubjectOptionsDo;
import com.rongwei.trainingcommon.sys.service.SubjectOptionsService;


@Service("subjectOptionsService")
public class SubjectOptionsServiceImpl extends ServiceImpl<SubjectOptionsDao, SubjectOptionsDo> implements SubjectOptionsService {


    @Override
    public List<SubjectOptionsDo> getOptionsBySubjectId(String subjectId) {
        Map<String, Object> tempMap = new HashMap<>();
        tempMap.put("subjectid", subjectId);
        return (List<SubjectOptionsDo>) listByMap(tempMap);
    }
}
