ShuanghongS 1 месяц назад
Родитель
Сommit
0fe27d86dc
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      service/report.class.php

+ 4 - 2
service/report.class.php

@@ -779,7 +779,7 @@ class report {
                     }
                 }
                 if(!empty($schedule_order_field)){
-                    $orderby = " order by \"".strtoupper($schedule_order_field)."\"";
+                    $orderby = " order by ".$schedule_order_field." ";
                 }
             } else {
                  //如果kln_report_schedule有值了。就直接这样查询  就页面而言不会进入这个分支
@@ -810,18 +810,20 @@ class report {
                 }
 
                 if(!empty($schedule_search["schedule_order_field"])){
-                    $orderby = " order by \"".strtoupper($schedule_search["schedule_order_field"])."\"";
+                    $orderby = " order by ".$schedule_search["schedule_order_field"]." ";
                 }
             }
 
             $count_sql = str_replace('<{klnOceanSearchKLN}>', $klnOceanSearchKLN, $count_sql);
             $count_sql = str_replace('<{ocItemSearchKLN}>', " ", $count_sql);
+            $count_sql = str_replace('<{ocItemSearchKLNSFS}>', " ", $count_sql);
             $count_sql = str_replace('<{vvSearchKLN}>', " ", $count_sql);
             $count_sql = str_replace('<{orderby}>', "", $count_sql);
             error_log($schedule_search['name'].": report_schedule_count, ".$count_sql);
 
             $report_sql = str_replace('<{klnOceanSearchKLN}>', $klnOceanSearchKLN, $report_sql);
             $report_sql = str_replace('<{ocItemSearchKLN}>', " ", $report_sql);
+            $report_sql = str_replace('<{ocItemSearchKLNSFS}>', " ", $report_sql);
             $report_sql = str_replace('<{CustomFiled}>', $CustomFiled, $report_sql);
             $report_sql = str_replace('<{vvSearchKLN}>', " ", $report_sql);
             $report_sql = str_replace('<{orderby}>', $orderby, $report_sql);