@Test public void getAllGroupsWithNotAdmin() throws Exception { List<DasGroup> list = groupDao.getAllGroupsWithNotAdmin(); System.out.println("getAllGroupsWithNotAdmin :-------> " + list); Assert.assertTrue(list.size() > 0); }
public List<DasGroup> getAllGroupsWithNotAdmin() throws SQLException { String sql = "select id, group_name, group_comment, update_user_no, insert_time from dal_group where id != " + PermissionService.getADMINGROUPID() + " order by group_name"; return this.queryBySql(sql, DasGroup.class); }
GroupDao extends BaseDao { public List<DasGroup> getAllGroupsWithNotAdmin() throws SQLException { String sql = "select id, group_name, group_comment, update_user_no, insert_time from dal_group where id != " + PermissionService.getADMINGROUPID() + " order by group_name"; return this.queryBySql(sql, DasGroup.class); } }
GroupDao extends BaseDao { public List<DasGroup> getAllGroupsWithNotAdmin() throws SQLException { String sql = "select id, group_name, group_comment, update_user_no, insert_time from dal_group where id != " + PermissionService.getADMINGROUPID() + " order by group_name"; return this.queryBySql(sql, DasGroup.class); }  }
GroupDao extends BaseDao { public List<DasGroup> getAllGroupsWithNotAdmin() throws SQLException { String sql = "select id, group_name, group_comment, update_user_no, insert_time from dal_group where id != " + PermissionService.getADMINGROUPID() + " order by group_name"; return this.queryBySql(sql, DasGroup.class); }  Long insertDasGroup(DasGroup group); int initAdminGroup(DasGroup group); int updateDalGroup(DasGroup group); int deleteDalGroup(Long groupId); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); List<DasGroup> getGroupsByUserId(Long user_id); DasGroup getGroupsByDbSetId(Long dbsetId); DasGroup getDalGroupById(Long id); DasGroup getGroupByName(String name); List<DasGroup> getAllGroups(); List<DasGroup> getAllGroupsByAppoid(String appid); List<DasGroup> getAllGroupsWithNotAdmin(); Long getTotalCount(Paging<DasGroup> paging); List<DalGroupView> findGroupPageList(Paging<DasGroup> paging); }
GroupDao extends BaseDao { public List<DasGroup> getAllGroupsWithNotAdmin() throws SQLException { String sql = "select id, group_name, group_comment, update_user_no, insert_time from dal_group where id != " + PermissionService.getADMINGROUPID() + " order by group_name"; return this.queryBySql(sql, DasGroup.class); }  Long insertDasGroup(DasGroup group); int initAdminGroup(DasGroup group); int updateDalGroup(DasGroup group); int deleteDalGroup(Long groupId); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); List<DasGroup> getGroupsByUserId(Long user_id); DasGroup getGroupsByDbSetId(Long dbsetId); DasGroup getDalGroupById(Long id); DasGroup getGroupByName(String name); List<DasGroup> getAllGroups(); List<DasGroup> getAllGroupsByAppoid(String appid); List<DasGroup> getAllGroupsWithNotAdmin(); Long getTotalCount(Paging<DasGroup> paging); List<DalGroupView> findGroupPageList(Paging<DasGroup> paging);  }