作者 刘锟

update

@@ -31,6 +31,14 @@ class InquiryForwardController extends BaseController @@ -31,6 +31,14 @@ class InquiryForwardController extends BaseController
31 if (isset($this->param['message'])) { 31 if (isset($this->param['message'])) {
32 $this->map['message'] = ['like', '%' . $this->map['message'] . '%']; 32 $this->map['message'] = ['like', '%' . $this->map['message'] . '%'];
33 } 33 }
  34 + if (isset($this->param['start_time'])) {
  35 + $this->map['inquiry_date'] = ['>=', $this->map['start_time']];
  36 + unset($this->map['start_time']);
  37 + }
  38 + if (isset($this->param['end_time'])) {
  39 + $this->map['inquiry_date'] = ['<=', $this->map['end_time']];
  40 + unset($this->map['end_time']);
  41 + }
34 $lists = $inquiryForwardLogic->getInquiryLists($this->map, $this->page, $this->row, $this->order); 42 $lists = $inquiryForwardLogic->getInquiryLists($this->map, $this->page, $this->row, $this->order);
35 $this->response('success', Code::SUCCESS, $lists); 43 $this->response('success', Code::SUCCESS, $lists);
36 } 44 }