| | |
| | | import com.dsh.other.model.vo.questionVo.QuestionIns; |
| | | import com.dsh.other.service.FrequentlyAskedQuestionsService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.ArrayList; |
| | |
| | | |
| | | |
| | | @PostMapping("/base/notice/queryQuestionDetails") |
| | | public QuestionDetailsVo getSysQuestionDetails(){ |
| | | QuestionDetailsVo notices = new QuestionDetailsVo(); |
| | | public List<QuestionIns> getSysQuestionDetails(){ |
| | | List<QuestionIns> sysS = new ArrayList<>(); |
| | | List<FrequentlyAskedQuestions> list = faqService.list(new QueryWrapper<FrequentlyAskedQuestions>() |
| | | .eq("state", 1) |
| | |
| | | notice.setQuesContents(noList.getAnswer()); |
| | | sysS.add(notice); |
| | | }); |
| | | notices.setSysS(sysS); |
| | | } |
| | | return notices; |
| | | return sysS; |
| | | } |
| | | |
| | | |
| | | @PostMapping("/base/notice/queryQuestion") |
| | | public QuestionIns getSysQuestionBuId(@RequestBody Integer quesId){ |
| | | public QuestionIns getSysQuestionBuId(@RequestParam("quesId") Integer quesId){ |
| | | QuestionIns sysNotice = new QuestionIns(); |
| | | FrequentlyAskedQuestions notice = faqService.getById(quesId); |
| | | if (null != notice){ |