Commit 1c1012b2 authored by shiyu's avatar shiyu

ai助手列表

parent 81a5ffb3
......@@ -290,7 +290,7 @@
</select>
<select id="selectRandom" parameterType="com.wwdz.ch.db.dto.request.AiDefaultQuestionRequestDto" resultType="com.wwdz.ch.db.domain.AiDefaultQuestion">
select * from ai_default_question where `type` = #{dto.type} LIMIT #{dto.limit} order by rand()
select * from ai_default_question where `type` = #{dto.type} order by rand() LIMIT #{dto.limit}
</select>
......
......@@ -43,6 +43,6 @@ public class AiAssistantServiceImpl implements AiAssistantService {
} catch (Exception e) {
logger.error("查询ai助手列表error : {}", e);
}
return null;
return Result.failed();
}
}
......@@ -33,9 +33,6 @@ public class AiAssistantController {
@PostMapping("/findList")
public Result findList(@RequestBody AiAssistantRequestDto dto) {
logger.info("【请求开始】查询ai助手列表,请求参数:{}", JSON.toJSONString(dto));
if (dto.getType() == null) {
return Result.failed(ResultCode.PARAM_ERROR);
}
return aiAssistantService.findList(dto);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment