longyi 5 月之前
父節點
當前提交
7013745de6

+ 6 - 6
core/CoreApp/controllers/Queueu9.php

@@ -104,7 +104,7 @@ class Queueu9 extends Start_Controller {
     
     public function _zt(){
         echo "<pre>";
-       
+        die;
         $classid = $this->classid->sku();
         $tcall = $this->typeclass->find_all();
         foreach ($tcall as $v)
@@ -115,11 +115,11 @@ class Queueu9 extends Start_Controller {
             
         //第一步生成 许昌成品库的调出单
         //$list =  $this->zzquque_u9->find_all("type = 1 and dc_status = 0 and cg_status = 0 and xs_status = 0 ",'*','id asc',0,1);
-        
-        // $list =  $this->zzquque_u9->find_all("type = 1 and order_no = 'ZT25Mar10135851bak' ",'*','id asc',0,1);
-        // foreach($list as $k=>$v){
-        //     $this->logic_u9zt->createdDc($v,$classid,$typeclass);
-        // }
+        //ZT250314172219
+        $list =  $this->zzquque_u9->find_all("order_no = 'ZT250314173250'  and cg_status = 0 and xs_status = 0 ",'*','id asc',0,1);
+        foreach($list as $k=>$v){
+            $this->logic_u9zt->createdDc($v,$classid,$typeclass);
+        }
 
         //第二步查询调出但状态
         // $list = $this->zzquque_u9->find_all("type = 1 and dc_status = 1 and cg_status = 0 and xs_status = 0 ",'*','id asc');

+ 2 - 1
core/CoreApp/models/Model_apiyyv1.php

@@ -332,7 +332,8 @@ class Model_apiyyv1 extends Lin_Model
 				]
 			];
 		}
-	
+		
+	   
 		$url = '/U9C/webapi/ControlObjSend/ControlObjSend';
 		$url = $this->base_url.$url;
 		$header[] = "Content-Type: application/json";

+ 3 - 4
core/CoreApp/models/Model_logic_u9zt.php

@@ -8,7 +8,7 @@ class Model_logic_u9zt extends Lin_Model {
     public $xgzzcode = '140';//香港组织公司编码
     public $xgzt_code = '14001';//香港在途库的编码  
     public $xgmc_code = '14002';//香港美仓的编码
-    public $ztcode = '9966';//账套的code;
+    public $ztcode = '001';//账套的code;
     public $tb_org_arr =[140];//同步组织
     public $gys = "98002";//供应商  98001  龙盈  98002  龙熠
     public $yyid = "98003";
@@ -108,7 +108,6 @@ class Model_logic_u9zt extends Lin_Model {
             'tb_org_arr'=>$this->tb_org_arr,//要同步的组织列表
             'list'=>$dc_list
         ];
-       
         $cxdcd_r = $this->apiyyv1->xcDcdByOtherId($dc_params['number'],$this->getToken(130));
         $ret_data = $cxdcd_r[0]['Data'];
         //调出单存在就不在执行了
@@ -128,7 +127,7 @@ class Model_logic_u9zt extends Lin_Model {
       }
        //创建调出单
        $dcd_res = $this->apiyyv1->dcdCrate($dc_params,$this->getToken(130));
-    
+       var_dump($dcd_res);
        if(empty($dcd_res[0]['Data'][0]["Code"])){
             $this->editData($info['id'],['dc_status'=>-1,'update_time'=>time()],$info['order_no'],1,1,'dc',$dcd_res[1],$dcd_res[0]);
             return ;
@@ -427,6 +426,7 @@ class Model_logic_u9zt extends Lin_Model {
                 $unregister_goods[] = $v;
             }
         }
+        
        
         if(empty($unregister_goods)){
             return $this->logic_tools->ret_arr(1,"料品无异常");
@@ -440,7 +440,6 @@ class Model_logic_u9zt extends Lin_Model {
     public function tbXgLp($tb_info){
        
         $rr = $this->apiyyv1->tbLp($tb_info,$this->getToken(130));
-        
         if($rr[0]['Success']){
             return $this->logic_tools->ret_arr(1,$rr);
         }else{