|
|
@@ -579,4 +579,20 @@ sql;
|
|
|
ValueStore::query()->where('name','last_order_sync_task_start_at')->update(['value' => '2021-10-12 06:23:37']);
|
|
|
ValueStore::query()->where('name','last_order_sync_task_end_at')->update(['value' => '2021-10-12 06:23:38']);
|
|
|
}
|
|
|
+
|
|
|
+ public function testLabor()
|
|
|
+ {
|
|
|
+ $laborReport=LaborReport::query()
|
|
|
+ ->where('created_at','like','2021-10-12%')
|
|
|
+ ->where('name','张诗颖')
|
|
|
+ ->first();
|
|
|
+
|
|
|
+ $laborReport->update(['check_in_at'=>'2021-10-12 09:30:00']);
|
|
|
+ LaborReportStatus::query()
|
|
|
+ ->where('labor_report_id',$laborReport->id)
|
|
|
+ ->where('status','未审核')
|
|
|
+ ->update(['created_at'=>'2021-10-12 09:30:00']);
|
|
|
+ dd('ok');
|
|
|
+
|
|
|
+ }
|
|
|
}
|