解决场景编码错误的问题。

This commit is contained in:
2026-04-19 22:10:28 +08:00
parent 78a5e5ae0e
commit 3bc2da8f88
2 changed files with 5 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ public class AiPromptsController {
public ResponseEntity<Map<String, Object>> list( public ResponseEntity<Map<String, Object>> list(
@RequestParam(defaultValue = "1") Integer current, @RequestParam(defaultValue = "1") Integer current,
@RequestParam(defaultValue = "10") Integer size, @RequestParam(defaultValue = "10") Integer size,
@RequestParam(required = false) String sceneCode, @RequestParam(required = false) String scenarioCode,
@RequestParam(required = false) String categoryCode, @RequestParam(required = false) String categoryCode,
@RequestParam(required = false) String fieldCode, @RequestParam(required = false) String fieldCode,
@RequestParam(required = false) String promptType, @RequestParam(required = false) String promptType,
@@ -101,8 +101,8 @@ public class AiPromptsController {
try { try {
Page<AiPrompts> page = new Page<>(current, size); Page<AiPrompts> page = new Page<>(current, size);
LambdaQueryWrapper<AiPrompts> q = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AiPrompts> q = new LambdaQueryWrapper<>();
if (sceneCode != null && !sceneCode.trim().isEmpty()) { if (scenarioCode != null && !scenarioCode.trim().isEmpty()) {
q.eq(AiPrompts::getSceneCode, sceneCode); q.eq(AiPrompts::getScenarioCode, scenarioCode);
} }
if (categoryCode != null && !categoryCode.trim().isEmpty()) { if (categoryCode != null && !categoryCode.trim().isEmpty()) {
q.eq(AiPrompts::getCategoryCode, categoryCode); q.eq(AiPrompts::getCategoryCode, categoryCode);

View File

@@ -24,8 +24,8 @@ public class AiPrompts implements Serializable {
@TableId("id") @TableId("id")
private String id; private String id;
@Schema(description = "景编码") @Schema(description = "景编码")
private String sceneCode; private String scenarioCode;
@Schema(description = "分类编码") @Schema(description = "分类编码")
private String categoryCode; private String categoryCode;