Gorm 踩坑 Posted on July 31, 2020February 28, 2021 by Bi Weihao soft delete 之后如果想回复,可以直接设置deleted_at 为null,但是需要用unscoped去查,不然会查不到,根本原因是因为当mysql row 被 soft delete后,任何查询都会查不到deleted_at不为null的值