作者 lishaoshuai
1 个管道 的构建 通过 耗费 0 秒

更新 LeaveController.php

... ... @@ -89,7 +89,7 @@ class LeaveController extends RestBaseController
$condition['l.to_uid|l.from_uid'] = $this->userId;
$field = 'l.id,l.to_uid,from.avatar,from.user_nickname name,content,l.create_time';
//将该业务员的 留言都改为已读状态
Db::name('leave')->where(['to_uid|from_uid' => $this->userId])->update(['is_read' => 1]);
Db::name('leave')->where(['to_uid|from_uid' => $this->userId,'parent_id' => 0])->update(['is_read' => 1]);
}
$result = Db::name('leave')
->alias('l')
... ...