#
Junjie
昨天 12633568e27fcb9046367d6db981e2b4d1462cc7
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();