ServerConfigDao extends BaseDao { public int updateServerAppConfig(ServerConfig serverAppConfig) throws SQLException { if (null == serverAppConfig || serverAppConfig.getId() == null) { return 0; } return this.getDasClient().update(serverAppConfig); }  Long insertServerAppConfig(ServerConfig serverAppConfig); int deleteServerAppConfig(ServerConfig serverAppConfig); int updateServerAppConfig(ServerConfig serverAppConfig); int deleteServerConfigByServerGroupId(Long serverId); List<ServerConfig> getServerAppConfigByServerId(Long serverId); Long getServerAppConfigTotalCount(Paging<ServerConfig> paging); List<ServerConfig> findServerAppConfigPageList(Paging<ServerConfig> paging);  }
@Test public void updateServerAppConfig() throws Exception { serverConfig.setId(6L); serverConfig.setComment("test"); int count = serverConfigDao.updateServerAppConfig(serverConfig); System.out.println("updateServerAppConfig :-------> " + count); Assert.assertTrue(count > 0); }