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:
super_liu
2022-06-20 16:36:03 +08:00
5 changed files with 9 additions and 6 deletions
@@ -130,8 +130,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);
}
@@ -36,7 +36,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();
}
@@ -26,7 +26,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);
}
@@ -80,8 +80,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);
}
@@ -73,6 +73,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