Browse Source

优化累计进馆人数

master
wanghongjun 3 years ago
parent
commit
e9287570d5
  1. 4
      source/application/common/logic/PassFlow.php

4
source/application/common/logic/PassFlow.php

@ -440,6 +440,8 @@ class PassFlow
$sum_year_incount += $museum_year_incount; $sum_year_incount += $museum_year_incount;
# 文化馆 # 文化馆
$res = $dm->find('bt_library',['group_id' => 'BAF055']);
$culture_today_count = isset($res['today_incount']) ? $res['today_incount'] : 0;
# 累计进馆人数 # 累计进馆人数
$sumAllWhere = ' "granularity" = ' . "'yearly'" . ' and "date" = ' . "'year' " . ' and "groupId"='."'510'"; $sumAllWhere = ' "granularity" = ' . "'yearly'" . ' and "date" = ' . "'year' " . ' and "groupId"='."'510'";
@ -470,7 +472,7 @@ class PassFlow
], ],
[ [
'groupName' => '文化馆', 'groupName' => '文化馆',
'incount' => 0 'incount' => $culture_today_count
], ],
] ]
]; ];

Loading…
Cancel
Save