| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.other.entity.FrequentlyAskedQuestions; |
| | | import com.dsh.other.mapper.FrequentlyAskedQuestionsMapper; |
| | | import com.dsh.other.model.vo.questionVo.QuestionChangeStateVO; |
| | | import com.dsh.other.service.FrequentlyAskedQuestionsService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @Service |
| | | public class FrequentlyAskedQuestionsServiceImpl extends ServiceImpl<FrequentlyAskedQuestionsMapper, FrequentlyAskedQuestions> implements FrequentlyAskedQuestionsService { |
| | | |
| | | @Resource |
| | | private FrequentlyAskedQuestionsMapper frequentlyAskedQuestionsMapper; |
| | | |
| | | @Override |
| | | public int changeState(QuestionChangeStateVO vo) { |
| | | List<Integer> questionIds = vo.getQuestionId(); |
| | | |
| | | Integer type = vo.getType(); |
| | | return frequentlyAskedQuestionsMapper.changeState(questionIds, type); |
| | | } |
| | | |
| | | @Override |
| | | public FrequentlyAskedQuestions getInfo(Integer id) { |
| | | |
| | | return frequentlyAskedQuestionsMapper.getInfo(id); |
| | | } |
| | | } |