Browse Source

fix 修改没数据时row为null

Administrator 4 years ago
parent
commit
58dc143b97

+ 1 - 8
boman-web-core/src/main/java/com/boman/web/core/mapper/StandardlyMapper.java

@@ -608,14 +608,7 @@ public interface StandardlyMapper {
             wholeSql.append(" from ").append(tableName);
             // 条件
             packCondition(packCondition, wholeSql);
-            if (StringUtils.isNotBlank(orderBy)){
-                String[] s = orderBy.split(" ");
-                if (s.length > 2){
-                    wholeSql.append(" order by ").append(s[0]).append(" ").append(s[1]).append(" limit ").append(limit);
-                }else {
-                    wholeSql.append(" order by ").append(orderBy).append(" limit ").append(limit);
-                }
-            }
+            wholeSql.append(" order by ").append(orderBy).append(" limit ").append(limit);
             if (isNotEmpty(offset)) {
                 wholeSql.append(", ").append(offset);
             }