Commit d1a795a1 by huangchengyi

更新导出

parent 5a809dba
...@@ -137,6 +137,43 @@ class HandleController extends Controller ...@@ -137,6 +137,43 @@ class HandleController extends Controller
} }
private function e(){ private function e(){
// $d = (new ExportModel())->GoodsComListExport([ "goods_status"=>"1",
// "_url"=>"/api/ApiGoodsComListExport",
// "supplier_com_code"=>"L0000135",
// "is_scroll"=> 1]);
// print_r($d);
// die();
$data = [
"type"=> 2, # 类型 1:模板调用 2: api回调
"source_items_id"=>5, #来源明细id,必填
"file_name"=> "联营列表导出",
"excel_suf" => "csv", #导出文件格式 csv,xls
"header"=> [ #导出头部
"商品ID","SKU型号","商品类别","供应商","制造商","渠道标签","内部编号","库存","状态","是否过期","更新时间"
],
"query_param"=>[ "goods_status"=>"1",
"_url"=>"/api/ApiGoodsComListExport",
"supplier_com_code"=>"L0000135",
"is_scroll"=> 1], #查询参数
"callbackurl"=> "http://yunxin.liexin.com/server/goodsComList", #rpc回调网址
"callbackfuc"=>"goodsComListServer", #rpc回调函数
"create_uid"=> 0, #创建人id
"create_uid2"=> 1, #前台创建人id
"create_name"=>111
];
$client = new \Hprose\Http\Client("http://yunxin.liexin.com/server/goodsComList",false);
$d = $client->goodsComListServer(\GuzzleHttp\json_encode([ "goods_status"=>"1",
"_url"=>"/api/ApiGoodsComListExport",
"supplier_com_code"=>"L0000135",
"is_scroll"=> 1]));
print_r($d);
die();
$input['picking_type'] = 2; $input['picking_type'] = 2;
$input['create_uid2'] = 6; $input['create_uid2'] = 6;
$client = new \Hprose\Http\Client("http://szyunxin.ichunt.com/server/putawayList",false); $client = new \Hprose\Http\Client("http://szyunxin.ichunt.com/server/putawayList",false);
...@@ -166,26 +203,7 @@ class HandleController extends Controller ...@@ -166,26 +203,7 @@ class HandleController extends Controller
// $s = ExportModel::ApiAbnormalListExport($input); // $s = ExportModel::ApiAbnormalListExport($input);
// print_r($s); // print_r($s);
// die(); // die();
$data = [
"type"=> 2, # 类型 1:模板调用 2: api回调
"source_items_id"=>5, #来源明细id,必填
"file_name"=> "联营列表导出",
"excel_suf" => "csv", #导出文件格式 csv,xls
"header"=> [ #导出头部
"商品ID","SKU型号","商品类别","供应商","制造商","渠道标签","内部编号","库存","状态","是否过期","更新时间"
],
"query_param"=>$input, #查询参数
"callbackurl"=> "http://yunxin.liexin.com/server/goodsComList", #rpc回调网址
"callbackfuc"=>"goodsComListServer", #rpc回调函数
"create_uid"=> 0, #创建人id
"create_uid2"=> 1, #前台创建人id
"create_name"=>111
];
$client = new \Hprose\Http\Client("http://yunxin.liexin.com/server/goodsComList",false);
$d = $client->goodsComListServer(\GuzzleHttp\json_encode($input));
print_r($d);
die();
#导出异常列表 #导出异常列表
// $input['is_consign'] = 1; //供应商代发 // $input['is_consign'] = 1; //供应商代发
$input['create_uid2'] = 1; //用户id $input['create_uid2'] = 1; //用户id
......
...@@ -59,7 +59,7 @@ class ExportModel ...@@ -59,7 +59,7 @@ class ExportModel
$ServerMicModel = new ServerMicModel(); $ServerMicModel = new ServerMicModel();
$s = [ $s = [
'is_scroll'=>$query['is_scroll'], //游标 'is_scroll'=>$query['is_scroll'], //游标
'offset'=>$query['limit'], 'offset'=>@$query['limit'] ? $query['limit'] : 100,
'supplier_id'=>17, 'supplier_id'=>17,
'canal/condition'=>$query['supplier_com_code'], 'canal/condition'=>$query['supplier_com_code'],
]; ];
......
...@@ -119,7 +119,8 @@ ...@@ -119,7 +119,8 @@
</p> </p>
<p> <p>
<span>©2019 深圳市猎芯科技有限公司 ALL RIGHTS RESERVED</span> <span>©2019 深圳市猎芯科技有限公司 ALL RIGHTS RESERVED</span>
<span>粤ICP备17064931号</span>
<a rel="nofollow" target="_blank" href="http://www.beian.miit.gov.cn"><span>粤ICP备17064931号</span></a>
<span>增值电信业务经营许可证:粤B2-20160350</span> <span>增值电信业务经营许可证:粤B2-20160350</span>
</p> </p>
<ul class="clr"> <ul class="clr">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment