feat: 智能分析存入数据库

This commit is contained in:
Shu Guang 2025-05-20 15:41:29 +08:00
parent cfbea9c2aa
commit ae0bea7c63
8 changed files with 174 additions and 4949 deletions

View File

@ -71,10 +71,10 @@ public final class EmailController {
try {
final Properties props = new Properties();
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.host", "smtpdm.aliyun.com"); // 请根据你的邮箱服务商替换为相应的地址
props.put("mail.smtp.host", "smtpdm.aliyun.com");
// 发件人的账号
props.put("mail.user", "shuguang@email.92wap.cn");
props.put("mail.user", "cloud@email.idcbook.com");
//发件人的密码
props.put("mail.password", "LIUSHUguang520");

View File

@ -27,7 +27,7 @@ public interface ArticleMapper {
//更新对应的文章信息
@Update("UPDATE article_table SET " +
"article_title = #{articleTitle}, brief_content = #{briefContent}, " +
"article_content = #{articleContent}, article_type = #{articleType} , publish_time=#{publishTime}" +
"article_content = #{articleContent}, article_type = #{articleType} " +
"WHERE article_id = #{articleId}")
Integer updataArtical(ArticleTable articleTable);
}

View File

@ -17,7 +17,7 @@ public class ChartMapper {
* @return 受影响的行数
*/
public int saveChart(Chart chart) {
String sql = "INSERT INTO t_chart (id, name, goal, chart_data, chart_type, gen_chart, gen_result, admin_id, create_time, update_time) " +
String sql = "INSERT INTO chart (id, name, goal, chart_data, chart_type, gen_chart, gen_result, admin_id, create_time, update_time) " +
"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)";
return jdbcTemplate.update(sql,

View File

@ -49,6 +49,6 @@ smsbao:
username: 15829561090
password: 13991564254
mail:
user: shuguang@email.92wap.cn
user: cloud@email.idcbook.com
password: LIUSHUguang520

View File

@ -3,9 +3,9 @@
<mapper namespace="com.example.system.mapper.AiChatMapper">
<insert id="insert" parameterType="com.example.system.common.AiChat">
INSERT INTO ai_competition_chat
(chat_id, user_id, user_question, ai_response, chat_time, competition_type, is_deleted)
( user_id, user_question, ai_response, chat_time, competition_type, is_deleted)
VALUES
(#{chatId}, #{userId}, #{userQuestion}, #{aiResponse}, #{chatTime}, #{competitionType}, #{isDeleted})
( #{userId}, #{userQuestion}, #{aiResponse}, #{chatTime}, #{competitionType}, #{isDeleted})
</insert>

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.