| | |
| | |
|
| | | if (StringUtil.isNullOrEmpty(key)) {
|
| | | list = systemClientParamsDao.list("from SystemClientParams scp where scp.system.id = ? ",
|
| | | new Serializable[] {systemId});
|
| | | start, count, new Serializable[] {systemId});
|
| | |
|
| | | } else {
|
| | | list = systemClientParamsDao.list(
|
| | | "from SystemClientParams scp where scp.system.id = ? and (scp.name like ? or scp.key like ?)",
|
| | | new Serializable[] {systemId, "%" + key + "%" ,"%" + key + "%"});
|
| | | start, count, new Serializable[] {systemId, "%" + key + "%" ,"%" + key + "%"});
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | if (systemId == null) {
|
| | |
|
| | | if (StringUtil.isNullOrEmpty(key)) {
|
| | | return systemClientParamsDao.getCount("from SystemClientParams scp");
|
| | | return systemClientParamsDao.getCount(" select count(id) from SystemClientParams scp");
|
| | | } else {
|
| | | return systemClientParamsDao.getCount("from SystemClientParams scp where (scp.name like ? or scp.key like ?) ",
|
| | | return systemClientParamsDao.getCount(" select count(id) from SystemClientParams scp where (scp.name like ? or scp.key like ?) ",
|
| | | new Serializable[] { "%" + key + "%" ,"%" + key + "%"});
|
| | | }
|
| | |
|
| | | } else {
|
| | |
|
| | | if (StringUtil.isNullOrEmpty(key)) {
|
| | | return systemClientParamsDao.getCount("from SystemClientParams scp where scp.system.id = ? ",
|
| | | return systemClientParamsDao.getCount(" select count(id) from SystemClientParams scp where scp.system.id = ? ",
|
| | | new Serializable[] {systemId});
|
| | |
|
| | | } else {
|
| | | return systemClientParamsDao.getCount(
|
| | | "from SystemClientParams scp where scp.system.id = ? and (scp.name like ? or scp.key like ?)",
|
| | | " select count(id) from SystemClientParams scp where scp.system.id = ? and (scp.name like ? or scp.key like ?)",
|
| | | new Serializable[] {systemId, "%" + key + "%" ,"%" + key + "%"});
|
| | | }
|
| | | }
|
| | |
| | |
|
| | |
|
| | | @Transactional
|
| | | @Override
|
| | | public void saveAdd(SystemClientParams scp, List<Long> listId) throws Exception {
|
| | |
|
| | | if (listId == null || listId.size() == 0) {
|