@Test public void findGroupPageList() throws Exception { List<DalGroupView> list = groupDao.findGroupPageList(paging); System.out.println("findGroupPageList :-------> " + list); Assert.assertTrue(list.size() > 0); }
public List<DalGroupView> findGroupPageList(Paging<DasGroup> paging) throws SQLException { String sql = "select t1.id, t1.group_name, t1.group_comment, t1.update_user_no, t1.insert_time,t2.user_real_name " + "from dal_group t1 " + "left join login_users t2 on t1.update_user_no = t2.user_no " + appenCondition(paging); return this.queryBySql(sql, DalGroupView.class); }
GroupDao extends BaseDao { public List<DalGroupView> findGroupPageList(Paging<DasGroup> paging) throws SQLException { String sql = "select t1.id, t1.group_name, t1.group_comment, t1.update_user_no, t1.insert_time,t2.user_real_name " + "from dal_group t1 " + "left join login_users t2 on t1.update_user_no = t2.user_no " + appenCondition(paging); return this.queryBySql(sql, DalGroupView.class); } }
GroupDao extends BaseDao { public List<DalGroupView> findGroupPageList(Paging<DasGroup> paging) throws SQLException { String sql = "select t1.id, t1.group_name, t1.group_comment, t1.update_user_no, t1.insert_time,t2.user_real_name " + "from dal_group t1 " + "left join login_users t2 on t1.update_user_no = t2.user_no " + appenCondition(paging); return this.queryBySql(sql, DalGroupView.class); }  }
GroupDao extends BaseDao { public List<DalGroupView> findGroupPageList(Paging<DasGroup> paging) throws SQLException { String sql = "select t1.id, t1.group_name, t1.group_comment, t1.update_user_no, t1.insert_time,t2.user_real_name " + "from dal_group t1 " + "left join login_users t2 on t1.update_user_no = t2.user_no " + appenCondition(paging); return this.queryBySql(sql, DalGroupView.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<DalGroupView> findGroupPageList(Paging<DasGroup> paging) throws SQLException { String sql = "select t1.id, t1.group_name, t1.group_comment, t1.update_user_no, t1.insert_time,t2.user_real_name " + "from dal_group t1 " + "left join login_users t2 on t1.update_user_no = t2.user_no " + appenCondition(paging); return this.queryBySql(sql, DalGroupView.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);  }