|
@@ -31,7 +31,6 @@ abstract class BaseDataBiServies
|
|
|
return $this->_getCommonWhere($params, $this->timeFieldName);
|
|
|
}
|
|
|
protected function _getCommonWhere($params, $timeName) {
|
|
|
- var_dump($params);
|
|
|
$where = false;
|
|
|
$ORGNAME = $params['ORGNAME'] ?? false;
|
|
|
$start = $params['start'] ?? false;
|
|
@@ -56,7 +55,6 @@ abstract class BaseDataBiServies
|
|
|
$where = [$_where];
|
|
|
}
|
|
|
}
|
|
|
- var_dump($where);die;
|
|
|
return $where;
|
|
|
}
|
|
|
|
|
@@ -236,14 +234,16 @@ abstract class BaseDataBiServies
|
|
|
* 单日新增 本月每日上传报告的患者数量,日历图
|
|
|
*/
|
|
|
public function _getMonthDayData($where = false) {
|
|
|
+ var_dump($where);
|
|
|
+ var_dump($this->timeFieldName);
|
|
|
$days = $this->baseModel
|
|
|
->field("count($this->countField) AS count, date_format($this->timeFieldName, '%Y%m%d') AS day")
|
|
|
->where($where)
|
|
|
->whereMonth($this->timeFieldName)
|
|
|
->group(date_format($this->timeFieldName, '%Y%m%d'))
|
|
|
->order(date_format($this->timeFieldName, '%Y%m%d'), 'asc')
|
|
|
- ->select()
|
|
|
- ->toArray();
|
|
|
+ ->buildSql();
|
|
|
+ var_dump($days);die;
|
|
|
return $days;
|
|
|
}
|
|
|
|