xinyb
2024-07-25 180c20a90d12c9dcfeff1e3b26603f54b9d4c2d9
src/com/yc/service/panel/PanelManageImpl.java
@@ -90,9 +90,10 @@
        info.setFormid(treeFormId);
        info.setWintype("20@p@0");
        Map<String, String> map = apiController.getPrimKey(info, request, response);
        if (StringUtils.isNotBlank(where) && map != null && !map.isEmpty()) {
        if (map != null && !map.isEmpty()) {
            String sortCols = MapUtils.getString(map, "sortCols");
            Integer sortTypes = MapUtils.getInteger(map, "sortTypes");
            where = (StringUtils.isBlank(where) ? " 1=1 " : where);
            where += " order by " + sortCols + " " + (sortTypes == 1 ? "desc" : "");
        }
        return getFromEnd(sql, tableis, where, formType, request);