Merge remote-tracking branch 'origin/dev_20230216' into dev_20230216
This commit is contained in:
+16
@@ -316,4 +316,20 @@ public class AskQuestionsController extends BaseController<AskQuestions> {
|
||||
|
||||
return askQuestionsService.selectAskReply(id);
|
||||
}
|
||||
|
||||
@PostMapping("/jump")
|
||||
public ResponseMessage jump(String standId ,String userId) {
|
||||
if (StringUtils.isNotBlank(standId) && StringUtils.isNotBlank(userId)) {
|
||||
QueryWrapper<AskQuestions> objectQueryWrapper = new QueryWrapper<>();
|
||||
objectQueryWrapper.eq("STANDARD_ID", standId);
|
||||
objectQueryWrapper.eq("questioner", userId);
|
||||
List<AskQuestions> list = askQuestionsService.list(objectQueryWrapper);
|
||||
if (!list.isEmpty()) {
|
||||
//提问
|
||||
return Result.success("myQue");
|
||||
}
|
||||
}
|
||||
//回答
|
||||
return Result.success("myAns");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user