@Test public void getPublicStrategyById() throws Exception { PublicStrategy publicStrategy = publicStrategyDao.getPublicStrategyById(1L); System.out.println("getPublicStrategyById :-------> " + publicStrategy); Assert.assertTrue(publicStrategy != null); }
public PublicStrategy getPublicStrategyById(Long id) throws SQLException { PublicStrategy publicStrategy = new PublicStrategy(); publicStrategy.setId(id); return this.getDasClient().queryByPk(publicStrategy); }
PublicStrategyDao extends BaseDao { public PublicStrategy getPublicStrategyById(Long id) throws SQLException { PublicStrategy publicStrategy = new PublicStrategy(); publicStrategy.setId(id); return this.getDasClient().queryByPk(publicStrategy); } }
PublicStrategyDao extends BaseDao { public PublicStrategy getPublicStrategyById(Long id) throws SQLException { PublicStrategy publicStrategy = new PublicStrategy(); publicStrategy.setId(id); return this.getDasClient().queryByPk(publicStrategy); }  }
PublicStrategyDao extends BaseDao { public PublicStrategy getPublicStrategyById(Long id) throws SQLException { PublicStrategy publicStrategy = new PublicStrategy(); publicStrategy.setId(id); return this.getDasClient().queryByPk(publicStrategy); }  Long insertPublicStrategy(PublicStrategy publicStrategy); int updatePublicStrategy(PublicStrategy publicStrategy); PublicStrategy getPublicStrategyById(Long id); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int deletePublicStrategy(PublicStrategy publicStrategy); List<PublicStrategy> getAllPublicStrateges(); Long getPublicStrategyTotalCount(Paging<PublicStrategy> paging); List<PublicStrategyView> findPublicStrategyPageList(Paging<PublicStrategy> paging); }
PublicStrategyDao extends BaseDao { public PublicStrategy getPublicStrategyById(Long id) throws SQLException { PublicStrategy publicStrategy = new PublicStrategy(); publicStrategy.setId(id); return this.getDasClient().queryByPk(publicStrategy); }  Long insertPublicStrategy(PublicStrategy publicStrategy); int updatePublicStrategy(PublicStrategy publicStrategy); PublicStrategy getPublicStrategyById(Long id); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int deletePublicStrategy(PublicStrategy publicStrategy); List<PublicStrategy> getAllPublicStrateges(); Long getPublicStrategyTotalCount(Paging<PublicStrategy> paging); List<PublicStrategyView> findPublicStrategyPageList(Paging<PublicStrategy> paging);  }