Эх сурвалжийг харах

星科源 大版本修改

cqp 3 сар өмнө
parent
commit
6363f10406

+ 2 - 2
app/Service/U8XkyServerService.php

@@ -977,7 +977,7 @@ class U8XkyServerService extends Service
             ->first();
         if(empty($customer)) return [false,'采购请购单不存在或已被删除'];
         $customer = $customer->toArray();
-        $customer['crt_name'] = DDEmployee::where('id',$customer['crt_id'])->value('name');
+        $customer['crt_name'] = DDEmployee::where('userid',$customer['crt_id'])->value('name');
         $customer['crt_time'] = $customer['crt_time'] ? date("Y-m-d H:i:s",$customer['crt_time']): '';
 
         $details = $this->getDetail($data['id']);
@@ -1346,7 +1346,7 @@ class U8XkyServerService extends Service
             ->first();
         if(empty($customer)) return [false,'采购订单不存在或已被删除'];
         $customer = $customer->toArray();
-        $customer['crt_name'] = DDEmployee::where('id',$customer['crt_id'])->value('name');
+        $customer['crt_name'] = DDEmployee::where('userid',$customer['crt_id'])->value('name');
         $customer['crt_time'] = $customer['crt_time'] ? date("Y-m-d H:i:s",$customer['crt_time']): '';
 
         $details = $this->getODetail($data['id']);