#
Junjie
1 天以前 c0df58a6fb50ee32e7336b5901000549700ebc82
src/main/java/com/zy/ai/config/AiPromptTemplateInitializer.java
@@ -25,8 +25,8 @@
    @PostConstruct
    public void init() {
        try (Connection connection = dataSource.getConnection()) {
            if (!hasTable(connection, "sys_ai_prompt_template")) {
                log.warn("Skip AI prompt initialization because table sys_ai_prompt_template does not exist");
            if (!hasTable(connection, "sys_ai_prompt_template") || !hasTable(connection, "sys_ai_prompt_block")) {
                log.warn("Skip AI prompt initialization because prompt tables do not exist");
                return;
            }
            int changed = aiPromptTemplateService.initDefaultsIfMissing();