@Test public void testAddToHistory() throws Exception { UserCodesHistory userch = new UserCodesHistory(); userch.setId(1l); userch.setUserAccountId(1l); userch.setCommodityId(1l); boolean b = usercodesHistory.addToHistory(userch); Assert.assertTrue(b); }
@Override public boolean addToHistory(UserCodesHistory userhis) { int insert = uchMapper.insert(userhis); if(insert>0){ return true; } return false; }
UserCodesHistoryServiceImpl implements IUserCodesHistoryService { @Override public boolean addToHistory(UserCodesHistory userhis) { int insert = uchMapper.insert(userhis); if(insert>0){ return true; } return false; } }
UserCodesHistoryServiceImpl implements IUserCodesHistoryService { @Override public boolean addToHistory(UserCodesHistory userhis) { int insert = uchMapper.insert(userhis); if(insert>0){ return true; } return false; }  }
UserCodesHistoryServiceImpl implements IUserCodesHistoryService { @Override public boolean addToHistory(UserCodesHistory userhis) { int insert = uchMapper.insert(userhis); if(insert>0){ return true; } return false; }  @Override boolean addToHistory(UserCodesHistory userhis); @Override List<UserCodesHistory> selectByUserAccount(Long accounId); @Override List<UserCodesHistory> selectByCommodId(Long commodId); @Override List<UserCodesHistory> selectAll(); }
UserCodesHistoryServiceImpl implements IUserCodesHistoryService { @Override public boolean addToHistory(UserCodesHistory userhis) { int insert = uchMapper.insert(userhis); if(insert>0){ return true; } return false; }  @Override boolean addToHistory(UserCodesHistory userhis); @Override List<UserCodesHistory> selectByUserAccount(Long accounId); @Override List<UserCodesHistory> selectByCommodId(Long commodId); @Override List<UserCodesHistory> selectAll();  }