...
|
...
|
@@ -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')
|
...
|
...
|
|