framework icon indicating copy to clipboard operation
framework copied to clipboard

"模型的update方法返回模型的对象实例" 这里是表述有误还是返回数据有误?

Open gyjcode opened this issue 2 years ago • 3 comments

image

gyjcode avatar Jul 26 '22 00:07 gyjcode

静态调用返回对象,如果前面有query,比如where之类的,则是数据库操作。你怎么写的

augushong avatar Jul 26 '22 00:07 augushong

image 这么写的,为了最后获取最新数据还要 find 一下

gyjcode avatar Jul 26 '22 00:07 gyjcode

我以为更新后返回的是最新更新完成后的所有内容呢。而且这里应该是程序处理了吧,创建时间与更新时间返回的是格式化后的日期,删除时间返回的是时间戳,如何统一返回时间戳或格式化后的字符串? image image

gyjcode avatar Jul 26 '22 00:07 gyjcode