| | |
| | | } |
| | | } |
| | | String baseSql = "select oid,to_char(ts,'yyyy-mm-dd hh24:mi:ss') as ts,creator,to_char(createTime,'yyyy-mm-dd hh24:mi:ss') as createTime,modifier,to_char(modifyTime,'yyyy-mm-dd hh24:mi:ss') as modifyTime,name,label," + |
| | | ("plenum".equalsIgnoreCase(tableName)?" '' as " :"") + "description from " + tableName |
| | | ("plenumtype".equalsIgnoreCase(tableName)?" '' as " :"") + "description from " + tableName |
| | | + (StringUtils.isNotBlank(whereSql)?(" where " + whereSql):""); |
| | | baseSql += " order by lower(name) asc "; |
| | | String sql = (StringUtils.isNotBlank(pageSql)?" select oid,ts,creator,createTime,modifier,modifyTime,name,label,description from (select A.* , rownum RN from (":"") |
| | |
| | | dataList.add(obj); |
| | | }); |
| | | dataGrid.setData(dataList); |
| | | List<Map> maps = boService.queryBySqlForMap("select count(oid) as total from plbtmtype " + (StringUtils.isNotBlank(whereSql)?(" where " + whereSql):""), null); |
| | | List<Map> maps = boService.queryBySqlForMap("select count(*) as total from "+ tableName + (StringUtils.isNotBlank(whereSql)?(" where " + whereSql):""), null); |
| | | dataGrid.setTotal(VciBaseUtil.getInt(maps.get(0).get("total").toString())); |
| | | } |
| | | return dataGrid; |