@Test public void testCreateLuckCode() throws Exception { LuckCodes luckCodes = new LuckCodes(); List<LuckCodes> select = mapper.select(luckCodes); for (LuckCodes l : select){ LuckCodeTemplate template = templateMapper.selectById(l.getLuckCodeTemplateId()); LuckCodes luckCodes1 = new LuckCodes(); luckCodes1.setId(l.getId()); mapper.updateByPrimaryKeySelective(luckCodes1); } }
@Override public List<LuckCodes> select(Long commodId) { LuckCodes luck = new LuckCodes(); luck.setCommodityId(commodId); return this.mapper.select(luck); }
LuckCodesServiceImpl implements ILuckCodesService { @Override public List<LuckCodes> select(Long commodId) { LuckCodes luck = new LuckCodes(); luck.setCommodityId(commodId); return this.mapper.select(luck); } }
LuckCodesServiceImpl implements ILuckCodesService { @Override public List<LuckCodes> select(Long commodId) { LuckCodes luck = new LuckCodes(); luck.setCommodityId(commodId); return this.mapper.select(luck); }  }
LuckCodesServiceImpl implements ILuckCodesService { @Override public List<LuckCodes> select(Long commodId) { LuckCodes luck = new LuckCodes(); luck.setCommodityId(commodId); return this.mapper.select(luck); }  @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 List<LuckCodes> select(Long commodId) { LuckCodes luck = new LuckCodes(); luck.setCommodityId(commodId); return this.mapper.select(luck); }  @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);  }