cqpCow 1 년 전
부모
커밋
e955d95cf8
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/Service/ConstructionService.php

+ 3 - 0
app/Service/ConstructionService.php

@@ -283,6 +283,9 @@ class ConstructionService extends Service
             $address = $tmp;
         }
         $construction['address'] = $address;
+        $start_time = $construction['start_time'] ? date("Y-m-d H:i",$construction['start_time']) : '';
+        $end_time = $construction['end_time'] ? date("Y-m-d H:i",$construction['end_time']) : '';
+        $construction['construction_period'] = $start_time . '——' . $end_time;
         $sales = SalesOrder::where('id',$construction['sales_order_id'])->value('order_number');
         $construction['sales_order_number'] = $sales;
         $customer_title = Customer::where('id',$construction['customer_id'])->value('title');