Explorar el Código

星科源 大版本修改

cqp hace 2 días
padre
commit
6363f10406
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Service/U8XkyServerService.php

+ 2 - 2
app/Service/U8XkyServerService.php

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