瀏覽代碼

修改 恒成塑业 待加工单时间

cqp 1 年之前
父節點
當前提交
2cf63ac87e
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      app/Http/Controllers/Api/ScreenController.php

+ 1 - 3
app/Http/Controllers/Api/ScreenController.php

@@ -490,9 +490,7 @@ class ScreenController extends BaseController
      * @return array
      */
     public function nu_work_order(Request $request){
-        // 获取当前时间戳
-        $currentTimestamp = time();
-        $startOfDay = strtotime(date('Y-m-d 00:00:00', $currentTimestamp));
+        $startOfDay = strtotime(date('Y-m-d 00:00:00', strtotime("-20days")));
 
         $result = DispatchSub::where('del_time',0)
             ->where('dispatch_time_start',">=", $startOfDay)