解决场景编码错误的问题。
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user