feat: 智能分析存入数据库
This commit is contained in:
parent
cfbea9c2aa
commit
ae0bea7c63
@ -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");
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -49,6 +49,6 @@ smsbao:
|
||||
username: 15829561090
|
||||
password: 13991564254
|
||||
mail:
|
||||
user: shuguang@email.92wap.cn
|
||||
user: cloud@email.idcbook.com
|
||||
password: LIUSHUguang520
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
||||
|
5109
spring-blog.log
5109
spring-blog.log
File diff suppressed because it is too large
Load Diff
BIN
spring-blog.log.2025-05-18.0.gz
Normal file
BIN
spring-blog.log.2025-05-18.0.gz
Normal file
Binary file not shown.
BIN
spring-blog.log.2025-05-19.0.gz
Normal file
BIN
spring-blog.log.2025-05-19.0.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user