Browse Source

得润宝

cqp 1 day ago
parent
commit
2c16af6f13
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/Service/U8ServerService.php

+ 3 - 3
app/Service/U8ServerService.php

@@ -83,7 +83,7 @@ class U8ServerService extends Service
             ->leftJoin('Inventory as b', 'b.cInvCode', 'a.cInvCode')
             ->leftJoin('ComputationUnit as c', 'c.cComunitCode', 'b.cComUnitCode')
             ->where('a.ID', $order['id'])
-            ->select('b.cInvName as product_title','b.cInvCode as product_code','c.cComUnitName as unit_title',DB::raw("CONVERT(varchar(10), a.dRequirDate, 120) as need_arrived_date"),DB::raw('ROUND(a.fQuantity, 2) as quantity'))
+            ->select('b.cInvName as product_title','b.cInvCode as product_code','c.cComUnitName as unit_title',DB::raw("CONVERT(varchar(10), a.dRequirDate, 120) as need_arrived_date"),DB::raw('CONVERT(decimal(18,2), a.fQuantity) as quantity'))
             ->get();
         // 转为数组的数组
         $detail = array_map(function ($item) {
@@ -143,7 +143,7 @@ class U8ServerService extends Service
             ->leftJoin('Inventory as b', 'b.cInvCode', 'a.cInvCode')
             ->leftJoin('ComputationUnit as c', 'c.cComunitCode', 'b.cComUnitCode')
             ->where('a.POID', $order['id'])
-            ->select('b.cInvName as product_title','b.cInvCode as product_code','c.cComUnitName as unit_title',DB::raw('ROUND(a.iQuantity, 2) as quantity'),DB::raw('ROUND(a.iSum, 2) as amount'))
+            ->select('b.cInvName as product_title','b.cInvCode as product_code','c.cComUnitName as unit_title',DB::raw('CONVERT(decimal(18,2), a.iQuantity) as quantity'),DB::raw('CONVERT(decimal(18,2), a.iSum) as amount'))
             ->get();
         // 转为数组的数组
         $detail = array_map(function ($item) {
@@ -200,7 +200,7 @@ class U8ServerService extends Service
             ->leftJoin('Inventory as b', 'b.cInvCode', 'a.cInvCode')
             ->leftJoin('ComputationUnit as c', 'c.cComunitCode', 'b.cComUnitCode')
             ->where('a.PID', $order['id'])
-            ->select('a.cSource as source','a.cCoVouchID as source_order_number','b.cInvName as product_title',DB::raw('ROUND(a.iApplyAmt_s, 2) as number'), DB::raw('ROUND(a.iApplyAmt_f, 2) as amount'),'c.cComUnitName as unit_title')
+            ->select('a.cSource as source','a.cCoVouchID as source_order_number','b.cInvName as product_title','c.cComUnitName as unit_title',DB::raw('CONVERT(decimal(18,2), a.iApplyAmt_s) as number'),DB::raw('CONVERT(decimal(18,2), a.iApplyAmt_f) as amount'))
             ->get();
         // 转为数组的数组
         $detail = array_map(function ($item) {