@Test public void testDelete() throws Exception { boolean delete = luckService.delete(1l); Assert.assertTrue(delete); }
@Override public boolean delete(Long id) { int i = mapper.deleteByPrimaryKey(id); if (i > 0) { return true; } return false; }
LuckCodesServiceImpl implements ILuckCodesService { @Override public boolean delete(Long id) { int i = mapper.deleteByPrimaryKey(id); if (i > 0) { return true; } return false; } }
LuckCodesServiceImpl implements ILuckCodesService { @Override public boolean delete(Long id) { int i = mapper.deleteByPrimaryKey(id); if (i > 0) { return true; } return false; }  }
LuckCodesServiceImpl implements ILuckCodesService { @Override public boolean delete(Long id) { int i = mapper.deleteByPrimaryKey(id); if (i > 0) { return true; } return false; }  @Override List<LuckCodes> select(Long commodId); @Override boolean delete(Long id); @Override List<LuckCodes> selectByUserId(Long accountId); @Override Long getTempCount(); @Override void addToTemp(Set<LuckCodeTemplate> set); @Override List<LuckCodes> selectRange(long count); @Override void insertCodeList(List<LuckCodes> list); @Override int getCount(Long accountId, Long commodityId); }
LuckCodesServiceImpl implements ILuckCodesService { @Override public boolean delete(Long id) { int i = mapper.deleteByPrimaryKey(id); if (i > 0) { return true; } return false; }  @Override List<LuckCodes> select(Long commodId); @Override boolean delete(Long id); @Override List<LuckCodes> selectByUserId(Long accountId); @Override Long getTempCount(); @Override void addToTemp(Set<LuckCodeTemplate> set); @Override List<LuckCodes> selectRange(long count); @Override void insertCodeList(List<LuckCodes> list); @Override int getCount(Long accountId, Long commodityId);  }