|
|
@@ -63,8 +63,8 @@ class Workshopshow extends Start_Controller
|
|
|
//在产未交公
|
|
|
private function _zcwjg(){
|
|
|
$month_one = date("Y-m-d", strtotime("-1 month"));
|
|
|
- $this->db->where("time >",$month_one);
|
|
|
- $this->db->not_like('rk', '11|','before');
|
|
|
+ $this->db->where("time >",strtotime($month_one));
|
|
|
+ $this->db->not_like('rk', '|11|','before');
|
|
|
$this->db->where("ycrk_type",0);
|
|
|
$num = $this->db->count_all_results('systemtransfer');
|
|
|
return empty($num) ? 0 : $num;
|
|
|
@@ -72,7 +72,7 @@ class Workshopshow extends Start_Controller
|
|
|
//未生产单
|
|
|
private function _wsc(){
|
|
|
$month_one = date("Y-m-d", strtotime("-1 month"));
|
|
|
- $this->db->where("printtime >",$month_one);
|
|
|
+ $this->db->where("printtime >",strtotime($month_one));
|
|
|
$this->db->where("rk","|12|");
|
|
|
$this->db->where("ck","|12|");
|
|
|
$this->db->where("ycrk_type",0);
|
|
|
@@ -82,7 +82,7 @@ class Workshopshow extends Start_Controller
|
|
|
//已超时
|
|
|
private function _tjycs(){
|
|
|
$month_one = date("Y-m-d", strtotime("-1 month"));
|
|
|
- $this->db->where("time >",$month_one);
|
|
|
+ $this->db->where("time >",strtotime($month_one));
|
|
|
$this->db->where("type",1);
|
|
|
$this->db->where("ycrk_type",0);
|
|
|
$this->db->where("orver_flag",2);
|
|
|
@@ -93,7 +93,7 @@ class Workshopshow extends Start_Controller
|
|
|
//下道工序及未及时入库
|
|
|
private function _xdgxwjs(){
|
|
|
$month_one = date("Y-m-d", strtotime("-1 month"));
|
|
|
- $this->db->where("time >",$month_one);
|
|
|
+ $this->db->where("time >",strtotime($month_one));
|
|
|
$this->db->where_in('extra_status',[1,2]);
|
|
|
$this->db->where("ycrk_type",0);
|
|
|
$num = $this->db->count_all_results('systemtransfer_cr');
|
|
|
@@ -102,7 +102,7 @@ class Workshopshow extends Start_Controller
|
|
|
// 工序流转超过3天
|
|
|
private function _gxlz3(){
|
|
|
$month_one = date("Y-m-d", strtotime("-1 month"));
|
|
|
- $this->db->where("time >",$month_one);
|
|
|
+ $this->db->where("time >",strtotime($month_one));
|
|
|
$this->db->where("ycrk_type",0);
|
|
|
$this->db->where_in('extra_status',[2,3]);
|
|
|
$num = $this->db->count_all_results('systemtransfer_cr');
|