Skip to content

Commit

Permalink
fix(plugins/zhidaoplugin/dbcontext.cs): add Group
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Jun 3, 2022
1 parent 981580e commit 9adc214
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/ZhiDaoPlugin/DbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 9adc214

Please sign in to comment.