settter
parent
93930445b6
commit
85ab2dc45a
|
@ -31,14 +31,15 @@ class CommentRepository extends Repository
|
|||
return CommentModel::alias("a")
|
||||
->join("account b" ,"a.user_code = b.user_code")
|
||||
->where($whereMap)
|
||||
->whereOr(
|
||||
[
|
||||
["b.blank_time","=","null"],
|
||||
["b.blank_time","=",""],
|
||||
["b.blank_time","<",date("Y-m-d H:i:s")],
|
||||
]
|
||||
|
||||
)
|
||||
->where(function ($q){
|
||||
$q->whereOr(
|
||||
[
|
||||
["b.blank_time","=","null"],
|
||||
["b.blank_time","=",""],
|
||||
["b.blank_time","<",date("Y-m-d H:i:s")],
|
||||
]
|
||||
);
|
||||
})
|
||||
->field([
|
||||
"a.comment",
|
||||
"a.user_code as userCode",
|
||||
|
|
Loading…
Reference in New Issue