소스 검색

提交工厂数据

lvhao 2 일 전
부모
커밋
6434c7d894
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      core/CoreApp/controllers/Whlabel_bh.php

+ 6 - 1
core/CoreApp/controllers/Whlabel_bh.php

@@ -2090,7 +2090,12 @@ class Whlabel_bh extends Start_Controller {
 			$total_num += $v['bhnum'];
 		}
 		$wbids = array_values($orderinfo_list);
-		$over_num = $this->whlabel_bh_transfer->find_count(" status = 2 and wbid in (".implode(",",$wbids).")");
+		if(empty($wbids)){
+			$over_num = 0;
+		}else{
+			$over_num = $this->whlabel_bh_transfer->find_count(" status = 2 and wbid in (".implode(",",$wbids).")");
+		}
+		
 
 		$this->data['total_num'] = $total_num;
 		$this->data['wwcsl'] = $total_num - $over_num;