@@ -163,6 +163,10 @@ class InquiryModel extends Model
...
@@ -163,6 +163,10 @@ class InquiryModel extends Model
if($type==2){
if($type==2){
$list=$list->join('inquiry_items_assign as c','b.id','=','c.inquiry_items_id')->where('c.assign_uid',$user_id);
$list=$list->join('inquiry_items_assign as c','b.id','=','c.inquiry_items_id')->where('c.assign_uid',$user_id);
}elseif($type==3){
$list=$list->join('inquiry_items_assign as c','b.id','=','c.inquiry_items_id')
->where('c.assign_uid',$user_id)
->where('b.status',1);// 待报价
}
}
$list=$list->select(DB::Raw("lie_a.inquiry_sn,lie_a.currency,lie_a.status as status_a,lie_a.customer_name,lie_a.create_name,lie_a.create_time as inquiry_ctime,lie_b.*"))
$list=$list->select(DB::Raw("lie_a.inquiry_sn,lie_a.currency,lie_a.status as status_a,lie_a.customer_name,lie_a.create_name,lie_a.create_time as inquiry_ctime,lie_b.*"))