@Test public void testUpdate() throws Exception { Approve a = new Approve(); a.setId(1l); a.setApproveDate(new Date().getTime()); a.setRealName("小王"); boolean update = approve.update(a); Assert.assertTrue(update); }
@Override public boolean update(Approve approve) { int i = mapper.updateByPrimaryKeySelective(approve); if(i>0){ return true; } return false; }
ApproveServiceImpl implements IApproveService { @Override public boolean update(Approve approve) { int i = mapper.updateByPrimaryKeySelective(approve); if(i>0){ return true; } return false; } }
ApproveServiceImpl implements IApproveService { @Override public boolean update(Approve approve) { int i = mapper.updateByPrimaryKeySelective(approve); if(i>0){ return true; } return false; }  }
ApproveServiceImpl implements IApproveService { @Override public boolean update(Approve approve) { int i = mapper.updateByPrimaryKeySelective(approve); if(i>0){ return true; } return false; }  @Override boolean addApproveMassage(Approve approve); @Override List<Approve> select(Long userAccount); @Override boolean update(Approve approve); }
ApproveServiceImpl implements IApproveService { @Override public boolean update(Approve approve) { int i = mapper.updateByPrimaryKeySelective(approve); if(i>0){ return true; } return false; }  @Override boolean addApproveMassage(Approve approve); @Override List<Approve> select(Long userAccount); @Override boolean update(Approve approve);  }