chuweiqiang 1 年之前
父节点
当前提交
ca29d11a6c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/data/model/DataRecruitment.php

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

@@ -26,7 +26,7 @@ class DataRecruitment extends Model
         return format_datetime($value);
     }
     public function getSalaryStartAttr($_,$model){
-        if ($model['salary_start']>1000){
+        if ($model['salary_start']>=1000){
             return ($model['salary_start']/1000).'K';
         }else{
             return $model['salary_start'];
@@ -34,7 +34,7 @@ class DataRecruitment extends Model
 
     }
     public function getSalaryEndAttr($_,$model){
-        if ($model['salary_end']>1000){
+        if ($model['salary_end']>=1000){
             return ($model['salary_end']/1000).'K';
         }else{
             return $model['salary_end'];