Commit 695d0768 authored by hujun's avatar hujun

is_self

parent a0c920dc
......@@ -825,7 +825,7 @@ class Finance extends Basic
if ($this->params['is_self']) {
$where['e.operation_id'] = $this->userId;
} else {
$where[] = ['EXP', 'e.operation_id IS NULL OR e.operation_id <> '.$this->userId];
$where[] = ['EXP', 'a.id NOT IN (SELECT refund_id FROM o_refund_log WHERE operation_id ='.$this->userId.')'];
}
}
......@@ -3266,7 +3266,7 @@ class Finance extends Basic
if ($this->params['is_self']) {
$where['b.operation_id'] = $this->userId;
} else {
$where[] = ['EXP', 'b.operation_id IS NULL OR b.operation_id <> '.$this->userId];
$where[] = ['EXP', 'a.id NOT IN (SELECT daily_id FROM o_daily_log WHERE operation_id ='.$this->userId.')'];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment