@Test public void testSelectByCommodId() throws Exception { List<UserCodesHistory> histories = usercodesHistory.selectByCommodId(2l); Assert.assertNotNull(histories); }
@Override public List<UserCodesHistory> selectByCommodId(Long commodId) { UserCodesHistory user = new UserCodesHistory(); user.setCommodityId(commodId); return uchMapper.select(user); }
UserCodesHistoryServiceImpl implements IUserCodesHistoryService { @Override public List<UserCodesHistory> selectByCommodId(Long commodId) { UserCodesHistory user = new UserCodesHistory(); user.setCommodityId(commodId); return uchMapper.select(user); } }
UserCodesHistoryServiceImpl implements IUserCodesHistoryService { @Override public List<UserCodesHistory> selectByCommodId(Long commodId) { UserCodesHistory user = new UserCodesHistory(); user.setCommodityId(commodId); return uchMapper.select(user); }  }
UserCodesHistoryServiceImpl implements IUserCodesHistoryService { @Override public List<UserCodesHistory> selectByCommodId(Long commodId) { UserCodesHistory user = new UserCodesHistory(); user.setCommodityId(commodId); return uchMapper.select(user); }  @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 List<UserCodesHistory> selectByCommodId(Long commodId) { UserCodesHistory user = new UserCodesHistory(); user.setCommodityId(commodId); return uchMapper.select(user); }  @Override boolean addToHistory(UserCodesHistory userhis); @Override List<UserCodesHistory> selectByUserAccount(Long accounId); @Override List<UserCodesHistory> selectByCommodId(Long commodId); @Override List<UserCodesHistory> selectAll();  }