lvhao 3 months ago
parent
commit
369c217c96
1 changed files with 15 additions and 1 deletions
  1. 15 1
      core/CoreApp/controllers/Systembound.php

+ 15 - 1
core/CoreApp/controllers/Systembound.php

@@ -742,8 +742,22 @@ class Systembound extends Start_Controller {
 			$i = 0;$cpexcel = array();
             $title = date('Ymd',time())."惠程发货统计信息"; $td = '';
 			$td = "";
+			$count = 0;
 			foreach($ex_list as $v){
-				$td .= "<td>".$v['servicename']."</td><td></td>";
+			    $num = count($final_list[$v['id']]);
+			    if($num > $count){
+			        $count = $num;
+			    }
+				$td .= "<td>".$v['servicename']."</td><td>".$num."</td>";
+			}
+			foreach($final_list as $k=>$v){
+			    for($i=0;$i < $count ;$i++){
+			        if(!isset($final_list[$k][$i])){
+			            $final_list[$k][$i] = [
+			                    " "," "
+			                ];
+			        }
+			    }
 			}
             $titlename = "<table border=1>
             <tr>