|
@@ -407,11 +407,12 @@ class FyySqlServerService extends Service
|
|
|
"crdcode"=>'',
|
|
|
"cmemo"=> '',
|
|
|
"cdefine10" => $main_tmp['customer_name'], //客户名称
|
|
|
- "bodys"=>$bodys_tmp
|
|
|
+ "bodys"=>$bodys_tmp,
|
|
|
]
|
|
|
];
|
|
|
|
|
|
$return = $this->post_helper($this->url,json_encode($post_tmp), ['Content-Type:application/json']);
|
|
|
+ file_put_contents('record.txt',json_encode($new). PHP_EOL .json_encode($post_tmp) . PHP_EOL,8);
|
|
|
|
|
|
if(empty($return)) return [false, '异常错误,请确认请求接口地址!'];
|
|
|
if(! $return['flag']) return [false,$return['msg']];
|
|
@@ -524,7 +525,7 @@ class FyySqlServerService extends Service
|
|
|
->where('a.cSOcode',$order_number)
|
|
|
->whereNotNull('a.cVerifier')
|
|
|
->whereColumn('b.iQuantity', '>', 'b.fOutQuantity')
|
|
|
- ->select('a.DLID as id','a.cDefine10 as customer_name','a.cSOCode','a.cDepCode as cdepcode','b.iDLsID as idlsid','b.cWhCode as cwhcode','b.cInvCode as cinvcode','b.cInvName as product_title','b.cFree1 as cfree1','b.cFree2 as cfree2','b.cPosition as cposition','b.cBatch as cbatch','b.iQuantity as iquantity','b.iNum as inum','b.iInvExchRate as iinvexchrate','b.fOutQuantity as out_quantity','b.iUnitPrice as iunitcost','b.iMoney as imoney')
|
|
|
+ ->select('a.DLID as id','a.cDefine10 as customer_name','a.cSOCode','a.cDepCode as cdepcode','a.cCusCode as cuscode','b.iDLsID as idlsid','b.cWhCode as cwhcode','b.cInvCode as cinvcode','b.cInvName as product_title','b.cFree1 as cfree1','b.cFree2 as cfree2','b.cPosition as cposition','b.cBatch as cbatch','b.iQuantity as iquantity','b.iNum as inum','b.iInvExchRate as iinvexchrate','b.fOutQuantity as out_quantity','b.iUnitPrice as iunitcost','b.iMoney as imoney')
|
|
|
->get()->toArray();
|
|
|
if(! empty($message)){
|
|
|
foreach ($message as $key => $value){
|