Commit 21806417 authored by hujun's avatar hujun

去除删除状态记录

parent 91a3a37b
...@@ -314,9 +314,8 @@ class OPartialCommission extends BaseModel ...@@ -314,9 +314,8 @@ class OPartialCommission extends BaseModel
$data = $this->field('confirm_status') $data = $this->field('confirm_status')
->alias('a') ->alias('a')
->join('o_bargain b', 'a.bargain_id = b.id', 'left') ->join('o_bargain b', 'a.bargain_id = b.id', 'left')
->where('b.id', $bargain_id) ->where('EXP', 'a.id ='.$bargain_id . ' or b.father_id = '. $bargain_id)
->where('b.status', '<>', 30) ->where('b.status', '<>', 30)
->whereor('b.father_id', $bargain_id)
->where('a.is_del', 0) ->where('a.is_del', 0)
->select(); ->select();
......
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