chuweiqiang 1 년 전
부모
커밋
dd13d0a8c6
1개의 변경된 파일16개의 추가작업 그리고 16개의 파일을 삭제
  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');
     }