@Test public void testAddApproveMassage() throws Exception { Approve a = new Approve(); a.setUserAccountId(1l); a.setApproveDate(new Date().getTime()); a.setPhoneNumber(15283590214l); a.setRealName("小张"); a.setSite("成都市"); a.setRealNumber("123123123123123123"); boolean b = approve.addApproveMassage(a); Assert.assertTrue(b); }
@Override public boolean addApproveMassage(Approve approve) { int insert = mapper.insert(approve); if(insert>0){ return true; } return false; }
ApproveServiceImpl implements IApproveService { @Override public boolean addApproveMassage(Approve approve) { int insert = mapper.insert(approve); if(insert>0){ return true; } return false; } }
ApproveServiceImpl implements IApproveService { @Override public boolean addApproveMassage(Approve approve) { int insert = mapper.insert(approve); if(insert>0){ return true; } return false; }  }
ApproveServiceImpl implements IApproveService { @Override public boolean addApproveMassage(Approve approve) { int insert = mapper.insert(approve); if(insert>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 addApproveMassage(Approve approve) { int insert = mapper.insert(approve); if(insert>0){ return true; } return false; }  @Override boolean addApproveMassage(Approve approve); @Override List<Approve> select(Long userAccount); @Override boolean update(Approve approve);  }