@Test public void getCountByIdAndName() throws Exception { Long count = groupDao.getCountByIdAndName(46L, "tx"); System.out.println("getCountByIdAndName :-------> " + count); Assert.assertTrue(count > 0); }
public Long getCountByIdAndName(Long id, String name) throws SQLException { return this.getCount("SELECT count(1) FROM dal_group WHERE group_name='" + name + "' and id = " + id); }
GroupDao extends BaseDao { public Long getCountByIdAndName(Long id, String name) throws SQLException { return this.getCount("SELECT count(1) FROM dal_group WHERE group_name='" + name + "' and id = " + id); } }
GroupDao extends BaseDao { public Long getCountByIdAndName(Long id, String name) throws SQLException { return this.getCount("SELECT count(1) FROM dal_group WHERE group_name='" + name + "' and id = " + id); }  }
GroupDao extends BaseDao { public Long getCountByIdAndName(Long id, String name) throws SQLException { return this.getCount("SELECT count(1) FROM dal_group WHERE group_name='" + name + "' and id = " + id); }  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 Long getCountByIdAndName(Long id, String name) throws SQLException { return this.getCount("SELECT count(1) FROM dal_group WHERE group_name='" + name + "' and id = " + id); }  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);  }