wugg 2 years ago
parent
commit
eb022bc5be
3 changed files with 16 additions and 11 deletions
  1. 15 7
      app/admin/controller/Export.php
  2. 1 0
      app/command/Report.php
  3. 0 4
      app/command/handleCxData.php

+ 15 - 7
app/admin/controller/Export.php

@@ -244,16 +244,24 @@ class Export extends BaseController
             a.trade_out 付款银行单位名称,
             a.trade_used 付款备注,
             a.trade_time 交易时间,
-            a.tradNo 资金编号,a.status 状态,a.total_fee 收入金额,a.balance 未认领金额,b.total_fee 已认领金额,b.logNo 资金认领编号,
-            b.customerNo 认领企业,c.orderCode 订单编号,d.poCode 平台编号,d.goodName 产品名称,d.ownerName 资金创建人,c.apply_name 认领创建人,b.status 认领审批状态,b.remark 驳回原因')
+            a.tradNo 资金编号,
+            a.status 状态,
+            a.total_fee 收入金额,
+            a.balance 未认领金额,
+            b.total_fee 已认领金额,
+            b.logNo 资金认领编号,
+            b.customerNo 认领企业,
+            c.orderCode 订单编号,
+            d.cxCode 销售主单号,
+            d.poCode 平台编号,
+            d.goodName 产品名称,
+            d.ownerName 资金创建人,
+            c.apply_name 认领创建人,
+            b.status 认领审批状态,
+            b.remark 驳回原因')
             ->leftJoin('trade_pool b', 'b.tradNo=a.tradNo')
             ->leftJoin('assoc c', 'c.viceCode=b.logNo and c.type=2 and c.status<>3')
             ->leftJoin('qrd_info d', 'd.sequenceNo=c.orderCode')
-//            ->withAttr('状态', function ($val) use ($status) {
-//                return $status[$val] ?? '';
-//            })->withAttr('认领审批状态', function ($val) use ($b_status) {
-//                return $b_status[$val] ?? '';
-//            })
             ->where($where)
             ->order('a.trade_time desc')
            ->cursor();

+ 1 - 0
app/command/Report.php

@@ -281,6 +281,7 @@ class Report extends Command
 		          b.logNo 资金认领编号,
 		          b.customerNo 认领企业,
 		          c.orderCode 订单编号,
+		          d.cxCode 销售主单号,
 		          d.poCode 平台编号,
 		          d.goodName 产品名称,
 		          d.ownerName 资金创建人,

+ 0 - 4
app/command/handleCxData.php

@@ -139,8 +139,6 @@ class handleCxData extends command
 									          'inv_status'=>$data['total_price'] == 0 ? 3 : 1 ,//开票状态,,1未付,2部分,3完结
 									          'remark'=>"" ,//备注,
 									          'cxCode'=>$data['oldCode'] ?? "" ,//备注,
-									          'invtime'=>null ,
-									          'paytime'=>null ,
 									          'diff_weight'=>$data['diff_weight'] ,//工差重量,
 									          'diff_fee'=>$data['diff_fee'] ,//工差金额,
 									          'area'=>$data['customer_name'] ,//公司,
@@ -228,8 +226,6 @@ class handleCxData extends command
 							    'inv_status'=>$data['total_price'] == 0 ? 3 : 1 ,//开票状态,,1未付,2部分,3完结
 							    'remark'=>"" ,//备注,
 							    'cxCode'=>$data['oldCode'] ?? "" ,//备注,
-							    'invtime'=>null ,
-							    'paytime'=>null ,
 							    'diff_weight'=>$data['diff_weight'] ,//工差重量,
 							    'diff_fee'=>$data['diff_fee'] ,//工差金额,
 							    'area'=>$data['customer_name'] ,//公司,