|
@@ -238,7 +238,7 @@ class UserLeave extends Base
|
|
|
*/
|
|
|
public function getApproveLeave()
|
|
|
{
|
|
|
- $list = LeaveApprove::where(['l.user_id'=>$this->user_id])
|
|
|
+ $list = LeaveApprove::where(['l.approve_user'=>$this->user_id])
|
|
|
->alias('l')
|
|
|
->field("l.*")
|
|
|
->where('status','>','0')
|