From 9adc2149551e0d07cfe84c5a8d2b46e19d789b93 Mon Sep 17 00:00:00 2001 From: yiyun Date: Fri, 3 Jun 2022 12:42:32 +0800 Subject: [PATCH] fix(plugins/zhidaoplugin/dbcontext.cs): add Group --- plugins/ZhiDaoPlugin/DbContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ZhiDaoPlugin/DbContext.cs b/plugins/ZhiDaoPlugin/DbContext.cs index eb2f09afe..e314a8a23 100644 --- a/plugins/ZhiDaoPlugin/DbContext.cs +++ b/plugins/ZhiDaoPlugin/DbContext.cs @@ -39,7 +39,7 @@ public static int InsertIntoQABox(QABox model) { con.Open(); - string sql = "INSERT INTO QABox (Question,Answer,CreateTime,UpdateTime) Values (@Question,@Answer,@CreateTime,@UpdateTime);"; + string sql = "INSERT INTO QABox (Question,Answer,CreateTime,UpdateTime,Group) Values (@Question,@Answer,@CreateTime,@UpdateTime,@Group);"; return con.Execute(sql, model); } @@ -51,7 +51,7 @@ public static int UpdateQABox(QABox model) { con.Open(); - string sql = "UPDATE QABox SET Question=@Question, Answer=@Answer, CreateTime=@CreateTime, UpdateTime=@UpdateTime WHERE Id=@Id;"; + string sql = "UPDATE QABox SET Question=@Question, Answer=@Answer, CreateTime=@CreateTime, UpdateTime=@UpdateTime, Group=@Group WHERE Id=@Id;"; return con.Execute(sql, model); }