UserProjectDao extends BaseDao { public int updateUserProject(UserProject userProject) throws SQLException { if (null == userProject || userProject.getId() == null) { return 0; } return this.getDasClient().update(userProject); }  Long insertUserProject(UserProject userProject); int[] insertUserProjectList(List<UserProject> userProjects); int updateUserProject(UserProject userProject); int deleteUserProjectByProjectId(Long project_id); int deleteByProjectAndUserIdS(Long projectId, Set<Long> userIds); List<UserProject> getUsersByProjectId(Long projectId); UserProject getMinUserProjectByProjectId(Long project_id);  }
@Test public void updateUserProject() throws Exception { userProject.setId(176L); userProject.setUserId(4L); int count = userProjectDao.updateUserProject(userProject); System.out.println("updateUserProject :-------> " + count); Assert.assertTrue(count > 0); }