|
|
@@ -23,6 +23,8 @@ class Workshopshow extends Start_Controller
|
|
|
$this->_bbCount();
|
|
|
}elseif($arg == 'cjzk'){
|
|
|
$this->_cjzk();
|
|
|
+ }elseif($arg == 'mgbhorders'){
|
|
|
+ $this->_mgbhorders();
|
|
|
}else {
|
|
|
$this->_index();
|
|
|
}
|
|
|
@@ -217,4 +219,22 @@ class Workshopshow extends Start_Controller
|
|
|
$r = $this->db->get($table_name)->row_array();
|
|
|
return $r;
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ //美国备货的订单列表
|
|
|
+ private function _mgbhorders(){
|
|
|
+ $month_one = date("Y-m-d", strtotime("-2 month"));
|
|
|
+
|
|
|
+ $this->db->where("time >",strtotime($month_one));
|
|
|
+ $this->db->where("extra_type",1);//美国销售
|
|
|
+ $this->db->order_by('id','desc');
|
|
|
+ $list = $this->db->get('systemtransfer')->result_array();
|
|
|
+ echo "<pre>";
|
|
|
+ print_r($list);
|
|
|
+ die;
|
|
|
+ }
|
|
|
+ //美国备货的各车间在产数量
|
|
|
+ private function _mgbhgcjnum(){
|
|
|
+
|
|
|
+ }
|
|
|
}
|