PublicStrategyDao extends BaseDao { public int deletePublicStrategy(PublicStrategy publicStrategy) throws SQLException { if (null == publicStrategy || publicStrategy.getId() == null) { return 0; } return this.getDasClient().deleteByPk(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);  }
@Test public void deletePublicStrategy() throws Exception { publicStrategy.setId(2L); int count = publicStrategyDao.deletePublicStrategy(publicStrategy); System.out.println("deletePublicStrategy :-------> " + count); Assert.assertTrue(count > 0); }