| | |
| | | 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); |