cqp пре 5 дана
родитељ
комит
aa2a873fd4
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5 5
      app/Service/U8ThirdPartyService.php

+ 5 - 5
app/Service/U8ThirdPartyService.php

@@ -535,15 +535,15 @@ class U8ThirdPartyService extends Service
 //           $return = $this->formatAndValidateDate($value['productDate']);
 //           if(! $return) return [false, '生产日期格式错误'];
 //           $productDate = $return;
-//           if(empty($value['failureDate'])) return [false, '失效日期不能为空'];
-//           $return = $this->formatAndValidateDate($value['failureDate']);
-//           if(! $return) return [false, '生产日期格式错误'];
-//           $failureDate= $return;
+           if(empty($value['failureDate'])) return [false, '失效日期不能为空'];
+           $return = $this->formatAndValidateDate($value['failureDate']);
+           if(! $return) return [false, '失效日期格式错误'];
+           $failureDate= $return;
            if(empty($value['lot'])) return [false, '批号不能为空'];
            if(empty($value['iQuantity']) || ! is_numeric($value['iQuantity'])) return [false, '存货数量错误'];
            $detail_map[$value['materialCode']][] = [
 //               'productDate' => $productDate,
-//               'failureDate' => $failureDate,
+               'failureDate' => $failureDate,
                'lot' => $value['lot'],
                'iQuantity' => $value['iQuantity'],
            ];