tongshanglei преди 2 години
родител
ревизия
23c7f860ae
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      catch/device/controller/Station.php
  2. 1 1
      catch/device/controller/Station_oracle.php

+ 1 - 1
catch/device/controller/Station.php

@@ -106,7 +106,7 @@ class Station extends CatchController
         $cond['page']=isset($params['page'])?$params['page']:1;
         $cond['limit']=isset($params['limit'])?$params['limit']:10;
         
-        $rows=queryOracleSelect('(SELECT * FROM DSSC2.W_DW_RF_RECORD  ORDER BY ID DESC) a',$cond,'a.RF_FLAGID,a.RF_STAT,to_char(a.RF_DATE,\'yyyy-mm-dd hh24:mi:ss\') RF_DATE');
+        $rows=queryOracleSelect('(SELECT * FROM DSSC2.W_DW_RF_RECORD  ORDER BY RF_DATE DESC) a',$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){

+ 1 - 1
catch/device/controller/Station_oracle.php

@@ -332,7 +332,7 @@ class Station extends CatchController
         $cond['page']=isset($param['page'])?$param['page']:1;
         $cond['limit']=isset($param['limit'])?$param['limit']:10;
         
-        $rows=queryOracleSelect('(SELECT * FROM DSSC2.W_DW_RF_RECORD  ORDER BY ID DESC) a',$cond,'a.RF_FLAGID,a.RF_STAT,to_char(a.RF_DATE,\'yyyy-mm-dd hh24:mi:ss\') RF_DATE');
+        $rows=queryOracleSelect('(SELECT * FROM DSSC2.W_DW_RF_RECORD  ORDER BY RF_DATE DESC) a',$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){