...
|
...
|
@@ -84,8 +84,6 @@ class Dashboard extends Backend |
|
|
$BaoXiuZhandian = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->select();
|
|
|
$BaoxiuWancheng = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->where('type', 2)->select();
|
|
|
$BaoxiuWeiWancheng = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->where('type', 1)->select();
|
|
|
$Round = round(count($BaoxiuWancheng) / count($BaoXiuZhandian) * 100, 2);
|
|
|
$WRound = round(count($BaoxiuWeiWancheng) / count($BaoXiuZhandian) * 100, 2);
|
|
|
if (empty($BaoXiuZhandian)) {
|
|
|
$data[$k]['baoxiu_num'] = 0;
|
|
|
$data[$k]['BaoXiuStr'] = '';
|
...
|
...
|
@@ -97,6 +95,8 @@ class Dashboard extends Backend |
|
|
foreach ($BaoXiuZhandian as $k1 => $v1) {
|
|
|
$StrArr[$k1] = $v1['colum'];
|
|
|
}
|
|
|
$Round = round(count($BaoxiuWancheng) / count($BaoXiuZhandian) * 100, 2);
|
|
|
$WRound = round(count($BaoxiuWeiWancheng) / count($BaoXiuZhandian) * 100, 2);
|
|
|
$data[$k]['BaoXiuStr'] = implode($StrArr, ',');
|
|
|
$data[$k]['Round'] = $Round . '%';
|
|
|
$data[$k]['WRound'] = $WRound . '%';
|
...
|
...
|
|