Merge branch 'develop_migration' into 'develop_master'
feat: There is no way the, #55663 See merge request LiuChao/foton-slrs-system-rest!533
This commit is contained in:
+2
-2
@@ -130,8 +130,8 @@ public class AskQuestionsController extends BaseController<AskQuestions> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("/getAskQuestionsByakId")
|
@GetMapping("/getAskQuestionsByakId")
|
||||||
public ResponseMessage getAskQuestionsByakId(String id){
|
public ResponseMessage getAskQuestionsByakId(String id,String state){
|
||||||
List<Reply> askQuestionsList = askQuestionsService.getAskQuestionsByakId(id);
|
List<Reply> askQuestionsList = askQuestionsService.getAskQuestionsByakId(id,state);
|
||||||
return Result.success(askQuestionsList);
|
return Result.success(askQuestionsList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public interface AskQuestionsDao extends BaseMapper<AskQuestions> {
|
|||||||
|
|
||||||
List<AskQuestions> getArchiveAskQuestions (String id);
|
List<AskQuestions> getArchiveAskQuestions (String id);
|
||||||
|
|
||||||
List<Reply> getAskQuestionsByakId (String id);
|
List<Reply> getAskQuestionsByakId (String id,String state);
|
||||||
|
|
||||||
List<String> getUId();
|
List<String> getUId();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ public interface AskQuestionsService extends IService<AskQuestions> {
|
|||||||
|
|
||||||
List<AskQuestions> getAskQuestionsByStandardId(String standardId);
|
List<AskQuestions> getAskQuestionsByStandardId(String standardId);
|
||||||
List<AskQuestions> getArchiveAskQuestions(String id);
|
List<AskQuestions> getArchiveAskQuestions(String id);
|
||||||
List<Reply> getAskQuestionsByakId(String id);
|
List<Reply> getAskQuestionsByakId(String id,String state);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -80,8 +80,8 @@ public class AskQuestionsServiceImpl extends ServiceImpl<AskQuestionsDao, AskQue
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Reply> getAskQuestionsByakId(String id) {
|
public List<Reply> getAskQuestionsByakId(String id,String state) {
|
||||||
return askQuestionsDao.getAskQuestionsByakId(id);
|
return askQuestionsDao.getAskQuestionsByakId(id,state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,9 @@
|
|||||||
<if test="id !=null and id !=''">
|
<if test="id !=null and id !=''">
|
||||||
AND reply.ASK_ID = #{id}
|
AND reply.ASK_ID = #{id}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="state !=null and state !=''">
|
||||||
|
AND reply.state = #{state}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
order by reply.REPLY_TIME
|
order by reply.REPLY_TIME
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user