|
@@ -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;
|