|
|
|
@ -127,14 +127,15 @@ public class TeaTopicManageController {
|
|
|
|
|
@PostMapping("/addQuestion")
|
|
|
|
|
@ApiOperation("互动答疑/学生提问")
|
|
|
|
|
public ResultEntity<String> getQuestionById(@ApiParam("传flowId,提问内容,学校ID") @RequestBody QuestionAnswerWithBLOBs questionAnswerWithBLOBs) {
|
|
|
|
|
questionAnswerWithBLOBs.setId(IdUtil.simpleUUID());
|
|
|
|
|
String simpleUUID = IdUtil.simpleUUID();
|
|
|
|
|
questionAnswerWithBLOBs.setId(simpleUUID);
|
|
|
|
|
questionAnswerWithBLOBs.setQuestionTime(new Date());
|
|
|
|
|
try {
|
|
|
|
|
questionAnswerMapper.insert(questionAnswerWithBLOBs);
|
|
|
|
|
}catch (Exception e){
|
|
|
|
|
return new ResultEntity<>(HttpStatus.BAD_REQUEST,"提问失败,数据缺失!");
|
|
|
|
|
}
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"提问成功!");
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK,"提问成功!",simpleUUID);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|