作者 lyh

gx

@@ -37,11 +37,7 @@ class VisitController extends BaseController @@ -37,11 +37,7 @@ class VisitController extends BaseController
37 ],[ 37 ],[
38 'id.required' => 'ID不能为空' 38 'id.required' => 'ID不能为空'
39 ]); 39 ]);
40 - $map = [  
41 - 'customer_visit_id' => $this->map['id'],  
42 - 'domain' => $this->user['domain'],  
43 - ];  
44 - $data = $logic->getItemList($map,$this->page,$this->row,$this->order); 40 + $data = $logic->getItemList();
45 return $this->response('success',Code::SUCCESS,$data); 41 return $this->response('success',Code::SUCCESS,$data);
46 } 42 }
47 43
@@ -29,9 +29,13 @@ class VisitLogic extends BaseLogic @@ -29,9 +29,13 @@ class VisitLogic extends BaseLogic
29 return $this->success($lists); 29 return $this->success($lists);
30 } 30 }
31 31
32 - public function getItemList(array $map = [], $page,$row,$order = 'id',$filed = ['*']){ 32 + public function getItemList($order = 'id',$filed = ['*']){
33 $this->model = new VisitItem(); 33 $this->model = new VisitItem();
34 - return $this->model->lists($map,$page,$row,$order,$filed); 34 + $map = [
  35 + 'customer_visit_id' => $this->param['id'],
  36 + 'domain' => $this->user['domain'],
  37 + ];
  38 + return $this->model->lists($map,$order,$filed);
35 } 39 }
36 40
37 } 41 }