diff --git a/app/Service/FeiePrintService.php b/app/Service/FeiePrintService.php index b822175..7bfb6f1 100644 --- a/app/Service/FeiePrintService.php +++ b/app/Service/FeiePrintService.php @@ -31,9 +31,10 @@ class FeiePrintService implements FeiePrintServiceInterface ->join('ims_cjdc_feprint as f','m.market_id','=', 'f.market_id','inner') ->join('ims_cjdc_store as s','s.id','=', 'o.store_id','inner') ->where('m.order_num', $order_num) - ->select("o.note as o_note,g.name,g.number,g.money,g.good_unit,m.delivery_time as ps_time,m.address,m.note,m.name as user_name,m.dada_fee,m.money as m_money,m.yhq_money2,m.box_money,f.sn,m.tel,m.order_num,g.id,g.spec,s.name as shopname") - ->order('s.id') - ->get(); + ->selectRaw("o.note as o_note,g.name,g.number,g.money,g.good_unit,m.delivery_time as ps_time,m.address,m.note,m.name as user_name,m.dada_fee,m.money as m_money,m.yhq_money2,m.box_money,f.sn,m.tel,m.order_num,g.id,g.spec,s.name as shopname") + ->orderBy('s.id') + ->get() + ->toArray(); $content = $this->printFormat($data, 14, 6, 3, 6); $res = $this->printMsg($data[0]['sn'], $content, 1);