This commit is contained in:
lin fan
2024-11-22 17:03:58 +08:00
parent 797108edfb
commit 01d0907bfc
2 changed files with 4 additions and 0 deletions
@@ -30,6 +30,8 @@ class Receiver_score_avg_day_model extends HD_Model
$where = [];
$where['day'] = $day;
if ($type) {
$biz = (new Biz_model())->get(['id' => $biz_id]);
$where['province_id'] = $biz['province_id'];
$where['type'] = self::TYPE_BIZ;
} else {
$where['biz_id'] = $biz_id;
@@ -28,6 +28,8 @@ class Receiver_score_month_model extends HD_Model
$where['year'] = date('Y', strtotime($day));;
$where['month'] = date('m', strtotime($day));;
if ($type) {
$biz = (new Biz_model())->get(['id' => $biz_id]);
$where['province_id'] = $biz['province_id'];
$where['type'] = self::TYPE_BIZ;
} else {
$where['biz_id'] = $biz_id;