@Test public void getPanelByRemark() { }
@Override public List<PanelDto> getPanelByRemark(@NonNull String remark, @NonNull Integer panelLimit, @NonNull Integer itemLimit) { List<Panel> panelList = panelMapper.selectByRemark(remark, null, panelLimit); List<PanelDto> panelDtoList = convertService.convertPanel(panelList); panelDtoList.forEach(panelDto -> { List<String> itemIds = panelContentMapper .selectItemIdsByPanelId(panelDto.getPanelId(), itemLimit); List<Item> items = itemMapper.selectIdIn(itemIds, null, false); List<ItemDto> itemDtoList = convertService.convertItem(items); panelDto.setItemDtoList(itemDtoList); }); return panelDtoList; }
PanelServiceImpl extends ServiceImpl<PanelMapper, Panel> implements PanelService { @Override public List<PanelDto> getPanelByRemark(@NonNull String remark, @NonNull Integer panelLimit, @NonNull Integer itemLimit) { List<Panel> panelList = panelMapper.selectByRemark(remark, null, panelLimit); List<PanelDto> panelDtoList = convertService.convertPanel(panelList); panelDtoList.forEach(panelDto -> { List<String> itemIds = panelContentMapper .selectItemIdsByPanelId(panelDto.getPanelId(), itemLimit); List<Item> items = itemMapper.selectIdIn(itemIds, null, false); List<ItemDto> itemDtoList = convertService.convertItem(items); panelDto.setItemDtoList(itemDtoList); }); return panelDtoList; } }
PanelServiceImpl extends ServiceImpl<PanelMapper, Panel> implements PanelService { @Override public List<PanelDto> getPanelByRemark(@NonNull String remark, @NonNull Integer panelLimit, @NonNull Integer itemLimit) { List<Panel> panelList = panelMapper.selectByRemark(remark, null, panelLimit); List<PanelDto> panelDtoList = convertService.convertPanel(panelList); panelDtoList.forEach(panelDto -> { List<String> itemIds = panelContentMapper .selectItemIdsByPanelId(panelDto.getPanelId(), itemLimit); List<Item> items = itemMapper.selectIdIn(itemIds, null, false); List<ItemDto> itemDtoList = convertService.convertItem(items); panelDto.setItemDtoList(itemDtoList); }); return panelDtoList; } @Autowired  PanelServiceImpl(PanelMapper panelMapper, ConvertService convertService,
			ItemMapper itemMapper, PanelContentMapper panelContentMapper); }
PanelServiceImpl extends ServiceImpl<PanelMapper, Panel> implements PanelService { @Override public List<PanelDto> getPanelByRemark(@NonNull String remark, @NonNull Integer panelLimit, @NonNull Integer itemLimit) { List<Panel> panelList = panelMapper.selectByRemark(remark, null, panelLimit); List<PanelDto> panelDtoList = convertService.convertPanel(panelList); panelDtoList.forEach(panelDto -> { List<String> itemIds = panelContentMapper .selectItemIdsByPanelId(panelDto.getPanelId(), itemLimit); List<Item> items = itemMapper.selectIdIn(itemIds, null, false); List<ItemDto> itemDtoList = convertService.convertItem(items); panelDto.setItemDtoList(itemDtoList); }); return panelDtoList; } @Autowired  PanelServiceImpl(PanelMapper panelMapper, ConvertService convertService,
			ItemMapper itemMapper, PanelContentMapper panelContentMapper); @Override List<PanelDto> getPanelByRemark(@NonNull String remark,
			@NonNull Integer panelLimit, @NonNull Integer itemLimit); @Override List<PanelDto> getPanelByItemCatId(@NonNull Long itemCatId); @Override List<PanelDto> getPanelWithItemsByItemCatId(@NonNull Long itemCatId,

			@NonNull Integer limit); @Override List<PanelDto> getPanelWithItemsByItemCatId(@NonNull List<Long> itemCatIds,
			@NonNull Integer itemLimit); @Override PanelDto getPanelById(@NonNull Integer panelId); @Override List<PanelDto> getPanelByItemCatId(@NonNull List<Long> itemCatIds); }
PanelServiceImpl extends ServiceImpl<PanelMapper, Panel> implements PanelService { @Override public List<PanelDto> getPanelByRemark(@NonNull String remark, @NonNull Integer panelLimit, @NonNull Integer itemLimit) { List<Panel> panelList = panelMapper.selectByRemark(remark, null, panelLimit); List<PanelDto> panelDtoList = convertService.convertPanel(panelList); panelDtoList.forEach(panelDto -> { List<String> itemIds = panelContentMapper .selectItemIdsByPanelId(panelDto.getPanelId(), itemLimit); List<Item> items = itemMapper.selectIdIn(itemIds, null, false); List<ItemDto> itemDtoList = convertService.convertItem(items); panelDto.setItemDtoList(itemDtoList); }); return panelDtoList; } @Autowired  PanelServiceImpl(PanelMapper panelMapper, ConvertService convertService,
			ItemMapper itemMapper, PanelContentMapper panelContentMapper); @Override List<PanelDto> getPanelByRemark(@NonNull String remark,
			@NonNull Integer panelLimit, @NonNull Integer itemLimit); @Override List<PanelDto> getPanelByItemCatId(@NonNull Long itemCatId); @Override List<PanelDto> getPanelWithItemsByItemCatId(@NonNull Long itemCatId,

			@NonNull Integer limit); @Override List<PanelDto> getPanelWithItemsByItemCatId(@NonNull List<Long> itemCatIds,
			@NonNull Integer itemLimit); @Override PanelDto getPanelById(@NonNull Integer panelId); @Override List<PanelDto> getPanelByItemCatId(@NonNull List<Long> itemCatIds);  }