@@ -77,10 +77,10 @@ public function getList(array $param)
$list=[];
DB::enableQueryLog();
$note_monitor=DB::table('covenant_receive_payment AS rp')
$note_monitor=DB::table('lawyer as l')
->select(DB::raw('rp.lawyer_id,rp.year,l.number as lnumber,l.name as lname,l.commission_rate,sum(invoiced_money) as invoiced_money,sum(received_amount) as received_amount'))
//->select(['rp.*', 'l.name as lname', 'l.number as lnumber', 'l.commission_rate'])
->leftJoin('lawyer as l','rp.lawyer_id','=','l.id')
->leftJoin('covenant_receive_payment AS rp','rp.lawyer_id','=','l.id')
@@ -106,10 +106,10 @@ public static function getTotalInfo($params, $received_at, $invoiced_at)
DB::enableQueryLog();
$list=[];
$note_monitor=DB::table('covenant_receive_payment AS rp')
$note_monitor=DB::table('lawyer as l')
->select(DB::raw('rp.lawyer_id,rp.year,l.number as lnumber,l.name as lname,l.commission_rate,sum(invoiced_money) as invoiced_money,sum(received_amount) as received_amount'))
//->select(['rp.*', 'l.name as lname', 'l.number as lnumber', 'l.commission_rate'])
->leftJoin('lawyer as l','rp.lawyer_id','=','l.id')
->leftJoin('covenant_receive_payment AS rp','rp.lawyer_id','=','l.id')