作者 王智

baoxiu22

@@ -84,8 +84,8 @@ class Dashboard extends Backend @@ -84,8 +84,8 @@ class Dashboard extends Backend
84 $BaoXiuZhandian = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->select(); 84 $BaoXiuZhandian = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->select();
85 $BaoxiuWancheng = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->where('type', 2)->select(); 85 $BaoxiuWancheng = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->where('type', 2)->select();
86 $BaoxiuWeiWancheng = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->where('type', 1)->select(); 86 $BaoxiuWeiWancheng = Db::name('baoxiudan')->where('zhandian_id', $v['id'])->where($map)->where('type', 1)->select();
87 - $Round = round(count($BaoxiuWancheng) / count($BaoxiuArr) * 100, 2);  
88 - $WRound = round(count($BaoxiuWeiWancheng) / count($BaoxiuArr) * 100, 2); 87 + $Round = round(count($BaoxiuWancheng) / count($BaoXiuZhandian) * 100, 2);
  88 + $WRound = round(count($BaoxiuWeiWancheng) / count($BaoXiuZhandian) * 100, 2);
89 if (empty($BaoXiuZhandian)) { 89 if (empty($BaoXiuZhandian)) {
90 $data[$k]['baoxiu_num'] = 0; 90 $data[$k]['baoxiu_num'] = 0;
91 $data[$k]['BaoXiuStr'] = ''; 91 $data[$k]['BaoXiuStr'] = '';