$data_f = Db::name("tbcustdata")
->field("data_id,Declaration")
->whereOr('Protection','=', NULL)
->whereOr('Protection', '<=', date('Y-m-d'))
->where('locking',0)
->where('Declaration', '>', '2021-01-01')
最后一个条件没用上,但是我把whereOr('Protection', '<=', date('Y-m-d')) 这个条件去掉,就用上最后一个了!这是什么毛病,是我哪里写错了吗?
最佳答案
