changed logic for log info in laser
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 15s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Larastan / larastan (pull_request) Failing after 13m1s
Laravel Pint / pint (pull_request) Successful in 10m27s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 14s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 15s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Larastan / larastan (pull_request) Failing after 13m1s
Laravel Pint / pint (pull_request) Successful in 10m27s
This commit is contained in:
@@ -98,8 +98,10 @@ class SendLaserIdleHourReport extends Command
|
|||||||
// return (float) ($record->motor_marked_physical_count ?? 0);
|
// return (float) ($record->motor_marked_physical_count ?? 0);
|
||||||
// });
|
// });
|
||||||
|
|
||||||
$pumpCount = $machineRecords
|
$pumpRecords = $machineRecords
|
||||||
->where('pump_machine_name', $machineName)
|
->where('pump_machine_name', $machineName);
|
||||||
|
$pumpCount = $pumpRecords
|
||||||
|
// ->where('pump_machine_name', $machineName)
|
||||||
// ->where('pump_marked_status', 'Marked')
|
// ->where('pump_marked_status', 'Marked')
|
||||||
->sum(fn ($record) => (float) ($record->pump_marked_physical_count ?? 0));
|
->sum(fn ($record) => (float) ($record->pump_marked_physical_count ?? 0));
|
||||||
// ->filter(function ($record) {
|
// ->filter(function ($record) {
|
||||||
@@ -114,9 +116,9 @@ class SendLaserIdleHourReport extends Command
|
|||||||
'plant_id' => $plant->id,
|
'plant_id' => $plant->id,
|
||||||
'plant' => $plant->name,
|
'plant' => $plant->name,
|
||||||
'machine' => $machineName,
|
'machine' => $machineName,
|
||||||
'pump_rows' => $machineRecords->count(),
|
'pump_rows' => $pumpRecords->count(),
|
||||||
'pump_sum' => $pumpCount,
|
'pump_sum' => $pumpCount,
|
||||||
'pump_values' => $machineRecords
|
'pump_values' => $pumpRecords
|
||||||
->pluck('pump_marked_physical_count')
|
->pluck('pump_marked_physical_count')
|
||||||
->countBy()
|
->countBy()
|
||||||
->toArray(),
|
->toArray(),
|
||||||
|
|||||||
Reference in New Issue
Block a user