解决场景编码错误的问题。
This commit is contained in:
@@ -90,7 +90,7 @@ public class AiPromptsController {
|
||||
public ResponseEntity<Map<String, Object>> list(
|
||||
@RequestParam(defaultValue = "1") Integer current,
|
||||
@RequestParam(defaultValue = "10") Integer size,
|
||||
@RequestParam(required = false) String sceneCode,
|
||||
@RequestParam(required = false) String scenarioCode,
|
||||
@RequestParam(required = false) String categoryCode,
|
||||
@RequestParam(required = false) String fieldCode,
|
||||
@RequestParam(required = false) String promptType,
|
||||
@@ -101,8 +101,8 @@ public class AiPromptsController {
|
||||
try {
|
||||
Page<AiPrompts> page = new Page<>(current, size);
|
||||
LambdaQueryWrapper<AiPrompts> q = new LambdaQueryWrapper<>();
|
||||
if (sceneCode != null && !sceneCode.trim().isEmpty()) {
|
||||
q.eq(AiPrompts::getSceneCode, sceneCode);
|
||||
if (scenarioCode != null && !scenarioCode.trim().isEmpty()) {
|
||||
q.eq(AiPrompts::getScenarioCode, scenarioCode);
|
||||
}
|
||||
if (categoryCode != null && !categoryCode.trim().isEmpty()) {
|
||||
q.eq(AiPrompts::getCategoryCode, categoryCode);
|
||||
|
||||
@@ -24,8 +24,8 @@ public class AiPrompts implements Serializable {
|
||||
@TableId("id")
|
||||
private String id;
|
||||
|
||||
@Schema(description = "场景编码")
|
||||
private String sceneCode;
|
||||
@Schema(description = "情景编码")
|
||||
private String scenarioCode;
|
||||
|
||||
@Schema(description = "分类编码")
|
||||
private String categoryCode;
|
||||
|
||||
Reference in New Issue
Block a user