|
@@ -206,6 +206,7 @@ class ProductionInformationStatistics extends Api
|
|
|
'rtrim(设备编组) as 机组',
|
|
'rtrim(设备编组) as 机组',
|
|
|
'rtrim(设备编号) as 机台编号',
|
|
'rtrim(设备编号) as 机台编号',
|
|
|
'rtrim(设备名称) as 机台名称',
|
|
'rtrim(设备名称) as 机台名称',
|
|
|
|
|
+ '平均车速',
|
|
|
])
|
|
])
|
|
|
->order('设备编组,设备编号')
|
|
->order('设备编组,设备编号')
|
|
|
->select();
|
|
->select();
|
|
@@ -218,12 +219,13 @@ class ProductionInformationStatistics extends Api
|
|
|
foreach ($equipments as $item) {
|
|
foreach ($equipments as $item) {
|
|
|
$code = $this->trimText($item['机台编号']);
|
|
$code = $this->trimText($item['机台编号']);
|
|
|
$list[] = [
|
|
$list[] = [
|
|
|
- '车间' => $this->trimText($item['车间']),
|
|
|
|
|
- '机组' => $this->trimText($item['机组']),
|
|
|
|
|
- '机台编号' => $code,
|
|
|
|
|
- '机台名称' => $this->trimText($item['机台名称']),
|
|
|
|
|
- '设备编号' => $code,
|
|
|
|
|
- '班组列表' => $this->defaultShifts,
|
|
|
|
|
|
|
+ '车间' => $this->trimText($item['车间']),
|
|
|
|
|
+ '机组' => $this->trimText($item['机组']),
|
|
|
|
|
+ '机台编号' => $code,
|
|
|
|
|
+ '机台名称' => $this->trimText($item['机台名称']),
|
|
|
|
|
+ '设备编号' => $code,
|
|
|
|
|
+ '理论速度' => (int)$this->formatNumber($item['平均车速']),
|
|
|
|
|
+ '班组列表' => $this->defaultShifts,
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
|
|
|