#
Junjie
昨天 1f0db72effe89280001306a0d95ae78ed0dd4db0
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();