|
@@ -42,10 +42,7 @@ class Listcustomer extends BaseController
|
|
|
$total = ceil($count/$size);
|
|
|
$page = $page >= $total ? $total : $page;
|
|
|
$item = Db::name('customer_info')->where($where)
|
|
|
- ->field("id,companyNO,companyName,parent,itemid,area,comdepart,commobile,comtel,contactor,depart,
|
|
|
- mobile,invoice_title,invoice_people,invoice_addr,invoice_mobile,invoice_code,invoice_bank,invoice_bankNo,
|
|
|
- companyCode,status,sales_name,sales_depart,branch,middle,country,is_del,creater,modifier,addtime,updatetime,
|
|
|
- LENGTH(companyName) as weight")->order("weight asc")->page($page,$size)->select();
|
|
|
+ ->field("*,LENGTH(companyName) as weight")->order("addtime desc")->page($page,$size)->select();
|
|
|
return app_show(0,"获取成功",['item'=>$item,'count'=>$count]);
|
|
|
}
|
|
|
}
|