Преглед изворни кода

fix:运力实时调度列表查询bug

wangweiyu пре 4 година
родитељ
комит
d3efd7bc83
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/main/resources/mapper/TruckMapper.xml

+ 1 - 1
src/main/resources/mapper/TruckMapper.xml

@@ -143,7 +143,7 @@
             <when test="param != null and param.spotId != null">
                 tbl.queueNo is null, tbl.queueNo asc
             </when>
-            <when test="param != null and param.sortBy != null">
+            <when test="param != null and param.sortBy != null and param.sortBy != ''">
                 ${param.sortBy} ${param.sortType}
             </when>
             <otherwise>