...
|
...
|
@@ -84,8 +84,8 @@ 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($BaoxiuArr) * 100, 2);
|
|
|
$WRound = round(count($BaoxiuWeiWancheng) / count($BaoxiuArr) * 100, 2);
|
|
|
$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'] = '';
|
...
|
...
|
|