|
|
@@ -23,7 +23,8 @@ class Model_logic_u9mgwx extends Lin_Model {
|
|
|
public function doaction(){
|
|
|
$this->_add_xsd();
|
|
|
sleep(2);
|
|
|
- $list = $this->zzquque_u9->find_all("( xs_status > 0 ) and ( bzch_status = 0 )");
|
|
|
+ $list = $this->zzquque_u9->find_all("( xs_status > 0 ) and (type = 22) and ( bzch_status = 0 )");
|
|
|
+
|
|
|
foreach($list as $k=>$v){
|
|
|
$this->_cx_xsdandbzch($v);
|
|
|
}
|
|
|
@@ -36,7 +37,8 @@ class Model_logic_u9mgwx extends Lin_Model {
|
|
|
)->from('whlabel_bh_scan')->group_by('orderinfo')->get();
|
|
|
$list= $list->result_array();
|
|
|
if(empty($list)){
|
|
|
- exit('没有需要处理的数据');
|
|
|
+ return ;
|
|
|
+ //exit('没有需要处理的数据');
|
|
|
}
|
|
|
echo "<pre>";
|
|
|
foreach($list as $k=>$v){
|
|
|
@@ -48,6 +50,7 @@ class Model_logic_u9mgwx extends Lin_Model {
|
|
|
$tmp_list = $this->db->get_where('whlabel_bh_scan', [
|
|
|
'orderinfo' => $info['orderinfo'],
|
|
|
'scantime >=' => $start_time,
|
|
|
+ 'status'=>0,
|
|
|
])->result_array();
|
|
|
$goods_list = [];
|
|
|
foreach($tmp_list as $k=>$v){
|