chuweiqiang 1 gadu atpakaļ
vecāks
revīzija
dd13d0a8c6
1 mainītis faili ar 16 papildinājumiem un 16 dzēšanām
  1. 16 16
      app/data/model/DataRecruitment.php

+ 16 - 16
app/data/model/DataRecruitment.php

@@ -25,22 +25,22 @@ class DataRecruitment extends Model
     {
         return format_datetime($value);
     }
-//    public function getSalaryStartAttr($_,$model){
-//        if ($model['salary_start']>1000){
-//            return ($model['salary_start']/1000).'K';
-//        }else{
-//            return $model['salary_start'];
-//        }
-//
-//    }
-//    public function getSalaryEndAttr($_,$model){
-//        if ($model['salary_end']>1000){
-//            return ($model['salary_end']/1000).'K';
-//        }else{
-//            return $model['salary_end'];
-//        }
-//
-//    }
+    public function getSalaryStartAttr($_,$model){
+        if ($model['salary_start']>1000){
+            return ($model['salary_start']/1000).'K';
+        }else{
+            return $model['salary_start'];
+        }
+
+    }
+    public function getSalaryEndAttr($_,$model){
+        if ($model['salary_end']>1000){
+            return ($model['salary_end']/1000).'K';
+        }else{
+            return $model['salary_end'];
+        }
+
+    }
     public function datauser(){
         return $this->belongsTo(SystemUser::class,'uid');
     }