tongshanglei 2 yıl önce
ebeveyn
işleme
491d41d868
1 değiştirilmiş dosya ile 10 ekleme ve 0 silme
  1. 10 0
      catch/device/controller/Station.php

+ 10 - 0
catch/device/controller/Station.php

@@ -112,6 +112,16 @@ class Station extends CatchController
         $cond['page']=isset($param['page'])?$param['page']:1;
         $cond['limit']=isset($param['limit'])?$param['limit']:10;
         $rows=queryOracleSelect('DSSC2.W_DW_RF_RECORD',$cond,'a.RF_FLAGID,a.RF_STAT,to_char(a.RF_DATE,\'yyyy-mm-dd hh24:mi:ss\') RF_DATE');
+        foreach($rows as &$val){
+            //状态: 0- 未知,1 - 进入,2 - 离开
+            if($val['RF_STAT']==1){
+                $val['RF_STAT_TEXT']='进入';
+            }elseif($val['RF_STAT']==2){
+                $val['RF_STAT_TEXT']='离开';
+            }else{
+                $val['RF_STAT_TEXT']='未知';
+            }
+        }
         $response=[
             'code'=>10000,
             'message'=>'查询成功',