2
最新版本 v1.16.4
func testupdate() {
id := 72
pass := 2
entity, e := ai_sentence.Model.Where("id=?", id).One()
if e != nil {
g.Log().Line().Error(e)
}
entity.State = pass
_, err := entity.Update()
if err != nil {
g.Log().Line().Error(err)
} else {
}
}
2021-07-20 14:27:22.713 [ERRO] sentence.go:121: sql: expected 8 arguments, got 9, UPDATE `ai_sentence` SET `delate`=0,`id`=72,`phone`='2088702302431853',`add_time`='2021-06-02 14:49:56',`update_time`='2021-06-02 14:49:56',`content`='今天晚上是您值班,请勿迟到,请认真填写各项表格,祝您工作顺利!',`state`=1 WHERE `id` IN (72)
Stack: