修改老师端互动答疑接口

master
xiaoCJ 1 year ago
parent 8ef5213c8a
commit c69f37529f

@ -87,9 +87,9 @@ public class TeaTopicManageController {
public ResultEntity<PageInfo<QuestionAnswerDto>> getQuestionAnswer(@RequestParam Integer index,
@RequestParam Integer size,
@RequestParam String schoolId,
@ApiParam("班级下拉框") @RequestParam(required = false) String className,
@ApiParam("班级下拉框") @RequestParam(required = false) String classId,
@ApiParam("姓名/学号") @RequestParam(required = false) String keyWord) {
return new ResultEntity<>(teaTopicManageService.getQuestionAnswer(index, size, schoolId, className, keyWord));
return new ResultEntity<>(teaTopicManageService.getQuestionAnswer(index, size, schoolId, classId, keyWord));
}
@AnonymousAccess

@ -98,7 +98,7 @@ public class TeaTopicManageServiceImpl implements TeaTopicManageService {
* @Date 2023/12/1
*/
@Override
public PageInfo<QuestionAnswerDto> getQuestionAnswer(Integer index, Integer size, String schoolId, String className, String keyWord) {
public PageInfo<QuestionAnswerDto> getQuestionAnswer(Integer index, Integer size, String schoolId, String classId, String keyWord) {
QuestionAnswerExample questionAnswerExample = new QuestionAnswerExample();
questionAnswerExample.createCriteria().andSchoolidEqualTo(schoolId);
List<QuestionAnswerWithBLOBs> questionAnswers = questionAnswerMapper.selectByExampleWithBLOBs(questionAnswerExample);
@ -106,8 +106,8 @@ public class TeaTopicManageServiceImpl implements TeaTopicManageService {
UserExample.Criteria criteria = userTableExample.createCriteria();
UserExample.Criteria or = userTableExample.createCriteria();
criteria.andSchoolIdEqualTo(schoolId).andRoleIdEqualTo(4);
if (StringUtils.isNotBlank(className)) {
criteria.andClassNameEqualTo(className);
if (StringUtils.isNotBlank(classId)) {
criteria.andClassIdEqualTo(classId);
}
if (StringUtils.isNotBlank(keyWord)) {
criteria.andStudentIdEqualTo(keyWord);

@ -16,6 +16,6 @@ public interface TeaTopicManageService {
PageInfo<TopicsWithBLOBs> getTopicsBySchoolId(Integer index, Integer size, String schoolId, String module, String topicContent);
PageInfo<QuestionAnswerDto> getQuestionAnswer(Integer index, Integer size,String schoolId, String className, String keyWord);
PageInfo<QuestionAnswerDto> getQuestionAnswer(Integer index, Integer size,String schoolId, String classId, String keyWord);
}

Loading…
Cancel
Save