林海涛 1 год назад
Родитель
Сommit
92fe746096

+ 1 - 1
app/workerapi/lists/shops/ShopOrderLists.php

@@ -28,7 +28,7 @@ class ShopOrderLists extends BaseWorkerDataLists
             }]);
         }])
             ->where($this->querySearch())
-            ->field('id, sn, pay_time, paw_way, pay_status, refund_status, create_time, amount_total, amount,shop_order_type')
+            ->field('id, sn, pay_time, paw_way, pay_status, refund_status, create_time, amount_total, order_amount,shop_order_type')
             ->append(['pay_way_text','pay_status_text','refund_status_text'])
             ->limit($this->limitOffset, $this->limitLength)
             ->order('id', 'desc')

+ 1 - 1
app/workerapi/logic/shops/ShopOrderLogic.php

@@ -33,7 +33,7 @@ class ShopOrderLogic extends BaseLogic
     {
         $detail = ShopOrders::with(['orderGoods'=>function(Query $query){
             $query->field(['sn','goods_name','goods_image','number','service_fee','company_name','delivery_type','shop_goods_type','goods_specs_inventory_id','specs_type','custom_attribute_items','specs'])->append(['spec_arr','delivery_type_text','shop_goods_type_text']);
-        }])->field('id, sn, real_name,mobile, address,pay_time, paw_way,pay_sn, pay_status, refund_status, refund_transaction_id,create_time,shop_order_type,amount_total, amount')
+        }])->field('id, sn, real_name,mobile, address,pay_time, paw_way,pay_sn, pay_status, refund_status, refund_transaction_id,create_time,shop_order_type,amount_total, order_amount')
         ->append(['pay_way_text','pay_status_text','refund_status_text'])->where(['sn'=> $params['sn'],'worker_id'=>$params['worker_id']])->findOrEmpty()->toArray();
         $orderGoodsArr = [];
         $companyNameArr = array_column($detail['orderGoods'],'company_name');