Commit 9e9f2286 authored by hujun's avatar hujun

error

parent 902a33d7
...@@ -352,7 +352,7 @@ class OfficeOMarchInModel extends Model ...@@ -352,7 +352,7 @@ class OfficeOMarchInModel extends Model
->join('o_report d', 'a.report_id = d.id', 'left') ->join('o_report d', 'a.report_id = d.id', 'left')
->join('a_store e', 'd.report_store_id = e.id', 'left') ->join('a_store e', 'd.report_store_id = e.id', 'left')
->join('office_g_room f', 'c.house_id = f.id', 'left') ->join('office_g_room f', 'c.house_id = f.id', 'left')
->join('office_g_building g', 'f.building = g.id', 'left') ->join('office_g_building g', 'f.building_id = g.id', 'left')
->where($params) ->where($params)
->order($order_) ->order($order_)
->limit($pageSize) ->limit($pageSize)
...@@ -362,22 +362,23 @@ class OfficeOMarchInModel extends Model ...@@ -362,22 +362,23 @@ class OfficeOMarchInModel extends Model
return $result; return $result;
} }
/**
* @param $field
* @param string $params
* @return int|string
*/
public function findmarchInListCount($field, $params = '') public function findmarchInListCount($field, $params = '')
{ {
return $this->field($field)
$result = $this
->field($field)
->alias('a') ->alias('a')
->join('a_agents b', 'a.reception_id = b.id', 'left') ->join('a_agents b', 'a.reception_id = b.id', 'left')
->join('o_order c', 'a.order_id = c.id', 'left') ->join('o_order c', 'a.order_id = c.id', 'left')
->join('o_report d', 'a.report_id = d.id', 'left') ->join('o_report d', 'a.report_id = d.id', 'left')
->join('a_store e', 'd.report_store_id = e.id', 'left') ->join('a_store e', 'd.report_store_id = e.id', 'left')
->join('office_g_room f', 'c.house_id = f.id', 'left') ->join('office_g_room f', 'c.house_id = f.id', 'left')
->join('office_g_building g', 'f.building = g.id', 'left') ->join('office_g_building g', 'f.building_id = g.id', 'left')
->where($params) ->where($params)
->count(); ->count();
return $result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment