|
@@ -887,11 +887,11 @@ class Report extends Command
|
|
|
}
|
|
|
}
|
|
|
//产品部门销售业绩
|
|
|
- public function Q($param=[]){
|
|
|
+ private function Q($param=[]){
|
|
|
$where = [["is_del","=",0],["status","in",[0,1,2]]];
|
|
|
if (($param['start'] != '') && ($param['end'] != '')) $where[] = ['addtime', 'between', [date("Y-m-d 00:00:00",strtotime($param['start'])),date("Y-m-d 23:59:59",
|
|
|
strtotime($param['end']))]];
|
|
|
- if ($param['companyNo'] != '') $where[] = ['supplierNo', '=', $param['companyNo']];
|
|
|
+// if ($param['companyNo'] != '') $where[] = ['supplierNo', '=', $param['companyNo']];
|
|
|
$Db= Db::connect("mysql_wsm");
|
|
|
$list =$Db->name("sale")->field("orderCode 销售单号,apply_name 业务人员,apply_id 业务部门,cat_id 分类,total_price 产品货款总额,addtime 日期")
|
|
|
->where($where)
|