Merge remote-tracking branch 'origin/dev_20230216' into dev_20230216
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ public class AskQuestionsServiceImpl extends ServiceImpl<AskQuestionsDao, AskQue
|
|||||||
String questioner = askQuestionsDao.selectBYAQId(id);
|
String questioner = askQuestionsDao.selectBYAQId(id);
|
||||||
String answerer = askQuestionsDao.selectByRId(id,userId);
|
String answerer = askQuestionsDao.selectByRId(id,userId);
|
||||||
if (userId.equals(questioner)||userId.equals(answerer)){
|
if (userId.equals(questioner)||userId.equals(answerer)){
|
||||||
return askQuestionsDao.getAskQuestionsByakId(id,state);
|
return askQuestionsDao.getAskQuestionsByakId(id,null);
|
||||||
}
|
}
|
||||||
return askQuestionsDao.getAskQuestionsById(id);
|
return askQuestionsDao.getAskQuestionsById(id);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -269,13 +269,13 @@
|
|||||||
<select id="selectByRId" resultType="java.lang.String">
|
<select id="selectByRId" resultType="java.lang.String">
|
||||||
SELECT reply.ANSWERER
|
SELECT reply.ANSWERER
|
||||||
FROM reply
|
FROM reply
|
||||||
where ASK_ID = #{id} and answerer = #{userId};
|
where ASK_ID = #{id} and answerer = #{userId} limit 1;
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="selectBYAQId" resultType="java.lang.String">
|
<select id="selectBYAQId" resultType="java.lang.String">
|
||||||
SELECT ask_questions.QUESTIONER
|
SELECT ask_questions.QUESTIONER
|
||||||
FROM ask_questions
|
FROM ask_questions
|
||||||
where id = #{id}
|
where id = #{id} limit 1;
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getAskQuestionsById" resultType="com.adc.da.slrs.StandardQA.entity.Reply">
|
<select id="getAskQuestionsById" resultType="com.adc.da.slrs.StandardQA.entity.Reply">
|
||||||
|
|||||||
Reference in New Issue
Block a user