feat: There is no way the, #55663

This commit is contained in:
396572590@qq.com
2022-06-20 16:31:53 +08:00
parent 5c1234d076
commit 478503d94d
5 changed files with 9 additions and 6 deletions
@@ -119,8 +119,8 @@ public class AskQuestionsController extends BaseController<AskQuestions> {
* @return
*/
@GetMapping("/getAskQuestionsByakId")
public ResponseMessage getAskQuestionsByakId(String id){
List<Reply> askQuestionsList = askQuestionsService.getAskQuestionsByakId(id);
public ResponseMessage getAskQuestionsByakId(String id,String state){
List<Reply> askQuestionsList = askQuestionsService.getAskQuestionsByakId(id,state);
return Result.success(askQuestionsList);
}
@@ -34,7 +34,7 @@ public interface AskQuestionsDao extends BaseMapper<AskQuestions> {
List<AskQuestions> getArchiveAskQuestions (String id);
List<Reply> getAskQuestionsByakId (String id);
List<Reply> getAskQuestionsByakId (String id,String state);
List<String> getUId();
}
@@ -25,7 +25,7 @@ public interface AskQuestionsService extends IService<AskQuestions> {
List<AskQuestions> getAskQuestionsByStandardId(String standardId);
List<AskQuestions> getArchiveAskQuestions(String id);
List<Reply> getAskQuestionsByakId(String id);
List<Reply> getAskQuestionsByakId(String id,String state);
}
@@ -71,8 +71,8 @@ public class AskQuestionsServiceImpl extends ServiceImpl<AskQuestionsDao, AskQue
}
@Override
public List<Reply> getAskQuestionsByakId(String id) {
return askQuestionsDao.getAskQuestionsByakId(id);
public List<Reply> getAskQuestionsByakId(String id,String state) {
return askQuestionsDao.getAskQuestionsByakId(id,state);
}
@@ -72,6 +72,9 @@
<if test="id !=null and id !=''">
AND reply.ASK_ID = #{id}
</if>
<if test="state !=null and state !=''">
AND reply.state = #{state}
</if>
</where>
order by reply.REPLY_TIME