main
parent
ee5f5a3f3c
commit
5a19d822d9
|
|
@ -136,12 +136,12 @@ class DeviceWarningService
|
|||
if(strpos($column, ',')){//看是否是并联条件
|
||||
$_columns = explode(',',$column);
|
||||
foreach($_columns as $cc){
|
||||
$msg.= $fieldNameMap[$cc].'达到'.$log->$cc.$fieldUnitMap[$cc].'值,且';
|
||||
$msg.= $fieldNameMap[$cc].'达到'.($log->$cc ?? 0).$fieldUnitMap[$cc].'值,且';
|
||||
}
|
||||
|
||||
$msg = mb_substr($msg, 0, -2);
|
||||
}else{
|
||||
$msg = $fieldNameMap[$column].'达到'.$log->$column.$fieldUnitMap[$column].'值';
|
||||
$msg = $fieldNameMap[$column].'达到'.($log->$column ?? 0).$fieldUnitMap[$column].'值';
|
||||
}
|
||||
|
||||
$notices[] = [
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 15 MiB |
|
Before Width: | Height: | Size: 8.8 MiB After Width: | Height: | Size: 8.8 MiB |
Loading…
Reference in New Issue