| package com.dsh.other.service.impl; | 
|   | 
| 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> | 
|  * 常见问题 服务实现类 | 
|  * </p> | 
|  * | 
|  * @author jqs | 
|  * @since 2023-07-03 | 
|  */ | 
| @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); | 
|     } | 
| } |