v.2.30
Добавлен расширенный отчет по реализации Добавлен монитор активности
This commit is contained in:
@@ -10,13 +10,13 @@ class Staff extends Model
|
||||
|
||||
public static function getName($data)
|
||||
{
|
||||
$staff_name = Staff::where('code', intval($data))
|
||||
$staff_name = self::where('code', intval($data))
|
||||
->where('is_history', 0)
|
||||
->first();
|
||||
if ($staff_name) {
|
||||
$staff_name = $staff_name['name'];
|
||||
} else {
|
||||
$staff_name = Staff::where('code', intval($data))
|
||||
$staff_name = self::where('code', intval($data))
|
||||
->where('is_history', 1)
|
||||
->first();
|
||||
if ($staff_name) {
|
||||
|
||||
Reference in New Issue
Block a user