Browse Source

提交amz的超时监听

lvhao 3 months ago
parent
commit
de1cdf1cf3
2 changed files with 8 additions and 0 deletions
  1. 4 0
      core/CoreApp/controllers/Fullorderamz.php
  2. 4 0
      template/erp/fullorderamz.html

+ 4 - 0
core/CoreApp/controllers/Fullorderamz.php

@@ -40,6 +40,8 @@ class Fullorderamz extends Start_Controller {
 		$this->load->_model('Model_power','power');
 		$this->load->_model('Model_power','power');
 		$this->load->_model('Model_fullorderamzhb','fullorderamzhb');
 		$this->load->_model('Model_fullorderamzhb','fullorderamzhb');
 		$this->load->_model('Model_returngoods','returngoods');
 		$this->load->_model('Model_returngoods','returngoods');
+		$this->load->_model("Model_fullordererrors","fullordererrors");
+		
 	}
 	}
 	//定义方法的调用规则 获取URI第二段值
 	//定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
     public function _remap($arg,$arg_array)
@@ -746,6 +748,8 @@ class Fullorderamz extends Start_Controller {
 		$yc = $this->fullorderamz->find_count("library = 2 and state = 214 and (".rtrim($fgshop,'or').")");
 		$yc = $this->fullorderamz->find_count("library = 2 and state = 214 and (".rtrim($fgshop,'or').")");
 		$this->data['yc'] = $yc;
 		$this->data['yc'] = $yc;
 		$this->data['power'] = $vip;
 		$this->data['power'] = $vip;
+		$cs_num = $this->fullordererrors->find_count( " plat = 'fullorderamz' and error_type = 1 and (".rtrim($fgshop,'or'). " ) and error_time > '".(time()-90*24*3600)."'");
+		$this->data['cs_num'] = $cs_num;
 		$this->_Template('fullorderamz',$this->data);
 		$this->_Template('fullorderamz',$this->data);
 	}
 	}
 	
 	

+ 4 - 0
template/erp/fullorderamz.html

@@ -136,6 +136,10 @@
 {if $yc > 0}
 {if $yc > 0}
 <a href="/fullorderamz/yc/" style="background-color:#F00">异常取消订单({$yc})</a>
 <a href="/fullorderamz/yc/" style="background-color:#F00">异常取消订单({$yc})</a>
 {/if}
 {/if}
+
+{if $cs_num > 0}
+<a href="/fullordererror/outtime?plat=fullorderamz" style="background-color:#33CCFF">超时打印订单({$cs_num })</a>
+{/if}
 <a href="javascript:void(0);" class="dcdxyz">导出多运单号订单</a>
 <a href="javascript:void(0);" class="dcdxyz">导出多运单号订单</a>
 <a href="javascript:void(0);" class="thxz">导出退货订单</a>
 <a href="javascript:void(0);" class="thxz">导出退货订单</a>
 <a href="javascript:void(0);" class="pljzzd">批量禁止占单</a>
 <a href="javascript:void(0);" class="pljzzd">批量禁止占单</a>